Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001317/0.001317, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002215/0.002215, allocations: 207.6 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 230.5 MB / 258.2 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 63.88 kB / 378.6 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2855, allocations: 53.41 MB / 432 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008979/0.2945, allocations: 8.079 MB / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02325/0.3178, allocations: 19.55 MB / 459.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001328/0.3191, allocations: 98.94 kB / 459.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002475/0.3216, allocations: 0.8494 MB / 460.5 MB, free: 9.992 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005744/0.3273, allocations: 1.835 MB / 462.4 MB, free: 8.145 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004639/0.3319, allocations: 1.363 MB / 463.7 MB, free: 6.781 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005788/0.3377, allocations: 3.318 MB / 467.1 MB, free: 3.453 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003662/0.3381, allocations: 124.9 kB / 467.2 MB, free: 3.305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009971/0.3391, allocations: 0.5911 MB / 467.8 MB, free: 2.711 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007611/0.3399, allocations: 0.5629 MB / 468.3 MB, free: 2.145 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.995e-05/0.3399, allocations: 40 kB / 468.4 MB, free: 2.105 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004112/0.3441, allocations: 1.444 MB / 469.8 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002028/0.3443, allocations: 170.8 kB / 470 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007747/0.345, allocations: 0.6832 MB / 470.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004585/0.3496, allocations: 2.225 MB / 472.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3496, allocations: 0 / 472.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3496, allocations: 0 / 472.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.512e-05/0.3497, allocations: 0 / 472.9 MB, free: 13.57 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003424/0.3531, allocations: 2.002 MB / 474.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.3531, allocations: 8.031 kB / 474.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.525e-05/0.3532, allocations: 8.656 kB / 474.9 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.937e-05/0.3532, allocations: 66.53 kB / 475 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002553/0.3535, allocations: 202.7 kB / 475.2 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001958/0.3555, allocations: 1.257 MB / 476.4 MB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.3555, allocations: 20.66 kB / 476.4 MB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.718e-05/0.3556, allocations: 24 kB / 476.5 MB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009268/0.3565, allocations: 437.8 kB / 476.9 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.3565, allocations: 0 / 476.9 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.654e-05/0.3565, allocations: 12 kB / 476.9 MB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.3566, allocations: 15.98 kB / 476.9 MB, free: 9.398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001108/0.3577, allocations: 478.3 kB / 477.4 MB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002785/0.3605, allocations: 1.554 MB / 478.9 MB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009523/0.3614, allocations: 346.9 kB / 479.3 MB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000721/0.3621, allocations: 373.9 kB / 479.6 MB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01286/0.375, allocations: 7.027 MB / 486.7 MB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006469/0.3756, allocations: 263.8 kB / 486.9 MB, free: 15.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.755e-06/0.3756, allocations: 0 / 486.9 MB, free: 15.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.00217/0.3778, allocations: 0.7742 MB / 487.7 MB, free: 14.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.3779, allocations: 63.33 kB / 487.8 MB, free: 14.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001815/0.3797, allocations: 1.455 MB / 489.2 MB, free: 12.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/0.3797, allocations: 29.7 kB / 489.3 MB, free: 12.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006548/0.3804, allocations: 0.7232 MB / 490 MB, free: 11.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.55e-05/0.3805, allocations: 99.2 kB / 490.1 MB, free: 11.88 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/0.3806, allocations: 134 kB / 490.2 MB, free: 11.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.3808, allocations: 326 kB / 490.5 MB, free: 11.42 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004506/0.3812, allocations: 156.9 kB / 490.7 MB, free: 11.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005996/0.3818, allocations: 362.8 kB / 491 MB, free: 10.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.3829, allocations: 0.5334 MB / 491.6 MB, free: 10.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.966e-06/0.3829, allocations: 7.984 kB / 491.6 MB, free: 10.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001533/0.3844, allocations: 0.7485 MB / 492.3 MB, free: 9.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.3845, allocations: 8 kB / 492.3 MB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.455e-05/0.3845, allocations: 39.98 kB / 492.4 MB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003325/0.3849, allocations: 144.6 kB / 492.5 MB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000406/0.3853, allocations: 103.8 kB / 492.6 MB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006582/0.3859, allocations: 0.6775 MB / 493.3 MB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005639/0.3865, allocations: 71.59 kB / 493.4 MB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.421e-05/0.3865, allocations: 32 kB / 493.4 MB, free: 8.332 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004438/0.387, allocations: 285.3 kB / 493.7 MB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002011/0.3872, allocations: 194.8 kB / 493.9 MB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00182/0.389, allocations: 0.7386 MB / 494.6 MB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.389, allocations: 8 kB / 494.6 MB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.389, allocations: 0 / 494.6 MB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.389, allocations: 0 / 494.6 MB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002209/0.3912, allocations: 1.279 MB / 495.9 MB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.006e-05/0.3913, allocations: 39.98 kB / 495.9 MB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002469/0.3915, allocations: 47.89 kB / 496 MB, free: 5.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002547/0.3918, allocations: 128.8 kB / 496.1 MB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.08e-05/0.3918, allocations: 19.98 kB / 496.1 MB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006293/0.3925, allocations: 0.6694 MB / 496.8 MB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3925, allocations: 0 / 496.8 MB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/0.3938, allocations: 0.718 MB / 497.5 MB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000418/0.3942, allocations: 212.6 kB / 497.7 MB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.3944, allocations: 11.98 kB / 497.7 MB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.3948, allocations: 23.97 kB / 497.7 MB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.3949, allocations: 39.89 kB / 497.8 MB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-05/0.395, allocations: 27.98 kB / 497.8 MB, free: 3.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001327/0.3963, allocations: 0.961 MB / 498.8 MB, free: 2.789 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3963, allocations: 0 / 498.8 MB, free: 2.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008832/0.3972, allocations: 331.6 kB / 499.1 MB, free: 2.465 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002485/0.3997, allocations: 1.753 MB / 0.4891 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.4011, allocations: 496.5 kB / 0.4896 GB, free: 184 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4011, allocations: 0 / 0.4896 GB, free: 184 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006581/0.4017, allocations: 275.3 kB / 0.4898 GB, free: 15.9 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001414/0.4031, allocations: 319 kB / 0.4901 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.4174, allocations: 9.009 MB / 0.4989 GB, free: 6.188 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007522/0.4181, allocations: 1.153 MB / 0.5001 GB, free: 5.004 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005775/0.4187, allocations: 199.9 kB / 0.5003 GB, free: 4.805 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006265/0.4194, allocations: 0.5657 MB / 0.5008 GB, free: 4.238 MB / 414.1 MB Notification: Performance of SimCode: time 1.913e-06/0.4194, allocations: 0 / 0.5008 GB, free: 4.238 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0798/0.4992, allocations: 35.83 MB / 0.5358 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.73/16.23, allocations: 6.812 kB / 0.5358 GB, free: 0.6133 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --stepSize=5.0025e-15 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.1536529790028] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 16.714494195010047 16.727134359 16.37474128 Calling exit ...