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.001747/0.001747, allocations: 106.5 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.002213/0.002213, allocations: 213.2 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.445/1.445, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.003046/0.003046, allocations: 64.78 kB / 378.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.3016, allocations: 53.38 MB / 431.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0158/0.3174, allocations: 15.37 MB / 447.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02606/0.3434, allocations: 20.87 MB / 468.2 MB, free: 2.488 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002881/0.3463, allocations: 134.5 kB / 468.3 MB, free: 2.355 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003779/0.3501, allocations: 1.266 MB / 469.5 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009033/0.3591, allocations: 2.417 MB / 472 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005192/0.3643, allocations: 1.465 MB / 473.4 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01155/0.3759, allocations: 6.727 MB / 480.2 MB, free: 6.434 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007715/0.3766, allocations: 270.2 kB / 480.4 MB, free: 6.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001936/0.3786, allocations: 1.182 MB / 481.6 MB, free: 4.953 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001574/0.3802, allocations: 1.137 MB / 482.7 MB, free: 3.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001902/0.3803, allocations: 80 kB / 482.8 MB, free: 3.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004207/0.3845, allocations: 1.479 MB / 484.3 MB, free: 2.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003924/0.3849, allocations: 333.5 kB / 484.6 MB, free: 1.922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001634/0.3866, allocations: 1.436 MB / 486.1 MB, free: 488 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006224/0.3928, allocations: 4.013 MB / 490.1 MB, free: 12.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3928, allocations: 0 / 490.1 MB, free: 12.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3928, allocations: 0 / 490.1 MB, free: 12.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.806e-05/0.3929, allocations: 0 / 490.1 MB, free: 12.45 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.006032/0.3989, allocations: 3.89 MB / 494 MB, free: 8.496 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.399, allocations: 8.031 kB / 494 MB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001344/0.3991, allocations: 98.5 kB / 494.1 MB, free: 8.383 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004991/0.3996, allocations: 429.3 kB / 494.5 MB, free: 7.961 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00377/0.4034, allocations: 2.349 MB / 496.8 MB, free: 5.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.611e-05/0.4034, allocations: 40.98 kB / 496.9 MB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.4036, allocations: 55.95 kB / 496.9 MB, free: 5.422 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.405, allocations: 0.7343 MB / 497.7 MB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.4051, allocations: 0 / 497.7 MB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.661e-05/0.4051, allocations: 16 kB / 497.7 MB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.952e-05/0.4052, allocations: 27.97 kB / 497.7 MB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.4068, allocations: 0.8202 MB / 498.5 MB, free: 3.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005609/0.4124, allocations: 3.05 MB / 0.4898 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.4135, allocations: 0.5241 MB / 0.4903 GB, free: 176 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000989/0.4145, allocations: 0.5653 MB / 0.4909 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0249/0.4394, allocations: 13.79 MB / 0.5044 GB, free: 1.426 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008155/0.4402, allocations: 369.6 kB / 0.5047 GB, free: 1.051 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.725e-06/0.4403, allocations: 0 / 0.5047 GB, free: 1.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002508/0.4428, allocations: 1.126 MB / 0.5058 GB, free: 15.92 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.4428, allocations: 63.39 kB / 0.5059 GB, free: 15.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004013/0.4468, allocations: 3.083 MB / 0.5089 GB, free: 12.76 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.3e-05/0.4469, allocations: 37.7 kB / 0.5089 GB, free: 12.72 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001434/0.4483, allocations: 1.593 MB / 0.5105 GB, free: 11.12 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/0.4485, allocations: 174.5 kB / 0.5106 GB, free: 10.95 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003116/0.4488, allocations: 230.4 kB / 0.5109 GB, free: 10.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.449, allocations: 338 kB / 0.5112 GB, free: 10.38 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005832/0.4496, allocations: 249.8 kB / 0.5114 GB, free: 10.13 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008451/0.4504, allocations: 0.6018 MB / 0.512 GB, free: 9.355 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.4519, allocations: 0.9012 MB / 0.5129 GB, free: 8.281 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.4519, allocations: 4 kB / 0.5129 GB, free: 8.277 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002318/0.4542, allocations: 1.262 MB / 0.5141 GB, free: 7.008 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.4543, allocations: 12.94 kB / 0.5141 GB, free: 6.996 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/0.4544, allocations: 80 kB / 0.5142 GB, free: 6.918 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.316e-05/0.4544, allocations: 16 kB / 0.5142 GB, free: 6.902 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007371/0.4552, allocations: 199.7 kB / 0.5144 GB, free: 6.707 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.295e-05/0.4552, allocations: 27.86 kB / 0.5144 GB, free: 6.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.4563, allocations: 111.3 kB / 0.5145 GB, free: 6.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.4564, allocations: 64 kB / 0.5146 GB, free: 6.508 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.0008261/0.4572, allocations: 461.4 kB / 0.515 GB, free: 6.047 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004295/0.4576, allocations: 421.3 kB / 0.5154 GB, free: 5.633 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002641/0.4603, allocations: 1.199 MB / 0.5166 GB, free: 4.426 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.4603, allocations: 7.984 kB / 0.5166 GB, free: 4.418 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4603, allocations: 4 kB / 0.5166 GB, free: 4.414 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.4603, allocations: 3.938 kB / 0.5166 GB, free: 4.41 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003579/0.4639, allocations: 2.118 MB / 0.5187 GB, free: 2.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001099/0.464, allocations: 71.98 kB / 0.5188 GB, free: 2.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004868/0.4645, allocations: 95.86 kB / 0.5189 GB, free: 2.066 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.247e-06/0.4645, allocations: 7.984 kB / 0.5189 GB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.88e-05/0.4645, allocations: 32 kB / 0.5189 GB, free: 2.027 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.4645, allocations: 4.062 kB / 0.5189 GB, free: 2.023 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.4646, allocations: 4 kB / 0.5189 GB, free: 2.02 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.4669, allocations: 1.343 MB / 0.5202 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007963/0.4677, allocations: 443 kB / 0.5206 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003018/0.468, allocations: 8 kB / 0.5206 GB, free: 216 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007152/0.4687, allocations: 36.02 kB / 0.5207 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.4688, allocations: 59.88 kB / 0.5207 GB, free: 120 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.024e-05/0.4689, allocations: 39.98 kB / 0.5208 GB, free: 80 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002791/0.4717, allocations: 2.01 MB / 0.5227 GB, free: 14.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4717, allocations: 0 / 0.5227 GB, free: 14.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001408/0.4731, allocations: 0.5969 MB / 0.5233 GB, free: 13.48 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.00395/0.4771, allocations: 2.581 MB / 0.5258 GB, free: 10.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.4787, allocations: 0.7718 MB / 0.5266 GB, free: 10.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4787, allocations: 3.938 kB / 0.5266 GB, free: 10.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007794/0.4795, allocations: 426.9 kB / 0.527 GB, free: 9.617 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002526/0.482, allocations: 0.6319 MB / 0.5276 GB, free: 8.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2378/0.7198, 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.0008513/0.7206, allocations: 1.709 MB / 0.5459 GB, free: 99.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009852/0.7216, allocations: 357.2 kB / 0.5463 GB, free: 99.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000904/0.7225, allocations: 1.272 MB / 0.5475 GB, free: 98.79 MB / 446.1 MB Notification: Performance of SimCode: time 1.142e-06/0.7225, allocations: 0 / 0.5475 GB, free: 98.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1035/0.826, allocations: 63.75 MB / 0.6098 GB, free: 38.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.88/17.71, allocations: 14.89 kB / 0.6098 GB, free: 38.91 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 & /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: 20.20947480527684] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp1.S.v', 'mp2.S.v', 'v.p.v'] 17.830824819859117 17.83962907 17.444245091 Calling exit ...