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.001472/0.001472, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001529/0.001529, allocations: 186.8 kB / 24.49 MB, free: 3.961 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.341/1.341, allocations: 225.7 MB / 253.3 MB, free: 12.88 MB / 206.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.001415/0.001415, allocations: 47.92 kB / 371.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2705, allocations: 52.19 MB / 423.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00832/0.2788, allocations: 6.912 MB / 430.3 MB, free: 7.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02069/0.2995, allocations: 16.65 MB / 446.9 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001252/0.3007, allocations: 98.88 kB / 447 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002297/0.303, allocations: 0.765 MB / 447.8 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005637/0.3086, allocations: 1.819 MB / 449.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004113/0.3128, allocations: 1.316 MB / 450.9 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005413/0.3182, allocations: 3.275 MB / 454.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003383/0.3185, allocations: 140.8 kB / 454.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000896/0.3194, allocations: 0.5872 MB / 454.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007094/0.3201, allocations: 0.5707 MB / 455.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.3202, allocations: 40 kB / 455.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003492/0.3237, allocations: 1.194 MB / 456.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000212/0.3239, allocations: 170.8 kB / 456.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006106/0.3245, allocations: 0.5006 MB / 457.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003303/0.3278, allocations: 2.241 MB / 459.6 MB, free: 9.984 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3278, allocations: 0 / 459.6 MB, free: 9.984 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3278, allocations: 0 / 459.6 MB, free: 9.984 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.179e-05/0.3279, allocations: 4 kB / 459.6 MB, free: 9.98 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.002997/0.3309, allocations: 1.998 MB / 461.6 MB, free: 7.938 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.3309, allocations: 8.031 kB / 461.6 MB, free: 7.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.994e-05/0.3309, allocations: 8.656 kB / 461.6 MB, free: 7.922 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.089e-05/0.331, allocations: 70.53 kB / 461.7 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002451/0.3313, allocations: 202.7 kB / 461.9 MB, free: 7.645 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.3331, allocations: 1.245 MB / 463.1 MB, free: 6.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.3331, allocations: 24.64 kB / 463.2 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.342e-05/0.3332, allocations: 27.95 kB / 463.2 MB, free: 6.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009201/0.3341, allocations: 437.8 kB / 463.6 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3341, allocations: 0 / 463.6 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.533e-05/0.3342, allocations: 11.98 kB / 463.6 MB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.3342, allocations: 12 kB / 463.7 MB, free: 5.816 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.3352, allocations: 474.3 kB / 464.1 MB, free: 5.352 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002644/0.3379, allocations: 1.48 MB / 465.6 MB, free: 3.812 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000875/0.3388, allocations: 343.3 kB / 465.9 MB, free: 3.465 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006944/0.3395, allocations: 377.7 kB / 466.3 MB, free: 3.094 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01235/0.3518, allocations: 6.961 MB / 473.3 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006278/0.3524, allocations: 255.1 kB / 473.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.955e-06/0.3524, allocations: 4 kB / 473.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002061/0.3545, allocations: 0.7664 MB / 474.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.3546, allocations: 59.39 kB / 474.3 MB, free: 10.81 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001792/0.3563, allocations: 1.455 MB / 475.8 MB, free: 9.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.968e-05/0.3564, allocations: 33.7 kB / 475.8 MB, free: 9.281 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006339/0.357, allocations: 0.7271 MB / 476.6 MB, free: 8.551 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.3571, allocations: 99.2 kB / 476.7 MB, free: 8.453 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001957/0.3573, allocations: 130 kB / 476.8 MB, free: 8.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3575, allocations: 326 kB / 477.1 MB, free: 7.996 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004336/0.3579, allocations: 164.9 kB / 477.3 MB, free: 7.832 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005632/0.3585, allocations: 358.8 kB / 477.6 MB, free: 7.391 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009952/0.3595, allocations: 0.5339 MB / 478.1 MB, free: 6.766 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3595, allocations: 0 / 478.1 MB, free: 6.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001512/0.361, allocations: 0.7518 MB / 478.9 MB, free: 6.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.361, allocations: 11.98 kB / 478.9 MB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-05/0.3611, allocations: 36 kB / 478.9 MB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003441/0.3614, allocations: 145.5 kB / 479.1 MB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000399/0.3618, allocations: 111.8 kB / 479.2 MB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006494/0.3625, allocations: 0.6773 MB / 479.9 MB, free: 5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005432/0.363, allocations: 71.59 kB / 479.9 MB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.666e-05/0.3631, allocations: 35.98 kB / 480 MB, free: 4.895 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.000408/0.3635, allocations: 283 kB / 480.2 MB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/0.3637, allocations: 194.8 kB / 480.4 MB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001737/0.3654, allocations: 0.7354 MB / 481.2 MB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.393e-06/0.3654, allocations: 4 kB / 481.2 MB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3654, allocations: 3.938 kB / 481.2 MB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3654, allocations: 3.984 kB / 481.2 MB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/0.3675, allocations: 1.241 MB / 482.4 MB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.924e-05/0.3676, allocations: 39.98 kB / 482.5 MB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002338/0.3678, allocations: 47.89 kB / 482.5 MB, free: 2.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002496/0.368, allocations: 136.8 kB / 482.6 MB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.634e-05/0.3681, allocations: 16 kB / 482.7 MB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005876/0.3687, allocations: 0.6656 MB / 483.3 MB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3687, allocations: 4.031 kB / 483.3 MB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/0.37, allocations: 0.7211 MB / 484.1 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003898/0.3704, allocations: 208.6 kB / 484.3 MB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.3705, allocations: 11.98 kB / 484.3 MB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004098/0.371, allocations: 19.97 kB / 484.3 MB, free: 452 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.3711, allocations: 47.89 kB / 484.3 MB, free: 404 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.435e-05/0.3711, allocations: 27.98 kB / 484.4 MB, free: 376 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001275/0.3724, allocations: 0.9571 MB / 485.3 MB, free: 15.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3724, allocations: 0 / 485.3 MB, free: 15.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009169/0.3733, allocations: 327.6 kB / 485.6 MB, free: 15.07 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.002415/0.3758, allocations: 1.741 MB / 487.4 MB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.377, allocations: 0.5043 MB / 487.9 MB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.377, allocations: 0 / 487.9 MB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006283/0.3776, allocations: 271.2 kB / 488.1 MB, free: 12.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.3789, allocations: 314.5 kB / 488.5 MB, free: 12.19 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01289/0.3918, allocations: 9.005 MB / 497.5 MB, free: 2.797 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005562/0.3923, allocations: 0.5589 MB / 498 MB, free: 2.199 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005735/0.3929, allocations: 203.9 kB / 498.2 MB, free: 1.996 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006287/0.3935, allocations: 0.5657 MB / 498.8 MB, free: 1.43 MB / 398.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3935, allocations: 0 / 498.8 MB, free: 1.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06874/0.4623, allocations: 35.83 MB / 0.5221 GB, free: 14.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.09/15.56, allocations: 10.5 kB / 0.5221 GB, free: 14.01 MB / 446.1 MB " [Timeout remaining time 644] (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.933943538926542] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 15.748483287985437 15.774482302 15.441572854 Calling exit ...