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.001805/0.001805, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.002151/0.002151, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.527/1.527, allocations: 230.5 MB / 254.7 MB, free: 15.01 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.001952/0.001952, allocations: 67.84 kB / 373.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1174, allocations: 53.31 MB / 426.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2615/0.3789, allocations: 15.36 MB / 442.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03003/0.4089, allocations: 20.84 MB / 463.1 MB, free: 3.363 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004252/0.4132, allocations: 89.81 kB / 463.2 MB, free: 3.316 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004635/0.4178, allocations: 1.268 MB / 464.4 MB, free: 2.648 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01317/0.431, allocations: 2.379 MB / 466.8 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006868/0.4379, allocations: 1.437 MB / 468.2 MB, free: 444 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0158/0.4537, allocations: 6.711 MB / 475 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009188/0.4546, allocations: 273.9 kB / 475.2 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002528/0.4571, allocations: 1.136 MB / 476.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002416/0.4595, allocations: 1.149 MB / 477.5 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002599/0.4598, allocations: 75.47 kB / 477.6 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005672/0.4655, allocations: 1.481 MB / 479.1 MB, free: 11.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006273/0.4661, allocations: 339 kB / 479.4 MB, free: 10.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003047/0.4691, allocations: 1.425 MB / 480.8 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.4793, allocations: 4.006 MB / 484.8 MB, free: 6.938 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.4793, allocations: 3.938 kB / 484.8 MB, free: 6.934 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.4793, allocations: 0 / 484.8 MB, free: 6.934 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.64e-05/0.4794, allocations: 0 / 484.8 MB, free: 6.934 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007585/0.487, allocations: 3.962 MB / 488.8 MB, free: 2.887 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.487, allocations: 8.031 kB / 488.8 MB, free: 2.879 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001532/0.4872, allocations: 102.5 kB / 488.9 MB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005767/0.4878, allocations: 436.2 kB / 489.3 MB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0044/0.4922, allocations: 2.503 MB / 491.8 MB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.064e-05/0.4922, allocations: 40.98 kB / 491.9 MB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.4923, allocations: 55.95 kB / 491.9 MB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.4937, allocations: 0.7265 MB / 492.6 MB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.4938, allocations: 0 / 492.6 MB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.717e-05/0.4938, allocations: 24 kB / 492.7 MB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.739e-05/0.4939, allocations: 23.98 kB / 492.7 MB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/0.4954, allocations: 0.8163 MB / 493.5 MB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005753/0.5012, allocations: 3.102 MB / 496.6 MB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.5023, allocations: 0.5165 MB / 497.1 MB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009761/0.5033, allocations: 0.5705 MB / 497.7 MB, free: 9.801 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03677/0.5401, allocations: 30.76 MB / 0.5161 GB, free: 6.785 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008121/0.5409, allocations: 361.6 kB / 0.5164 GB, free: 6.422 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 3.246e-06/0.5409, allocations: 0 / 0.5164 GB, free: 6.422 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002524/0.5434, allocations: 1.134 MB / 0.5175 GB, free: 5.281 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.269e-05/0.5435, allocations: 59.41 kB / 0.5176 GB, free: 5.211 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004053/0.5475, allocations: 3.087 MB / 0.5206 GB, free: 2.125 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.795e-05/0.5476, allocations: 33.7 kB / 0.5206 GB, free: 2.086 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001524/0.5491, allocations: 1.582 MB / 0.5222 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002046/0.5493, allocations: 182.6 kB / 0.5224 GB, free: 324 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003664/0.5497, allocations: 230.4 kB / 0.5226 GB, free: 88 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.5499, allocations: 337.9 kB / 0.5229 GB, free: 15.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/0.5505, allocations: 241.9 kB / 0.5231 GB, free: 15.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008985/0.5514, allocations: 0.602 MB / 0.5237 GB, free: 14.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/0.5529, allocations: 0.9012 MB / 0.5246 GB, free: 13.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/0.5529, allocations: 7.938 kB / 0.5246 GB, free: 13.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002394/0.5553, allocations: 1.265 MB / 0.5258 GB, free: 12.38 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.5553, allocations: 8 kB / 0.5258 GB, free: 12.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001265/0.5554, allocations: 83.98 kB / 0.5259 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.292e-05/0.5554, allocations: 20 kB / 0.5259 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007128/0.5562, allocations: 204.1 kB / 0.5261 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.31e-05/0.5562, allocations: 23.94 kB / 0.5262 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.5573, allocations: 115.3 kB / 0.5263 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.5574, allocations: 60 kB / 0.5263 GB, free: 11.88 MB / 446.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.0008744/0.5583, allocations: 457.4 kB / 0.5268 GB, free: 11.42 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004423/0.5587, allocations: 417.3 kB / 0.5272 GB, free: 11.01 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002754/0.5615, allocations: 1.213 MB / 0.5283 GB, free: 9.785 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.846e-06/0.5615, allocations: 7.938 kB / 0.5284 GB, free: 9.777 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.5615, allocations: 5.5 kB / 0.5284 GB, free: 9.773 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.5615, allocations: 3.984 kB / 0.5284 GB, free: 9.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003877/0.5654, allocations: 2.135 MB / 0.5304 GB, free: 7.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001022/0.5655, allocations: 71.94 kB / 0.5305 GB, free: 7.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004622/0.566, allocations: 99.92 kB / 0.5306 GB, free: 7.402 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.566, allocations: 0 / 0.5306 GB, free: 7.402 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.923e-05/0.566, allocations: 31.98 kB / 0.5306 GB, free: 7.371 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.566, allocations: 4 kB / 0.5306 GB, free: 7.367 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.566, allocations: 0 / 0.5306 GB, free: 7.367 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002336/0.5684, allocations: 1.347 MB / 0.532 GB, free: 5.992 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001133/0.5695, allocations: 0.5022 MB / 0.5324 GB, free: 5.469 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002847/0.5698, allocations: 16.86 kB / 0.5325 GB, free: 5.453 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006393/0.5704, allocations: 27.97 kB / 0.5325 GB, free: 5.426 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.5706, allocations: 63.83 kB / 0.5326 GB, free: 5.363 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.773e-05/0.5707, allocations: 39.98 kB / 0.5326 GB, free: 5.324 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0029/0.5736, allocations: 2.011 MB / 0.5346 GB, free: 3.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5736, allocations: 0 / 0.5346 GB, free: 3.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001442/0.575, allocations: 0.6008 MB / 0.5351 GB, free: 2.719 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.0038/0.5788, allocations: 2.572 MB / 0.5377 GB, free: 120 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.5804, allocations: 0.7702 MB / 0.5384 GB, free: 15.32 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.5804, allocations: 1.25 kB / 0.5384 GB, free: 15.32 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000764/0.5812, allocations: 427.1 kB / 0.5388 GB, free: 14.88 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002663/0.5839, allocations: 0.6524 MB / 0.5395 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02741/0.6113, allocations: 17.07 MB / 0.5561 GB, free: 12.65 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001372/0.6127, allocations: 1.71 MB / 0.5578 GB, free: 10.91 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001159/0.6138, allocations: 361.3 kB / 0.5581 GB, free: 10.55 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001406/0.6152, allocations: 1.265 MB / 0.5594 GB, free: 9.289 MB / 478.1 MB Notification: Performance of SimCode: time 1.232e-06/0.6152, allocations: 4 kB / 0.5594 GB, free: 9.285 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3442/0.9594, allocations: 63.32 MB / 0.6212 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.94/16.9, allocations: 12.8 kB / 0.6212 GB, free: 165.3 MB / 0.5137 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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.456713741179556] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp1.S.v', 'mp2.S.v', 'v.p.v'] 17.010486586019397 17.027516918 16.544489183 Calling exit ...