Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 115.7 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 190.6 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 225.6 MB / 249.8 MB, free: 3.645 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 47.94 kB / 366.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.102, allocations: 52.14 MB / 418.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009238/0.1112, allocations: 8.061 MB / 426.5 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02341/0.1346, allocations: 19.48 MB / 446 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001283/0.1359, allocations: 98.88 kB / 446.1 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002505/0.1384, allocations: 0.8555 MB / 447 MB, free: 36 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1963/0.3347, allocations: 1.816 MB / 448.8 MB, free: 7.535 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003855/0.3385, allocations: 1.341 MB / 450.1 MB, free: 7.516 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004556/0.3431, allocations: 3.263 MB / 453.4 MB, free: 7.461 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003078/0.3434, allocations: 130.9 kB / 453.5 MB, free: 7.402 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008841/0.3443, allocations: 0.5834 MB / 454.1 MB, free: 7.402 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007898/0.3451, allocations: 0.5664 MB / 454.7 MB, free: 7.203 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001345/0.3452, allocations: 41 kB / 454.7 MB, free: 7.203 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003649/0.3489, allocations: 1.438 MB / 456.1 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000181/0.349, allocations: 173.7 kB / 456.3 MB, free: 7.129 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007071/0.3498, allocations: 0.6771 MB / 457 MB, free: 6.855 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003313/0.3531, allocations: 2.226 MB / 459.2 MB, free: 6.469 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3531, allocations: 0.6562 kB / 459.2 MB, free: 6.469 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3531, allocations: 0 / 459.2 MB, free: 6.469 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.736e-05/0.3531, allocations: 1.25 kB / 459.2 MB, free: 6.469 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.003113/0.3562, allocations: 2.069 MB / 461.3 MB, free: 5.191 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.3563, allocations: 9.656 kB / 461.3 MB, free: 5.191 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.161e-05/0.3563, allocations: 7.594 kB / 461.3 MB, free: 5.188 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.215e-05/0.3564, allocations: 67.5 kB / 461.4 MB, free: 5.148 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002207/0.3566, allocations: 201.4 kB / 461.6 MB, free: 5.043 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001716/0.3583, allocations: 1.372 MB / 462.9 MB, free: 4.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.3583, allocations: 18.61 kB / 463 MB, free: 4.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.987e-05/0.3584, allocations: 31.11 kB / 463 MB, free: 4.516 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008705/0.3593, allocations: 436.1 kB / 463.4 MB, free: 4.477 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.3593, allocations: 0 / 463.4 MB, free: 4.477 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.167e-05/0.3593, allocations: 10.5 kB / 463.4 MB, free: 4.477 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.3593, allocations: 9.812 kB / 463.4 MB, free: 4.477 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.3604, allocations: 479.4 kB / 463.9 MB, free: 4.469 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.363, allocations: 1.62 MB / 465.5 MB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009068/0.3639, allocations: 342.6 kB / 465.9 MB, free: 4.047 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007108/0.3646, allocations: 372.5 kB / 466.2 MB, free: 4.031 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01534/0.3799, allocations: 15.21 MB / 481.4 MB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006301/0.3806, allocations: 263.9 kB / 481.7 MB, free: 7.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.876e-06/0.3806, allocations: 0 / 481.7 MB, free: 7.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002269/0.3828, allocations: 0.8412 MB / 482.5 MB, free: 7.336 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.3829, allocations: 62.56 kB / 482.6 MB, free: 7.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00192/0.3848, allocations: 1.452 MB / 484 MB, free: 6.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.294e-05/0.3848, allocations: 33.05 kB / 484.1 MB, free: 6.422 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006311/0.3855, allocations: 0.7298 MB / 484.8 MB, free: 5.766 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.529e-05/0.3856, allocations: 101 kB / 484.9 MB, free: 5.684 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001825/0.3857, allocations: 125.3 kB / 485 MB, free: 5.613 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.3859, allocations: 332.1 kB / 485.4 MB, free: 5.289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004369/0.3863, allocations: 152.3 kB / 485.5 MB, free: 5.223 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005755/0.3869, allocations: 360.5 kB / 485.9 MB, free: 4.891 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.3879, allocations: 0.5318 MB / 486.4 MB, free: 4.488 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.3879, allocations: 3.031 kB / 486.4 MB, free: 4.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001517/0.3894, allocations: 0.7589 MB / 487.1 MB, free: 4.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.3895, allocations: 8.906 kB / 487.2 MB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.598e-05/0.3895, allocations: 40.5 kB / 487.2 MB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003165/0.3898, allocations: 131.1 kB / 487.3 MB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/0.3902, allocations: 106.5 kB / 487.4 MB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006678/0.3909, allocations: 0.6934 MB / 488.1 MB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007975/0.3917, allocations: 66.73 kB / 488.2 MB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.384e-05/0.3918, allocations: 35.38 kB / 488.2 MB, free: 3.43 MB / 382.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.0004455/0.3922, allocations: 275.6 kB / 488.5 MB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/0.3924, allocations: 194.1 kB / 488.7 MB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/0.3942, allocations: 0.7467 MB / 489.4 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.3942, allocations: 6.906 kB / 489.4 MB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3942, allocations: 3.938 kB / 489.4 MB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.3942, allocations: 2.406 kB / 489.4 MB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00243/0.3967, allocations: 1.303 MB / 490.7 MB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.24e-05/0.3967, allocations: 33.59 kB / 490.8 MB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002451/0.397, allocations: 55.02 kB / 490.8 MB, free: 1.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000237/0.3972, allocations: 120.9 kB / 490.9 MB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.3972, allocations: 21.86 kB / 491 MB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005993/0.3978, allocations: 0.6715 MB / 491.6 MB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3978, allocations: 0 / 491.6 MB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.3992, allocations: 0.7265 MB / 492.4 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004715/0.3997, allocations: 285.8 kB / 492.6 MB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.3998, allocations: 10.86 kB / 492.7 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004206/0.4002, allocations: 27.31 kB / 492.7 MB, free: 496 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.4003, allocations: 45.16 kB / 492.7 MB, free: 476 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-05/0.4004, allocations: 20.06 kB / 492.7 MB, free: 472 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001152/0.4015, allocations: 0.9611 MB / 493.7 MB, free: 15.92 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4015, allocations: 0 / 493.7 MB, free: 15.92 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009997/0.4025, allocations: 332.8 kB / 494 MB, free: 15.64 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.002541/0.4051, allocations: 1.74 MB / 495.8 MB, free: 13.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001339/0.4064, allocations: 0.4968 MB / 496.3 MB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4064, allocations: 0 / 496.3 MB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006539/0.4071, allocations: 275.3 kB / 496.5 MB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.4085, allocations: 315.2 kB / 496.8 MB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01369/0.4222, allocations: 9.014 MB / 0.494 GB, free: 3.508 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007979/0.423, allocations: 1.149 MB / 0.4951 GB, free: 2.328 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005992/0.4236, allocations: 201.2 kB / 0.4953 GB, free: 2.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006665/0.4242, allocations: 0.5579 MB / 0.4959 GB, free: 1.574 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4242, allocations: 0 / 0.4959 GB, free: 1.574 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07201/0.4962, allocations: 35.45 MB / 0.5305 GB, free: 14.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/15.08, allocations: 8.062 kB / 0.5305 GB, free: 14.44 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --stepSize=5.0025e-15 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.611734625999816] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 15.250011263007764 15.26506233 14.908746385 Calling exit ...