Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 104.4 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 190.6 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 44.89 kB / 300.1 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1141, allocations: 49.45 MB / 349.5 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.007233/0.1214, allocations: 5.085 MB / 354.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.1339, allocations: 10.99 MB / 365.6 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007451/0.1347, allocations: 4 kB / 365.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001769/0.1365, allocations: 0.6524 MB / 366.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0026/0.1391, allocations: 0.8053 MB / 367 MB, free: 2.922 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001202/0.1403, allocations: 439.8 kB / 367.5 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001823/0.1422, allocations: 1.322 MB / 368.8 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.1424, allocations: 161.8 kB / 369 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002644/0.1427, allocations: 270.5 kB / 369.2 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002751/0.143, allocations: 313.9 kB / 369.5 MB, free: 420 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.498e-05/0.1431, allocations: 24 kB / 369.5 MB, free: 396 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1694/0.3125, allocations: 0.7323 MB / 370.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002063/0.3127, allocations: 96.03 kB / 370.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005051/0.3132, allocations: 388.7 kB / 370.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001857/0.3151, allocations: 1.241 MB / 372 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3151, allocations: 0.8438 kB / 372 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.3151, allocations: 5.875 kB / 372 MB, free: 11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.3151, allocations: 0 / 372 MB, free: 11 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.00183/0.317, allocations: 1.309 MB / 373.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.317, allocations: 11.14 kB / 373.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.379e-05/0.3171, allocations: 67.27 kB / 373.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.3172, allocations: 117.1 kB / 373.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008803/0.3181, allocations: 0.7469 MB / 374.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.3182, allocations: 17.91 kB / 374.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.053e-05/0.3182, allocations: 37.44 kB / 374.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007111/0.3189, allocations: 315.4 kB / 374.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.319, allocations: 0.625 kB / 374.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.733e-05/0.319, allocations: 11.17 kB / 374.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.484e-05/0.319, allocations: 8.859 kB / 374.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006584/0.3197, allocations: 277.9 kB / 374.9 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.3218, allocations: 1.372 MB / 376.3 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000735/0.3226, allocations: 296.2 kB / 376.6 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004319/0.323, allocations: 239.2 kB / 376.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003854/0.3269, allocations: 3.591 MB / 380.4 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004433/0.3274, allocations: 191.8 kB / 380.6 MB, free: 6.098 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.275e-06/0.3274, allocations: 0 / 380.6 MB, free: 6.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00172/0.3291, allocations: 0.7303 MB / 381.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.3292, allocations: 55.55 kB / 381.4 MB, free: 5.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001463/0.3306, allocations: 0.8153 MB / 382.2 MB, free: 5.582 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/0.3307, allocations: 34.39 kB / 382.2 MB, free: 5.547 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004282/0.3311, allocations: 453.2 kB / 382.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.3312, allocations: 100.1 kB / 382.7 MB, free: 5.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.3314, allocations: 72.28 kB / 382.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.19e-05/0.3315, allocations: 325.8 kB / 383.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003161/0.3318, allocations: 115.5 kB / 383.2 MB, free: 5.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000484/0.3323, allocations: 227.3 kB / 383.5 MB, free: 4.895 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007317/0.3331, allocations: 362.9 kB / 383.8 MB, free: 4.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.3331, allocations: 1.344 kB / 383.8 MB, free: 4.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00116/0.3342, allocations: 0.5215 MB / 384.3 MB, free: 4.578 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.3343, allocations: 7.75 kB / 384.4 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.366e-05/0.3344, allocations: 31.8 kB / 384.4 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002632/0.3346, allocations: 54.45 kB / 384.4 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003262/0.335, allocations: 77.06 kB / 384.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.3366, allocations: 2.645 MB / 387.2 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004566/0.3371, allocations: 52.45 kB / 387.2 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-05/0.3371, allocations: 14.75 kB / 387.2 MB, free: 1.871 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (VIN.counter,$PRE.VIN.counter,VIN.counter2,$PRE.VIN.counter2,VIN.T0,$PRE.VIN.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003079/0.3375, allocations: 208.1 kB / 387.4 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.3376, allocations: 107.1 kB / 387.5 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001162/0.3388, allocations: 492.7 kB / 388 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.3388, allocations: 2.531 kB / 388 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3388, allocations: 2.594 kB / 388 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.3388, allocations: 3.094 kB / 388 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007126/0.3395, allocations: 0.5635 MB / 388.6 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.417e-05/0.3396, allocations: 28.12 kB / 388.6 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.3398, allocations: 46.08 kB / 388.7 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000148/0.34, allocations: 52.59 kB / 388.7 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.09e-05/0.34, allocations: 10.2 kB / 388.7 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001926/0.342, allocations: 2.645 MB / 391.4 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.342, allocations: 0 / 391.4 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.3435, allocations: 0.5983 MB / 392 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002519/0.3437, allocations: 192 kB / 392.2 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.768e-05/0.3438, allocations: 10.78 kB / 392.2 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.3441, allocations: 11.34 kB / 392.2 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.3442, allocations: 26.3 kB / 392.2 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.459e-05/0.3442, allocations: 14 kB / 392.2 MB, free: 13.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008248/0.3451, allocations: 0.5493 MB / 392.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3451, allocations: 0 / 392.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009558/0.346, allocations: 241.7 kB / 393 MB, free: 13.64 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Q1.vbe,Q1.vbc) * Number of discrete variables: 4 ($whenCondition1,VIN.T0,VIN.counter,VIN.counter2) * Number of discrete states: 2 (VIN.counter,VIN.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002306/0.3483, allocations: 1.396 MB / 394.4 MB, free: 12.78 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.3496, allocations: 0.5828 MB / 395 MB, free: 12.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.3496, allocations: 0 / 395 MB, free: 12.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006522/0.3503, allocations: 449.6 kB / 395.4 MB, free: 12.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006348/0.3509, allocations: 104 kB / 395.5 MB, free: 12.06 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01222/0.3631, allocations: 6.37 MB / 401.9 MB, free: 8.285 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000601/0.3638, allocations: 0.956 MB / 402.8 MB, free: 7.574 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003467/0.3641, allocations: 87.28 kB / 402.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000376/0.3646, allocations: 332 kB / 403.3 MB, free: 7.289 MB / 318.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3646, allocations: 0 / 403.3 MB, free: 7.289 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03274/0.3973, allocations: 16.77 MB / 420 MB, free: 8.707 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/0.3975, allocations: 235.8 kB / 420.2 MB, free: 8.457 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.305/2.703, allocations: 3.938 kB / 420.3 MB, free: 8.453 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-08 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter.pipe 2>&1)