Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001331/0.001331, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.0015/0.0015, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.43/1.43, allocations: 230.6 MB / 258.3 MB, free: 8.055 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.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",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.002019/0.002019, allocations: 67.89 kB / 378.5 MB, free: 3.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2691, allocations: 53.37 MB / 431.9 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01678/0.2859, allocations: 15.37 MB / 447.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02978/0.3157, allocations: 20.88 MB / 468.2 MB, free: 2.531 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003501/0.3192, allocations: 130.6 kB / 468.3 MB, free: 2.402 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004041/0.3232, allocations: 1.267 MB / 469.5 MB, free: 1.129 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009753/0.333, allocations: 2.419 MB / 472 MB, free: 14.69 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005694/0.3387, allocations: 1.461 MB / 473.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01341/0.3521, allocations: 6.727 MB / 480.2 MB, free: 6.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001036/0.3531, allocations: 274.2 kB / 480.4 MB, free: 6.184 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002367/0.3555, allocations: 1.178 MB / 481.6 MB, free: 5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002075/0.3575, allocations: 1.145 MB / 482.7 MB, free: 3.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002964/0.3578, allocations: 76 kB / 482.8 MB, free: 3.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005365/0.3632, allocations: 1.487 MB / 484.3 MB, free: 2.285 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005858/0.3638, allocations: 329.5 kB / 484.6 MB, free: 1.961 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002417/0.3662, allocations: 1.432 MB / 486.1 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007328/0.3735, allocations: 4.005 MB / 490.1 MB, free: 12.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3735, allocations: 0 / 490.1 MB, free: 12.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3735, allocations: 0 / 490.1 MB, free: 12.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.16e-05/0.3736, allocations: 7.938 kB / 490.1 MB, free: 12.49 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006343/0.38, allocations: 3.886 MB / 494 MB, free: 8.543 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.38, allocations: 8.031 kB / 494 MB, free: 8.535 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.3802, allocations: 102.5 kB / 494.1 MB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005199/0.3807, allocations: 429.3 kB / 494.5 MB, free: 8.004 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003795/0.3845, allocations: 2.349 MB / 496.8 MB, free: 5.562 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.267e-05/0.3845, allocations: 40.98 kB / 496.9 MB, free: 5.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.3847, allocations: 51.95 kB / 496.9 MB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/0.3861, allocations: 0.7343 MB / 497.7 MB, free: 4.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.3861, allocations: 0 / 497.7 MB, free: 4.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.91e-05/0.3862, allocations: 24 kB / 497.7 MB, free: 4.707 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.362e-05/0.3862, allocations: 19.98 kB / 497.7 MB, free: 4.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.3879, allocations: 0.8241 MB / 498.5 MB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005566/0.3935, allocations: 3.043 MB / 0.4898 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.3947, allocations: 0.5281 MB / 0.4903 GB, free: 224 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.3957, allocations: 0.5691 MB / 0.4909 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02578/0.4215, allocations: 13.79 MB / 0.5044 GB, free: 1.465 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008276/0.4223, allocations: 361.6 kB / 0.5047 GB, free: 1.098 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.394e-06/0.4223, allocations: 0 / 0.5047 GB, free: 1.098 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002737/0.425, allocations: 1.122 MB / 0.5058 GB, free: 15.97 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/0.4251, allocations: 71.39 kB / 0.5059 GB, free: 15.89 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004497/0.4296, allocations: 3.087 MB / 0.5089 GB, free: 12.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.417e-05/0.4297, allocations: 29.7 kB / 0.5089 GB, free: 12.77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001621/0.4313, allocations: 1.589 MB / 0.5105 GB, free: 11.17 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002595/0.4316, allocations: 182.5 kB / 0.5106 GB, free: 10.99 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003406/0.4319, allocations: 230.4 kB / 0.5109 GB, free: 10.76 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.4321, allocations: 334 kB / 0.5112 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000638/0.4327, allocations: 253.8 kB / 0.5114 GB, free: 10.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009036/0.4336, allocations: 0.5979 MB / 0.512 GB, free: 9.402 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001559/0.4352, allocations: 0.8973 MB / 0.5129 GB, free: 8.332 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/0.4352, allocations: 8 kB / 0.5129 GB, free: 8.324 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002384/0.4376, allocations: 1.255 MB / 0.5141 GB, free: 7.062 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.4376, allocations: 12.22 kB / 0.5141 GB, free: 7.051 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000129/0.4378, allocations: 84 kB / 0.5142 GB, free: 6.969 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.079e-05/0.4378, allocations: 16 kB / 0.5142 GB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007529/0.4385, allocations: 203.6 kB / 0.5144 GB, free: 6.754 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.992e-05/0.4386, allocations: 27.92 kB / 0.5144 GB, free: 6.727 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009806/0.4395, allocations: 107.3 kB / 0.5145 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/0.4397, allocations: 68 kB / 0.5146 GB, free: 6.555 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008702/0.4405, allocations: 457.4 kB / 0.515 GB, free: 6.098 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004671/0.441, allocations: 421.3 kB / 0.5154 GB, free: 5.684 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002746/0.4437, allocations: 1.211 MB / 0.5166 GB, free: 4.465 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.4438, allocations: 4 kB / 0.5166 GB, free: 4.461 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.4438, allocations: 3.938 kB / 0.5166 GB, free: 4.457 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4438, allocations: 0 / 0.5166 GB, free: 4.457 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003528/0.4473, allocations: 2.122 MB / 0.5187 GB, free: 2.273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001133/0.4474, allocations: 71.98 kB / 0.5188 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004793/0.4479, allocations: 91.86 kB / 0.5189 GB, free: 2.113 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.754e-06/0.4479, allocations: 8.062 kB / 0.5189 GB, free: 2.105 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.996e-05/0.4479, allocations: 28 kB / 0.5189 GB, free: 2.078 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.448, allocations: 0 / 0.5189 GB, free: 2.078 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.448, allocations: 7.984 kB / 0.5189 GB, free: 2.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002489/0.4504, allocations: 1.343 MB / 0.5202 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000858/0.4513, allocations: 443 kB / 0.5206 GB, free: 276 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002895/0.4516, allocations: 12 kB / 0.5206 GB, free: 264 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006519/0.4522, allocations: 36.02 kB / 0.5207 GB, free: 228 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.4524, allocations: 67.81 kB / 0.5207 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.917e-05/0.4525, allocations: 39.98 kB / 0.5208 GB, free: 120 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003396/0.4559, allocations: 2.011 MB / 0.5227 GB, free: 14.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4559, allocations: 0 / 0.5227 GB, free: 14.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002237/0.4581, allocations: 0.5969 MB / 0.5233 GB, free: 13.51 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004463/0.4626, allocations: 2.573 MB / 0.5258 GB, free: 10.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.4644, allocations: 0.7755 MB / 0.5266 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4644, allocations: 0 / 0.5266 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008107/0.4652, allocations: 426.9 kB / 0.527 GB, free: 9.664 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003055/0.4683, allocations: 0.632 MB / 0.5276 GB, free: 9.027 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2443/0.7126, allocations: 17.05 MB / 0.5443 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000792/0.7134, allocations: 1.71 MB / 0.5459 GB, free: 99.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009827/0.7144, allocations: 358.2 kB / 0.5463 GB, free: 99.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008958/0.7153, allocations: 1.265 MB / 0.5475 GB, free: 98.79 MB / 446.1 MB Notification: Performance of SimCode: time 1.031e-06/0.7153, allocations: 0 / 0.5475 GB, free: 98.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1046/0.8198, allocations: 63.75 MB / 0.6098 GB, free: 38.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.59/17.41, allocations: 9.984 kB / 0.6098 GB, free: 38.95 MB / 446.1 MB " [Timeout remaining time 642] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.90334995603189] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp1.S.v', 'mp2.S.v', 'v.p.v'] 17.528518402017653 17.548758288 17.170613887 Calling exit ...