Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 216.5 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.386/1.386, allocations: 230.6 MB / 258.3 MB, free: 7.777 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 47.91 kB / 378.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2805, allocations: 53.37 MB / 431.9 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008197/0.2887, allocations: 6.917 MB / 438.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02074/0.3094, allocations: 16.69 MB / 455.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001444/0.3109, allocations: 98.88 kB / 455.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002506/0.3134, allocations: 0.7573 MB / 456.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006812/0.3202, allocations: 1.819 MB / 458.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004537/0.3247, allocations: 1.324 MB / 459.5 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005786/0.3305, allocations: 3.303 MB / 462.8 MB, free: 7.617 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003423/0.3308, allocations: 132.8 kB / 462.9 MB, free: 7.461 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008485/0.3317, allocations: 0.5873 MB / 463.5 MB, free: 6.871 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006886/0.3324, allocations: 0.5668 MB / 464.1 MB, free: 6.301 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.926e-05/0.3325, allocations: 40 kB / 464.1 MB, free: 6.262 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003376/0.3359, allocations: 1.206 MB / 465.3 MB, free: 5.055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002206/0.3361, allocations: 170.8 kB / 465.5 MB, free: 4.887 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006363/0.3367, allocations: 0.5084 MB / 466 MB, free: 4.375 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003909/0.3406, allocations: 2.237 MB / 468.2 MB, free: 2.129 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3406, allocations: 3.938 kB / 468.2 MB, free: 2.125 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3406, allocations: 0 / 468.2 MB, free: 2.125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.226e-05/0.3407, allocations: 4 kB / 468.2 MB, free: 2.121 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002993/0.3436, allocations: 1.987 MB / 470.2 MB, free: 92 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.3437, allocations: 12.03 kB / 470.2 MB, free: 80 kB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.899e-05/0.3437, allocations: 8.656 kB / 470.2 MB, free: 72 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.907e-05/0.3438, allocations: 70.61 kB / 470.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002465/0.3441, allocations: 202.7 kB / 470.5 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001855/0.3459, allocations: 1.26 MB / 471.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.346, allocations: 20.66 kB / 471.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.839e-05/0.346, allocations: 24 kB / 471.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009238/0.347, allocations: 437.7 kB / 472.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.347, allocations: 4 kB / 472.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.267e-05/0.347, allocations: 12 kB / 472.2 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.666e-05/0.347, allocations: 12 kB / 472.3 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.3481, allocations: 478.3 kB / 472.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002772/0.3509, allocations: 1.477 MB / 474.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008832/0.3518, allocations: 335.4 kB / 474.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007086/0.3525, allocations: 369.8 kB / 474.9 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01253/0.365, allocations: 6.996 MB / 481.9 MB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006404/0.3656, allocations: 259.8 kB / 482.1 MB, free: 3.773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.134e-06/0.3656, allocations: 0 / 482.1 MB, free: 3.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002086/0.3677, allocations: 0.778 MB / 482.9 MB, free: 2.984 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.781e-05/0.3678, allocations: 63.33 kB / 483 MB, free: 2.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/0.3697, allocations: 1.455 MB / 484.4 MB, free: 1.418 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.372e-05/0.3697, allocations: 33.7 kB / 484.5 MB, free: 1.379 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006729/0.3704, allocations: 0.7193 MB / 485.2 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.3705, allocations: 95.27 kB / 485.3 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001992/0.3707, allocations: 134 kB / 485.4 MB, free: 436 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.3708, allocations: 322 kB / 485.7 MB, free: 108 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004316/0.3713, allocations: 165 kB / 485.9 MB, free: 15.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005738/0.3718, allocations: 358.8 kB / 486.2 MB, free: 15.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009956/0.3728, allocations: 0.5339 MB / 486.8 MB, free: 14.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3728, allocations: 0 / 486.8 MB, free: 14.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001474/0.3743, allocations: 0.7594 MB / 487.5 MB, free: 14.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.3743, allocations: 8 kB / 487.5 MB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.525e-05/0.3744, allocations: 44.83 kB / 487.6 MB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003334/0.3747, allocations: 136.8 kB / 487.7 MB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004119/0.3751, allocations: 107.8 kB / 487.8 MB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006816/0.3758, allocations: 0.6734 MB / 488.5 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005393/0.3764, allocations: 75.53 kB / 488.6 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.884e-05/0.3764, allocations: 36.06 kB / 488.6 MB, free: 13 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004061/0.3768, allocations: 277.6 kB / 488.9 MB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001947/0.377, allocations: 198.8 kB / 489.1 MB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00169/0.3787, allocations: 0.7346 MB / 489.8 MB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.3787, allocations: 7.984 kB / 489.8 MB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3787, allocations: 0 / 489.8 MB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.3787, allocations: 64 / 489.8 MB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002117/0.3809, allocations: 1.253 MB / 491.1 MB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.797e-05/0.3809, allocations: 39.98 kB / 491.1 MB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.3811, allocations: 39.95 kB / 491.1 MB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000251/0.3814, allocations: 128.8 kB / 491.3 MB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.921e-05/0.3814, allocations: 23.98 kB / 491.3 MB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006178/0.3821, allocations: 0.6656 MB / 491.9 MB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.3821, allocations: 4.031 kB / 492 MB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.3834, allocations: 0.7141 MB / 492.7 MB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003758/0.3837, allocations: 208.6 kB / 492.9 MB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.3839, allocations: 8 kB / 492.9 MB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004094/0.3843, allocations: 27.95 kB / 492.9 MB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.3844, allocations: 43.89 kB / 492.9 MB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.791e-05/0.3845, allocations: 27.98 kB / 493 MB, free: 8.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001221/0.3857, allocations: 0.961 MB / 493.9 MB, free: 7.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3857, allocations: 0 / 493.9 MB, free: 7.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008847/0.3866, allocations: 331.6 kB / 494.3 MB, free: 7.176 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002362/0.3889, allocations: 1.752 MB / 496 MB, free: 5.387 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.3902, allocations: 0.4927 MB / 496.5 MB, free: 4.883 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3902, allocations: 0 / 496.5 MB, free: 4.883 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000614/0.3908, allocations: 275.2 kB / 496.8 MB, free: 4.602 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.3921, allocations: 311.1 kB / 497.1 MB, free: 4.293 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/0.4054, allocations: 9.016 MB / 0.4942 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005529/0.4059, allocations: 0.5628 MB / 0.4948 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005688/0.4065, allocations: 199.9 kB / 0.495 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006169/0.4071, allocations: 0.5579 MB / 0.4955 GB, free: 9.531 MB / 414.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4071, allocations: 0 / 0.4955 GB, free: 9.531 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06969/0.4768, allocations: 35.89 MB / 0.5306 GB, free: 6.078 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.11/15.58, allocations: 64 / 0.5306 GB, free: 6.078 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --stepSize=5.0025e-15 --timeout=50 --tolerance=1e-07 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.17174631706439] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 15.77417166903615 15.962048966 15.617831646 Calling exit ...