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.001845/0.001845, allocations: 110.5 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.002207/0.002207, allocations: 213.2 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.561/1.561, allocations: 230.6 MB / 258.3 MB, free: 8.008 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.001965/0.001965, allocations: 68.77 kB / 378.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3083, allocations: 53.36 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009422/0.3177, allocations: 8.072 MB / 440 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02498/0.3427, allocations: 19.55 MB / 459.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00164/0.3444, allocations: 94.94 kB / 459.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00281/0.3472, allocations: 0.8494 MB / 460.5 MB, free: 10.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00705/0.3542, allocations: 1.842 MB / 462.3 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005669/0.3599, allocations: 1.355 MB / 463.7 MB, free: 7.008 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006085/0.366, allocations: 3.311 MB / 467 MB, free: 3.688 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000398/0.3664, allocations: 136.8 kB / 467.1 MB, free: 3.527 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009766/0.3673, allocations: 0.5834 MB / 467.7 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007744/0.3681, allocations: 0.5668 MB / 468.3 MB, free: 2.371 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.452e-05/0.3682, allocations: 40 kB / 468.3 MB, free: 2.332 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004606/0.3728, allocations: 1.451 MB / 469.8 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002362/0.3731, allocations: 162.9 kB / 469.9 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008658/0.3739, allocations: 0.6793 MB / 470.6 MB, free: 36 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004735/0.3787, allocations: 2.225 MB / 472.8 MB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.381e-06/0.3787, allocations: 0 / 472.8 MB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3787, allocations: 0 / 472.8 MB, free: 13.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.095e-05/0.3787, allocations: 0 / 472.8 MB, free: 13.8 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.00322/0.3819, allocations: 1.994 MB / 474.8 MB, free: 11.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.382, allocations: 12.03 kB / 474.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.717e-05/0.382, allocations: 62.53 kB / 474.9 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002412/0.3823, allocations: 202.7 kB / 475.1 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001917/0.3842, allocations: 1.264 MB / 476.4 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.742e-05/0.3842, allocations: 24.66 kB / 476.4 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.117e-05/0.3843, allocations: 24 kB / 476.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008965/0.3852, allocations: 445.7 kB / 476.8 MB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.3852, allocations: 0 / 476.8 MB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.27e-05/0.3853, allocations: 11.98 kB / 476.8 MB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.3853, allocations: 8 kB / 476.9 MB, free: 9.629 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.3863, allocations: 482.3 kB / 477.3 MB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.3891, allocations: 1.558 MB / 478.9 MB, free: 7.543 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008739/0.39, allocations: 339.4 kB / 479.2 MB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007058/0.3907, allocations: 377.8 kB / 479.6 MB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01311/0.4038, allocations: 7.027 MB / 486.6 MB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006607/0.4045, allocations: 267.8 kB / 486.9 MB, free: 15.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.705e-06/0.4045, allocations: 0 / 486.9 MB, free: 15.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.00211/0.4066, allocations: 0.7587 MB / 487.6 MB, free: 14.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.4067, allocations: 63.28 kB / 487.7 MB, free: 14.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00204/0.4087, allocations: 1.463 MB / 489.2 MB, free: 12.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.588e-05/0.4087, allocations: 29.7 kB / 489.2 MB, free: 12.94 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006982/0.4094, allocations: 0.7271 MB / 489.9 MB, free: 12.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.4095, allocations: 95.27 kB / 490 MB, free: 12.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000207/0.4098, allocations: 133.9 kB / 490.1 MB, free: 11.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.4099, allocations: 326 kB / 490.5 MB, free: 11.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004543/0.4104, allocations: 160.9 kB / 490.6 MB, free: 11.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005916/0.411, allocations: 354.8 kB / 491 MB, free: 11.06 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.412, allocations: 0.5416 MB / 491.5 MB, free: 10.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.412, allocations: 4 kB / 491.5 MB, free: 10.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001572/0.4136, allocations: 0.7522 MB / 492.3 MB, free: 9.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.4136, allocations: 8 kB / 492.3 MB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.27e-05/0.4137, allocations: 44 kB / 492.3 MB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003405/0.414, allocations: 128.8 kB / 492.4 MB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/0.4144, allocations: 116.1 kB / 492.5 MB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006855/0.4151, allocations: 0.6734 MB / 493.2 MB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005735/0.4157, allocations: 71.59 kB / 493.3 MB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.155e-05/0.4158, allocations: 32 kB / 493.3 MB, free: 8.566 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.0004601/0.4162, allocations: 285.6 kB / 493.6 MB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002141/0.4164, allocations: 198.7 kB / 493.8 MB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/0.4183, allocations: 0.7424 MB / 494.5 MB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.4183, allocations: 0 / 494.5 MB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4183, allocations: 0 / 494.5 MB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4183, allocations: 0 / 494.5 MB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002291/0.4206, allocations: 1.283 MB / 495.8 MB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.246e-05/0.4207, allocations: 36 kB / 495.9 MB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002458/0.4209, allocations: 48 kB / 495.9 MB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002535/0.4212, allocations: 124.8 kB / 496 MB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.277e-05/0.4212, allocations: 27.92 kB / 496 MB, free: 5.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006307/0.4218, allocations: 0.6617 MB / 496.7 MB, free: 5.055 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4218, allocations: 0 / 496.7 MB, free: 5.055 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.4232, allocations: 0.7141 MB / 497.4 MB, free: 4.312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000477/0.4237, allocations: 212.6 kB / 497.6 MB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.4238, allocations: 8 kB / 497.6 MB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000409/0.4242, allocations: 27.95 kB / 497.7 MB, free: 4.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.4244, allocations: 47.89 kB / 497.7 MB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.076e-05/0.4244, allocations: 28.11 kB / 497.7 MB, free: 3.996 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001375/0.4258, allocations: 0.9571 MB / 498.7 MB, free: 3.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4258, allocations: 0 / 498.7 MB, free: 3.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009496/0.4267, allocations: 331.6 kB / 499 MB, free: 2.695 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.002513/0.4292, allocations: 1.744 MB / 0.489 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001306/0.4305, allocations: 0.5005 MB / 0.4895 GB, free: 412 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4305, allocations: 4.062 kB / 0.4895 GB, free: 408 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000634/0.4312, allocations: 268 kB / 0.4898 GB, free: 128 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001338/0.4325, allocations: 309.4 kB / 0.4901 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/0.4461, allocations: 9.017 MB / 0.4989 GB, free: 6.418 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007752/0.4469, allocations: 1.149 MB / 0.5 GB, free: 5.238 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006084/0.4475, allocations: 199.9 kB / 0.5002 GB, free: 5.039 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006315/0.4481, allocations: 0.5618 MB / 0.5007 GB, free: 4.477 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4481, allocations: 0 / 0.5007 GB, free: 4.477 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0838/0.5319, allocations: 35.79 MB / 0.5357 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/15.4, allocations: 0 / 0.5357 GB, free: 0.9883 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter_res.csv --start-time 0 --stop-time 1e-11 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 5.0025e-15 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.358647188171744] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 15.753138441126794 15.767724493 15.38598979 Calling exit ...