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.001289/0.001289, allocations: 108.8 kB / 21.22 MB, free: 0.7461 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.001576/0.001576, allocations: 194.9 kB / 24.51 MB, free: 3.859 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.392/1.392, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.00149/0.00149, allocations: 47.92 kB / 371.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3238, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01062/0.3345, allocations: 8.075 MB / 431.5 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02667/0.3611, allocations: 19.5 MB / 451 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00214/0.3633, allocations: 94.94 kB / 451.1 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003195/0.3665, allocations: 0.8581 MB / 451.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007947/0.3744, allocations: 1.835 MB / 453.8 MB, free: 92 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005405/0.3798, allocations: 1.355 MB / 455.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006512/0.3863, allocations: 3.279 MB / 458.4 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004327/0.3868, allocations: 132.8 kB / 458.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009337/0.3877, allocations: 0.5911 MB / 459.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000699/0.3884, allocations: 0.559 MB / 459.7 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.663e-05/0.3885, allocations: 40 kB / 459.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003734/0.3922, allocations: 1.447 MB / 461.2 MB, free: 8.641 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001722/0.3924, allocations: 170.8 kB / 461.3 MB, free: 8.473 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006393/0.393, allocations: 0.6754 MB / 462 MB, free: 7.793 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003114/0.3961, allocations: 2.217 MB / 464.2 MB, free: 5.566 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.3961, allocations: 8 kB / 464.2 MB, free: 5.559 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3961, allocations: 0 / 464.2 MB, free: 5.559 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.567e-05/0.3962, allocations: 0 / 464.2 MB, free: 5.559 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.003036/0.3992, allocations: 1.998 MB / 466.2 MB, free: 3.516 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.3992, allocations: 8.031 kB / 466.2 MB, free: 3.508 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.067e-05/0.3993, allocations: 12.59 kB / 466.3 MB, free: 3.496 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.23e-05/0.3993, allocations: 66.53 kB / 466.3 MB, free: 3.422 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002184/0.3996, allocations: 202.7 kB / 466.5 MB, free: 3.223 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001823/0.4014, allocations: 1.241 MB / 467.8 MB, free: 1.902 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.4014, allocations: 28.59 kB / 467.8 MB, free: 1.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.252e-05/0.4015, allocations: 31.94 kB / 467.8 MB, free: 1.844 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008898/0.4024, allocations: 437.8 kB / 468.2 MB, free: 1.414 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.4024, allocations: 0 / 468.2 MB, free: 1.414 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.201e-05/0.4024, allocations: 8 kB / 468.3 MB, free: 1.406 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.4024, allocations: 11.98 kB / 468.3 MB, free: 1.395 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.4035, allocations: 478.4 kB / 468.7 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002821/0.4063, allocations: 1.562 MB / 470.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009047/0.4072, allocations: 343.2 kB / 470.6 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007247/0.408, allocations: 381.8 kB / 471 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01315/0.4211, allocations: 7.007 MB / 478 MB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006522/0.4218, allocations: 259.2 kB / 478.3 MB, free: 7.102 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.585e-06/0.4218, allocations: 0 / 478.3 MB, free: 7.102 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.00205/0.4238, allocations: 0.7625 MB / 479 MB, free: 6.328 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.4239, allocations: 59.41 kB / 479.1 MB, free: 6.258 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/0.4255, allocations: 1.463 MB / 480.5 MB, free: 4.758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.003e-05/0.4256, allocations: 37.7 kB / 480.6 MB, free: 4.715 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006307/0.4262, allocations: 0.7232 MB / 481.3 MB, free: 3.988 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.4263, allocations: 99.27 kB / 481.4 MB, free: 3.891 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/0.4265, allocations: 130 kB / 481.5 MB, free: 3.758 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.4266, allocations: 322 kB / 481.8 MB, free: 3.438 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004404/0.427, allocations: 160.9 kB / 482 MB, free: 3.277 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005799/0.4276, allocations: 354.8 kB / 482.4 MB, free: 2.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.4286, allocations: 0.5339 MB / 482.9 MB, free: 2.215 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.4286, allocations: 4 kB / 482.9 MB, free: 2.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001454/0.4301, allocations: 0.7561 MB / 483.6 MB, free: 1.445 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.4301, allocations: 11.94 kB / 483.7 MB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.351e-05/0.4302, allocations: 43.98 kB / 483.7 MB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003129/0.4305, allocations: 132.8 kB / 483.8 MB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004008/0.4309, allocations: 112.1 kB / 483.9 MB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006545/0.4315, allocations: 0.6772 MB / 484.6 MB, free: 456 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005254/0.4321, allocations: 71.59 kB / 484.7 MB, free: 384 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.581e-05/0.4321, allocations: 36 kB / 484.7 MB, free: 348 kB / 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.000419/0.4326, allocations: 277.6 kB / 485 MB, free: 60 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002114/0.4328, allocations: 199 kB / 485.2 MB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/0.4345, allocations: 0.7431 MB / 485.9 MB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.4346, allocations: 0 / 485.9 MB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4346, allocations: 0 / 485.9 MB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.4346, allocations: 4 kB / 485.9 MB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002228/0.4368, allocations: 1.276 MB / 487.2 MB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.924e-05/0.4368, allocations: 36 kB / 487.2 MB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.4371, allocations: 51.94 kB / 487.3 MB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002433/0.4373, allocations: 124.8 kB / 487.4 MB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.377e-05/0.4374, allocations: 19.98 kB / 487.4 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005872/0.438, allocations: 0.6733 MB / 488.1 MB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.438, allocations: 0 / 488.1 MB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.4393, allocations: 0.7211 MB / 488.8 MB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004431/0.4398, allocations: 208.6 kB / 489 MB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001862/0.44, allocations: 8 kB / 489 MB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004393/0.4404, allocations: 27.95 kB / 489.1 MB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.4405, allocations: 43.89 kB / 489.1 MB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.458e-05/0.4406, allocations: 28.11 kB / 489.1 MB, free: 11.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001381/0.442, allocations: 0.9571 MB / 490.1 MB, free: 10.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.442, allocations: 0 / 490.1 MB, free: 10.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009914/0.4429, allocations: 331.6 kB / 490.4 MB, free: 10.48 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.002718/0.4457, allocations: 1.74 MB / 492.2 MB, free: 8.699 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001433/0.4471, allocations: 0.5004 MB / 492.7 MB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4471, allocations: 4.125 kB / 492.7 MB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006744/0.4478, allocations: 283.2 kB / 492.9 MB, free: 7.895 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/0.4493, allocations: 306.2 kB / 493.2 MB, free: 7.594 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/0.4649, allocations: 9.005 MB / 0.4905 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008917/0.4658, allocations: 1.145 MB / 0.4916 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007023/0.4665, allocations: 199.9 kB / 0.4918 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00075/0.4673, allocations: 0.5657 MB / 0.4923 GB, free: 12.26 MB / 414.1 MB Notification: Performance of SimCode: time 1.493e-06/0.4673, allocations: 0 / 0.4923 GB, free: 12.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09828/0.5656, allocations: 35.79 MB / 0.5273 GB, free: 8.797 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.42/15.99, allocations: 7.281 kB / 0.5273 GB, free: 8.793 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: 18.607100049965084] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 16.175295045017265 16.346994052 15.948048615 Calling exit ...