Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001926/0.001926, allocations: 120 kB / 18.5 MB, free: 4.52 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.002257/0.002257, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.605/1.605, allocations: 230.5 MB / 254.8 MB, free: 15.25 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.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.002124/0.002124, allocations: 67.84 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1185, allocations: 53.33 MB / 427 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01811/0.1366, allocations: 14.76 MB / 441.8 MB, free: 5.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2722/0.4088, allocations: 20.77 MB / 462.5 MB, free: 6.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003542/0.4123, allocations: 137.5 kB / 462.7 MB, free: 6.836 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004215/0.4165, allocations: 1.244 MB / 463.9 MB, free: 6.203 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01091/0.4274, allocations: 2.317 MB / 466.2 MB, free: 4.988 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00764/0.4351, allocations: 1.444 MB / 467.7 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01434/0.4494, allocations: 6.58 MB / 474.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001022/0.4504, allocations: 276.3 kB / 474.5 MB, free: 1.918 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003025/0.4535, allocations: 1.146 MB / 475.7 MB, free: 1.469 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002653/0.4561, allocations: 1.106 MB / 476.8 MB, free: 0.918 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005453/0.4567, allocations: 74.16 kB / 476.8 MB, free: 0.918 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008695/0.4654, allocations: 1.479 MB / 478.3 MB, free: 484 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000847/0.4662, allocations: 332.4 kB / 478.7 MB, free: 248 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004054/0.4703, allocations: 1.378 MB / 480 MB, free: 15.37 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01119/0.4815, allocations: 3.788 MB / 483.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.4815, allocations: 1 kB / 483.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4815, allocations: 0 / 483.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001523/0.4816, allocations: 0 / 483.8 MB, free: 13.4 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.009424/0.491, allocations: 3.812 MB / 487.6 MB, free: 10.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.4911, allocations: 9.688 kB / 487.6 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001855/0.4913, allocations: 100.3 kB / 487.7 MB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000872/0.4922, allocations: 411.8 kB / 488.1 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004563/0.4967, allocations: 2.45 MB / 490.6 MB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.076e-05/0.4968, allocations: 37.56 kB / 490.6 MB, free: 8.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.4969, allocations: 54.58 kB / 490.7 MB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.4985, allocations: 0.7364 MB / 491.4 MB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.4985, allocations: 0 / 491.4 MB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.613e-05/0.4986, allocations: 19.66 kB / 491.4 MB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.946e-05/0.4986, allocations: 25.36 kB / 491.5 MB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001809/0.5004, allocations: 0.8161 MB / 492.3 MB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006667/0.5071, allocations: 3.057 MB / 495.3 MB, free: 5.438 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.5084, allocations: 0.5174 MB / 495.9 MB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.5094, allocations: 0.5588 MB / 496.4 MB, free: 4.859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03763/0.5471, allocations: 30.75 MB / 0.5148 GB, free: 2.227 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009323/0.548, allocations: 377.5 kB / 0.5152 GB, free: 1.848 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.735e-06/0.548, allocations: 0 / 0.5152 GB, free: 1.848 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003178/0.5512, allocations: 1.107 MB / 0.5162 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.086e-05/0.5512, allocations: 59.34 kB / 0.5163 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005184/0.5564, allocations: 2.935 MB / 0.5192 GB, free: 13.71 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001308/0.5566, allocations: 37.7 kB / 0.5192 GB, free: 13.67 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.5581, allocations: 1.498 MB / 0.5207 GB, free: 12.17 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003237/0.5584, allocations: 170.6 kB / 0.5208 GB, free: 12 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004013/0.5588, allocations: 234.4 kB / 0.5211 GB, free: 11.77 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.5591, allocations: 341.9 kB / 0.5214 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006562/0.5597, allocations: 241.9 kB / 0.5216 GB, free: 11.19 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000982/0.5607, allocations: 0.5998 MB / 0.5222 GB, free: 10.42 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.5624, allocations: 0.9013 MB / 0.5231 GB, free: 9.34 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.5624, allocations: 0 / 0.5231 GB, free: 9.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003/0.5654, allocations: 1.247 MB / 0.5243 GB, free: 8.09 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.39e-05/0.5654, allocations: 15.94 kB / 0.5243 GB, free: 8.074 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001286/0.5656, allocations: 80 kB / 0.5244 GB, free: 7.996 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.467e-05/0.5656, allocations: 16 kB / 0.5244 GB, free: 7.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008127/0.5664, allocations: 200 kB / 0.5246 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.89e-05/0.5664, allocations: 27.92 kB / 0.5246 GB, free: 7.758 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/0.5683, allocations: 115.3 kB / 0.5247 GB, free: 7.645 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.5684, allocations: 64 kB / 0.5248 GB, free: 7.582 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.001139/0.5696, allocations: 429.5 kB / 0.5252 GB, free: 7.152 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007742/0.5703, allocations: 409.4 kB / 0.5256 GB, free: 6.75 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003117/0.5734, allocations: 1.195 MB / 0.5268 GB, free: 5.551 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.5735, allocations: 4 kB / 0.5268 GB, free: 5.547 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.5735, allocations: 0 / 0.5268 GB, free: 5.547 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.5735, allocations: 4 kB / 0.5268 GB, free: 5.543 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004893/0.5784, allocations: 2.093 MB / 0.5288 GB, free: 3.383 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001065/0.5785, allocations: 71.98 kB / 0.5289 GB, free: 3.312 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005258/0.579, allocations: 95.92 kB / 0.529 GB, free: 3.219 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.658e-06/0.579, allocations: 4 kB / 0.529 GB, free: 3.215 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.692e-05/0.5791, allocations: 32 kB / 0.529 GB, free: 3.184 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.626e-06/0.5791, allocations: 4.875 kB / 0.529 GB, free: 3.18 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.5791, allocations: 3.938 kB / 0.529 GB, free: 3.176 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003304/0.5824, allocations: 1.317 MB / 0.5303 GB, free: 1.832 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/0.5839, allocations: 498.3 kB / 0.5308 GB, free: 1.324 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005304/0.5844, allocations: 8 kB / 0.5308 GB, free: 1.316 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009318/0.5854, allocations: 27.97 kB / 0.5308 GB, free: 1.289 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.5855, allocations: 59.94 kB / 0.5309 GB, free: 1.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.208e-05/0.5856, allocations: 37.06 kB / 0.5309 GB, free: 1.195 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003624/0.5893, allocations: 1.915 MB / 0.5328 GB, free: 15.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5893, allocations: 0 / 0.5328 GB, free: 15.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002499/0.5918, allocations: 0.5891 MB / 0.5333 GB, free: 14.69 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.005522/0.5973, allocations: 2.554 MB / 0.5358 GB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002081/0.5994, allocations: 0.7781 MB / 0.5366 GB, free: 11.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.5994, allocations: 3.938 kB / 0.5366 GB, free: 11.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009396/0.6003, allocations: 428.2 kB / 0.537 GB, free: 10.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004233/0.6045, allocations: 0.6013 MB / 0.5376 GB, free: 10.26 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03076/0.6353, allocations: 16.44 MB / 0.5537 GB, free: 9.285 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001636/0.6369, allocations: 1.665 MB / 0.5553 GB, free: 7.594 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001297/0.6382, allocations: 357.1 kB / 0.5556 GB, free: 7.238 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00159/0.6398, allocations: 1.218 MB / 0.5568 GB, free: 6.02 MB / 462.1 MB Notification: Performance of SimCode: time 1.884e-06/0.6398, allocations: 0 / 0.5568 GB, free: 6.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1366/0.7764, allocations: 61.08 MB / 0.6165 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.46/17.23, allocations: 0 / 0.6165 GB, free: 9.355 MB / 0.5137 GB " [Timeout remaining time 643] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_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_InvertersApartRecord.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.088613495230675] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp1.S.v', 'mp2.S.v', 'v.p.v'] 17.349672594107687 17.37621073 16.889242809 Calling exit ...