Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001283/0.001283, 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.001281/0.001281, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 63.91 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1054, allocations: 53.31 MB / 426.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2164/0.3218, allocations: 15.36 MB / 442 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02809/0.3499, allocations: 20.85 MB / 462.9 MB, free: 3.504 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003209/0.3531, allocations: 85.19 kB / 462.9 MB, free: 3.461 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003996/0.3571, allocations: 1.266 MB / 464.2 MB, free: 2.793 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01015/0.3673, allocations: 2.378 MB / 466.6 MB, free: 1.328 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005497/0.3728, allocations: 1.436 MB / 468 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01248/0.3853, allocations: 6.707 MB / 474.7 MB, free: 13.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008635/0.3861, allocations: 282.2 kB / 475 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002426/0.3885, allocations: 1.135 MB / 476.1 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001747/0.3903, allocations: 1.145 MB / 477.3 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001981/0.3905, allocations: 75.06 kB / 477.4 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004717/0.3952, allocations: 1.478 MB / 478.8 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006115/0.3958, allocations: 344.6 kB / 479.2 MB, free: 11.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002193/0.398, allocations: 1.423 MB / 480.6 MB, free: 10.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007407/0.4054, allocations: 4.006 MB / 484.6 MB, free: 7.082 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.4054, allocations: 4 kB / 484.6 MB, free: 7.078 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4054, allocations: 0 / 484.6 MB, free: 7.078 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001104/0.4055, allocations: 0 / 484.6 MB, free: 7.078 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.006894/0.4124, allocations: 3.965 MB / 488.6 MB, free: 3.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.4125, allocations: 8.031 kB / 488.6 MB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001374/0.4126, allocations: 102.5 kB / 488.7 MB, free: 2.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005366/0.4132, allocations: 436.3 kB / 489.1 MB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004267/0.4174, allocations: 2.503 MB / 491.6 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.4e-05/0.4175, allocations: 44.92 kB / 491.7 MB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.4176, allocations: 60.52 kB / 491.7 MB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.419, allocations: 0.7226 MB / 492.4 MB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.419, allocations: 0 / 492.4 MB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.481e-05/0.4191, allocations: 20 kB / 492.5 MB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.753e-05/0.4191, allocations: 19.98 kB / 492.5 MB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/0.4207, allocations: 0.8163 MB / 493.3 MB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006121/0.4268, allocations: 3.106 MB / 496.4 MB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.4281, allocations: 0.5212 MB / 496.9 MB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009769/0.4291, allocations: 0.5715 MB / 497.5 MB, free: 9.934 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03705/0.4661, allocations: 30.76 MB / 0.5159 GB, free: 6.922 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007712/0.4669, allocations: 357.6 kB / 0.5162 GB, free: 6.562 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.756e-06/0.4669, allocations: 0 / 0.5162 GB, free: 6.562 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002352/0.4692, allocations: 1.138 MB / 0.5173 GB, free: 5.414 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.435e-05/0.4693, allocations: 59.41 kB / 0.5174 GB, free: 5.344 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004212/0.4735, allocations: 3.087 MB / 0.5204 GB, free: 2.258 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.817e-05/0.4736, allocations: 33.7 kB / 0.5204 GB, free: 2.219 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001579/0.4752, allocations: 1.582 MB / 0.522 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.4753, allocations: 182.6 kB / 0.5221 GB, free: 460 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003268/0.4757, allocations: 226.4 kB / 0.5224 GB, free: 228 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002949/0.476, allocations: 337.9 kB / 0.5227 GB, free: 15.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005764/0.4765, allocations: 245.9 kB / 0.5229 GB, free: 15.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009012/0.4774, allocations: 0.6059 MB / 0.5235 GB, free: 14.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.479, allocations: 0.9012 MB / 0.5244 GB, free: 13.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/0.479, allocations: 4 kB / 0.5244 GB, free: 13.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002308/0.4814, allocations: 1.255 MB / 0.5256 GB, free: 12.53 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.4814, allocations: 12 kB / 0.5256 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001267/0.4815, allocations: 83.98 kB / 0.5257 GB, free: 12.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.457e-05/0.4815, allocations: 20 kB / 0.5257 GB, free: 12.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007872/0.4823, allocations: 203.6 kB / 0.5259 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.673e-05/0.4824, allocations: 21.5 kB / 0.5259 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.4835, allocations: 127.2 kB / 0.5261 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.4836, allocations: 60 kB / 0.5261 GB, free: 12.02 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.0007979/0.4844, allocations: 457.4 kB / 0.5266 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004695/0.4848, allocations: 417.3 kB / 0.527 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002668/0.4875, allocations: 1.213 MB / 0.5281 GB, free: 9.926 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.4875, allocations: 4 kB / 0.5281 GB, free: 9.922 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.4875, allocations: 4.562 kB / 0.5281 GB, free: 9.918 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4875, allocations: 0 / 0.5281 GB, free: 9.918 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003841/0.4914, allocations: 2.139 MB / 0.5302 GB, free: 7.715 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001066/0.4915, allocations: 68 kB / 0.5303 GB, free: 7.648 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005007/0.492, allocations: 100.8 kB / 0.5304 GB, free: 7.551 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.492, allocations: 0 / 0.5304 GB, free: 7.551 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.728e-05/0.492, allocations: 31.98 kB / 0.5304 GB, free: 7.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.492, allocations: 4 kB / 0.5304 GB, free: 7.516 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.492, allocations: 0 / 0.5304 GB, free: 7.516 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002393/0.4944, allocations: 1.346 MB / 0.5317 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/0.4954, allocations: 0.5021 MB / 0.5322 GB, free: 5.617 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002899/0.4957, allocations: 16.94 kB / 0.5323 GB, free: 5.602 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006471/0.4964, allocations: 31.95 kB / 0.5323 GB, free: 5.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.4965, allocations: 63.88 kB / 0.5323 GB, free: 5.508 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.508e-05/0.4966, allocations: 39.98 kB / 0.5324 GB, free: 5.469 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002884/0.4995, allocations: 2.007 MB / 0.5343 GB, free: 3.469 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4995, allocations: 0 / 0.5343 GB, free: 3.469 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0016/0.5011, allocations: 0.6008 MB / 0.5349 GB, free: 2.867 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.003917/0.505, allocations: 2.579 MB / 0.5374 GB, free: 264 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001671/0.5067, allocations: 0.7675 MB / 0.5382 GB, free: 15.46 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5067, allocations: 0 / 0.5382 GB, free: 15.46 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007759/0.5075, allocations: 423 kB / 0.5386 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002667/0.5101, allocations: 0.6552 MB / 0.5392 GB, free: 14.38 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02588/0.536, allocations: 17.07 MB / 0.5559 GB, free: 12.79 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001421/0.5374, allocations: 1.714 MB / 0.5576 GB, free: 11.05 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001173/0.5386, allocations: 361.3 kB / 0.5579 GB, free: 10.69 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001423/0.54, allocations: 1.265 MB / 0.5592 GB, free: 9.426 MB / 478.1 MB Notification: Performance of SimCode: time 1.112e-06/0.54, allocations: 0 / 0.5592 GB, free: 9.426 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3469/0.887, allocations: 63.3 MB / 0.621 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.76/17.64, allocations: 5.016 kB / 0.621 GB, free: 165.3 MB / 0.5137 GB " [Timeout remaining time 642] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.168732833117247] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp1.S.v', 'mp2.S.v', 'v.p.v'] 17.75708127906546 17.769970757 17.361611778 Calling exit ...