Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001523/0.001523, allocations: 109 kB / 21.23 MB, free: 0.6641 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.002117/0.002117, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 258.3 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 64.77 kB / 378.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3045, allocations: 53.36 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01024/0.3147, allocations: 8.088 MB / 440 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02476/0.3395, allocations: 19.55 MB / 459.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001888/0.3414, allocations: 98.88 kB / 459.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002889/0.3442, allocations: 0.8507 MB / 460.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007336/0.3516, allocations: 1.835 MB / 462.3 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005566/0.3571, allocations: 1.367 MB / 463.7 MB, free: 6.984 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006529/0.3637, allocations: 3.307 MB / 467 MB, free: 3.668 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003585/0.364, allocations: 136.8 kB / 467.1 MB, free: 3.508 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009058/0.3649, allocations: 0.5912 MB / 467.7 MB, free: 2.914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007645/0.3657, allocations: 0.5473 MB / 468.3 MB, free: 2.363 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.181e-05/0.3658, allocations: 47.94 kB / 468.3 MB, free: 2.316 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005538/0.3713, allocations: 1.455 MB / 469.8 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003761/0.3717, allocations: 174.8 kB / 469.9 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001119/0.3728, allocations: 0.6715 MB / 470.6 MB, free: 12 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005142/0.378, allocations: 2.221 MB / 472.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.378, allocations: 0 / 472.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.378, allocations: 0 / 472.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.474e-05/0.378, allocations: 0 / 472.8 MB, free: 13.78 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.003464/0.3815, allocations: 1.998 MB / 474.8 MB, free: 11.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.3815, allocations: 12.03 kB / 474.8 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.716e-05/0.3816, allocations: 70.52 kB / 474.9 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002334/0.3818, allocations: 202.7 kB / 475.1 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001987/0.3838, allocations: 1.253 MB / 476.4 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.3838, allocations: 16.66 kB / 476.4 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.295e-05/0.3839, allocations: 32 kB / 476.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008947/0.3848, allocations: 433.8 kB / 476.8 MB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.3848, allocations: 3.938 kB / 476.8 MB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.202e-05/0.3849, allocations: 12 kB / 476.8 MB, free: 9.625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.3849, allocations: 15.98 kB / 476.9 MB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.3859, allocations: 474.4 kB / 477.3 MB, free: 9.145 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002798/0.3887, allocations: 1.55 MB / 478.9 MB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008784/0.3896, allocations: 347.3 kB / 479.2 MB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007135/0.3903, allocations: 373.8 kB / 479.6 MB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01295/0.4033, allocations: 7.031 MB / 486.6 MB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006385/0.4039, allocations: 267.8 kB / 486.9 MB, free: 15.31 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.765e-06/0.4039, allocations: 4 kB / 486.9 MB, free: 15.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002157/0.4061, allocations: 0.7626 MB / 487.6 MB, free: 14.53 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.834e-05/0.4062, allocations: 71.27 kB / 487.7 MB, free: 14.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00198/0.4081, allocations: 1.452 MB / 489.2 MB, free: 12.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.157e-05/0.4082, allocations: 33.7 kB / 489.2 MB, free: 12.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006455/0.4088, allocations: 0.7232 MB / 489.9 MB, free: 12.2 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.792e-05/0.4089, allocations: 95.27 kB / 490 MB, free: 12.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.4091, allocations: 134 kB / 490.1 MB, free: 11.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.4093, allocations: 326 kB / 490.5 MB, free: 11.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004251/0.4097, allocations: 164.8 kB / 490.6 MB, free: 11.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005742/0.4103, allocations: 354.8 kB / 491 MB, free: 11.04 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.4113, allocations: 0.5378 MB / 491.5 MB, free: 10.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.4113, allocations: 4 kB / 491.5 MB, free: 10.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001496/0.4128, allocations: 0.7522 MB / 492.3 MB, free: 9.645 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.4128, allocations: 8 kB / 492.3 MB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.071e-05/0.4129, allocations: 40 kB / 492.3 MB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003326/0.4132, allocations: 136.8 kB / 492.4 MB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004085/0.4136, allocations: 112.1 kB / 492.5 MB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006611/0.4143, allocations: 0.6734 MB / 493.2 MB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005609/0.4149, allocations: 79.64 kB / 493.3 MB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.543e-05/0.4149, allocations: 32 kB / 493.3 MB, free: 8.543 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.0004494/0.4154, allocations: 273.7 kB / 493.6 MB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001995/0.4156, allocations: 198.7 kB / 493.8 MB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001737/0.4173, allocations: 0.7385 MB / 494.5 MB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.4173, allocations: 4 kB / 494.5 MB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.4173, allocations: 0 / 494.5 MB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.4173, allocations: 3.984 kB / 494.5 MB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002252/0.4196, allocations: 1.283 MB / 495.8 MB, free: 5.961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.724e-05/0.4196, allocations: 36 kB / 495.9 MB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002361/0.4199, allocations: 51.95 kB / 495.9 MB, free: 5.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002428/0.4201, allocations: 120.8 kB / 496 MB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.724e-05/0.4202, allocations: 19.94 kB / 496 MB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000613/0.4208, allocations: 0.6656 MB / 496.7 MB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.4208, allocations: 4.062 kB / 496.7 MB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.4221, allocations: 0.7179 MB / 497.4 MB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000401/0.4225, allocations: 212.6 kB / 497.6 MB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.4226, allocations: 11.98 kB / 497.7 MB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004142/0.423, allocations: 23.97 kB / 497.7 MB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.4231, allocations: 51.88 kB / 497.7 MB, free: 4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.425e-05/0.4232, allocations: 20 kB / 497.7 MB, free: 3.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00124/0.4244, allocations: 0.9571 MB / 498.7 MB, free: 3.004 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4244, allocations: 0 / 498.7 MB, free: 3.004 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008816/0.4253, allocations: 331.6 kB / 499 MB, free: 2.68 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.002469/0.4278, allocations: 1.745 MB / 0.489 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.4291, allocations: 496.5 kB / 0.4895 GB, free: 412 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.4291, allocations: 4.125 kB / 0.4895 GB, free: 408 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006277/0.4297, allocations: 272 kB / 0.4898 GB, free: 124 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.4311, allocations: 323 kB / 0.4901 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/0.4448, allocations: 9.013 MB / 0.4989 GB, free: 6.402 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007625/0.4456, allocations: 1.153 MB / 0.5 GB, free: 5.219 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000591/0.4462, allocations: 199.9 kB / 0.5002 GB, free: 5.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000651/0.4468, allocations: 0.5618 MB / 0.5007 GB, free: 4.457 MB / 414.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4468, allocations: 0 / 0.5007 GB, free: 4.457 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08112/0.528, allocations: 35.77 MB / 0.5357 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.25/15.78, allocations: 10.45 kB / 0.5357 GB, free: 0.9727 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --stepSize=5.0025e-15 --timeout=50 --tolerance=1e-07 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.474582209717482] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 16.1532109468244 16.166979442 15.786276553 Calling exit ...