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.001664/0.001664, allocations: 121.2 kB / 18.5 MB, free: 4.578 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.001875/0.001875, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.554/1.554, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.002743/0.002743, allocations: 79.81 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1344, allocations: 53.32 MB / 427 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2669/0.4014, allocations: 15.35 MB / 442.4 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.032/0.4333, allocations: 20.85 MB / 463.2 MB, free: 3.293 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004647/0.438, allocations: 136.8 kB / 463.3 MB, free: 3.199 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004857/0.4429, allocations: 1.264 MB / 464.6 MB, free: 2.535 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01213/0.455, allocations: 2.374 MB / 467 MB, free: 1.074 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006971/0.462, allocations: 1.435 MB / 468.4 MB, free: 336 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01485/0.4768, allocations: 6.721 MB / 475.1 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001013/0.4778, allocations: 275 kB / 475.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002837/0.4807, allocations: 1.179 MB / 476.6 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002499/0.4832, allocations: 1.15 MB / 477.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002729/0.4834, allocations: 74.28 kB / 477.8 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005848/0.4893, allocations: 1.476 MB / 479.3 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005468/0.4898, allocations: 335.7 kB / 479.6 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002849/0.4927, allocations: 1.425 MB / 481 MB, free: 9.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009112/0.5018, allocations: 4.013 MB / 485 MB, free: 6.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.5018, allocations: 0 / 485 MB, free: 6.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5018, allocations: 0 / 485 MB, free: 6.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.421e-05/0.5019, allocations: 4 kB / 485 MB, free: 6.727 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.006725/0.5086, allocations: 3.962 MB / 489 MB, free: 2.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.5086, allocations: 8.031 kB / 489 MB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001489/0.5088, allocations: 102.4 kB / 489.1 MB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005506/0.5093, allocations: 429.3 kB / 489.5 MB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003856/0.5132, allocations: 2.503 MB / 492 MB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.089e-05/0.5132, allocations: 40.98 kB / 492.1 MB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.5134, allocations: 51.95 kB / 492.1 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.5148, allocations: 0.7343 MB / 492.9 MB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.5149, allocations: 4 kB / 492.9 MB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.017e-05/0.5149, allocations: 16 kB / 492.9 MB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.787e-05/0.515, allocations: 19.98 kB / 492.9 MB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.5167, allocations: 0.8163 MB / 493.7 MB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005966/0.5226, allocations: 3.11 MB / 496.8 MB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.5239, allocations: 0.5242 MB / 497.3 MB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/0.5249, allocations: 0.5545 MB / 497.9 MB, free: 9.605 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0344/0.5593, allocations: 30.76 MB / 0.5163 GB, free: 6.59 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008468/0.5601, allocations: 362.5 kB / 0.5166 GB, free: 6.227 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.885e-06/0.5601, allocations: 0 / 0.5166 GB, free: 6.227 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002671/0.5628, allocations: 1.134 MB / 0.5177 GB, free: 5.086 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/0.5629, allocations: 63.41 kB / 0.5178 GB, free: 5.012 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004381/0.5673, allocations: 3.083 MB / 0.5208 GB, free: 1.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.737e-05/0.5674, allocations: 37.7 kB / 0.5208 GB, free: 1.887 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001491/0.5689, allocations: 1.585 MB / 0.5224 GB, free: 300 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002086/0.5691, allocations: 182.5 kB / 0.5226 GB, free: 116 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003588/0.5694, allocations: 226.4 kB / 0.5228 GB, free: 15.89 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.5696, allocations: 341.9 kB / 0.5231 GB, free: 15.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006768/0.5703, allocations: 241.9 kB / 0.5233 GB, free: 15.31 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009534/0.5712, allocations: 0.6059 MB / 0.5239 GB, free: 14.53 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001624/0.5728, allocations: 0.8973 MB / 0.5248 GB, free: 13.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.5728, allocations: 8 kB / 0.5248 GB, free: 13.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002422/0.5753, allocations: 1.259 MB / 0.526 GB, free: 12.19 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.5753, allocations: 12.22 kB / 0.526 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001214/0.5754, allocations: 89.48 kB / 0.5261 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.494e-05/0.5755, allocations: 16 kB / 0.5261 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007472/0.5762, allocations: 203.6 kB / 0.5263 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.531e-05/0.5762, allocations: 19.94 kB / 0.5264 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.5776, allocations: 115.2 kB / 0.5265 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.5777, allocations: 68 kB / 0.5265 GB, free: 11.68 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.0009297/0.5787, allocations: 453.4 kB / 0.527 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006265/0.5793, allocations: 421.3 kB / 0.5274 GB, free: 10.81 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002954/0.5823, allocations: 1.214 MB / 0.5286 GB, free: 9.586 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.5823, allocations: 4 kB / 0.5286 GB, free: 9.582 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.5823, allocations: 0 / 0.5286 GB, free: 9.582 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.5823, allocations: 0 / 0.5286 GB, free: 9.582 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003923/0.5862, allocations: 2.151 MB / 0.5307 GB, free: 7.367 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.987e-05/0.5863, allocations: 69.06 kB / 0.5307 GB, free: 7.301 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005193/0.5868, allocations: 91.86 kB / 0.5308 GB, free: 7.211 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.5868, allocations: 4.062 kB / 0.5308 GB, free: 7.207 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.814e-05/0.5869, allocations: 39.98 kB / 0.5309 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.5869, allocations: 0 / 0.5309 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5869, allocations: 0 / 0.5309 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.5895, allocations: 1.343 MB / 0.5322 GB, free: 5.797 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/0.5907, allocations: 0.5022 MB / 0.5327 GB, free: 5.273 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002852/0.5909, allocations: 8.875 kB / 0.5327 GB, free: 5.266 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006901/0.5916, allocations: 40.02 kB / 0.5327 GB, free: 5.227 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.5918, allocations: 59.89 kB / 0.5328 GB, free: 5.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.167e-05/0.5919, allocations: 39.98 kB / 0.5328 GB, free: 5.129 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003217/0.5951, allocations: 2.007 MB / 0.5348 GB, free: 3.129 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5951, allocations: 0 / 0.5348 GB, free: 3.129 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0017/0.5968, allocations: 0.5969 MB / 0.5353 GB, free: 2.531 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.004289/0.6011, allocations: 2.579 MB / 0.5379 GB, free: 15.92 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.6029, allocations: 0.7713 MB / 0.5386 GB, free: 15.12 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.6029, allocations: 0 / 0.5386 GB, free: 15.12 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008163/0.6037, allocations: 426.9 kB / 0.539 GB, free: 14.68 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003057/0.6068, allocations: 0.646 MB / 0.5396 GB, free: 14.04 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02741/0.6342, allocations: 17.06 MB / 0.5563 GB, free: 12.47 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001414/0.6356, allocations: 1.714 MB / 0.558 GB, free: 10.73 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001216/0.6368, allocations: 361.3 kB / 0.5583 GB, free: 10.37 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001462/0.6383, allocations: 1.265 MB / 0.5596 GB, free: 9.102 MB / 478.1 MB Notification: Performance of SimCode: time 1.263e-06/0.6383, allocations: 4 kB / 0.5596 GB, free: 9.098 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3436/0.9819, allocations: 63.24 MB / 0.6213 GB, free: 165 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.06/19.04, allocations: 9.844 kB / 0.6213 GB, free: 165 MB / 0.5137 GB " [Timeout remaining time 641] (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: 21.836385888047516] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp1.S.v', 'mp2.S.v', 'v.p.v'] 19.160425601061434 19.178490576 18.672764188 Calling exit ...