Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.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.001502/0.001502, allocations: 117 kB / 18.49 MB, free: 4.566 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.0015/0.0015, allocations: 216.7 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 230.4 MB / 254.7 MB, free: 15.16 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002074/0.002074, allocations: 63.91 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1188, allocations: 53.38 MB / 427.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01038/0.1292, allocations: 8.07 MB / 435.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2494/0.3786, allocations: 19.52 MB / 454.6 MB, free: 7.641 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001287/0.3799, allocations: 96 kB / 454.7 MB, free: 7.641 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002489/0.3824, allocations: 0.8607 MB / 455.6 MB, free: 7.605 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00637/0.3887, allocations: 1.819 MB / 457.4 MB, free: 7.137 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005906/0.3946, allocations: 1.342 MB / 458.8 MB, free: 6.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006779/0.4014, allocations: 3.306 MB / 462.1 MB, free: 6.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003443/0.4018, allocations: 129.2 kB / 462.2 MB, free: 6.121 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000987/0.4028, allocations: 0.5814 MB / 462.8 MB, free: 5.973 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000725/0.4035, allocations: 0.5666 MB / 463.3 MB, free: 5.758 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001139/0.4036, allocations: 44.72 kB / 463.4 MB, free: 5.754 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005643/0.4092, allocations: 1.443 MB / 464.8 MB, free: 5.676 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002291/0.4095, allocations: 177.4 kB / 465 MB, free: 5.559 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008184/0.4103, allocations: 0.6742 MB / 465.7 MB, free: 5.137 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004098/0.4144, allocations: 2.221 MB / 467.9 MB, free: 4.398 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.4144, allocations: 1.172 kB / 467.9 MB, free: 4.398 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.4144, allocations: 0 / 467.9 MB, free: 4.398 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.095e-05/0.4144, allocations: 1.125 kB / 467.9 MB, free: 4.398 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.00299/0.4174, allocations: 2.075 MB / 470 MB, free: 2.973 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.4175, allocations: 9.625 kB / 470 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.966e-05/0.4175, allocations: 7.438 kB / 470 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.141e-05/0.4175, allocations: 68.77 kB / 470.1 MB, free: 2.914 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002206/0.4178, allocations: 206.2 kB / 470.3 MB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001798/0.4196, allocations: 1.367 MB / 471.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.4196, allocations: 23.97 kB / 471.6 MB, free: 2.051 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.051e-05/0.4197, allocations: 24.69 kB / 471.7 MB, free: 2.043 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008849/0.4206, allocations: 432 kB / 472.1 MB, free: 1.895 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.4206, allocations: 0 / 472.1 MB, free: 1.895 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.242e-05/0.4206, allocations: 11.5 kB / 472.1 MB, free: 1.887 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.4206, allocations: 15.5 kB / 472.1 MB, free: 1.883 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.4218, allocations: 476.4 kB / 472.6 MB, free: 1.754 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003154/0.425, allocations: 1.622 MB / 474.2 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008941/0.4259, allocations: 336.5 kB / 474.5 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006685/0.4265, allocations: 375.6 kB / 474.9 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0169/0.4434, allocations: 15.51 MB / 490.4 MB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006433/0.4441, allocations: 264.7 kB / 490.7 MB, free: 2.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.244e-06/0.4441, allocations: 0 / 490.7 MB, free: 2.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002227/0.4463, allocations: 0.8445 MB / 491.5 MB, free: 2.328 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/0.4464, allocations: 58.98 kB / 491.6 MB, free: 2.262 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00199/0.4483, allocations: 1.461 MB / 493 MB, free: 1.441 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.4484, allocations: 32.55 kB / 493.1 MB, free: 1.406 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006873/0.4491, allocations: 0.7293 MB / 493.8 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.964e-05/0.4492, allocations: 92.19 kB / 493.9 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.4494, allocations: 129.5 kB / 494 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.4495, allocations: 327.4 kB / 494.3 MB, free: 288 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004566/0.45, allocations: 161 kB / 494.5 MB, free: 216 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006317/0.4506, allocations: 360 kB / 494.8 MB, free: 15.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.4517, allocations: 0.5347 MB / 495.4 MB, free: 15.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.4517, allocations: 7.125 kB / 495.4 MB, free: 15.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001486/0.4532, allocations: 0.7581 MB / 496.1 MB, free: 15.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.4532, allocations: 7.844 kB / 496.1 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.978e-05/0.4532, allocations: 47.7 kB / 496.2 MB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003186/0.4536, allocations: 125.6 kB / 496.3 MB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004174/0.454, allocations: 110.5 kB / 496.4 MB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006678/0.4546, allocations: 0.6863 MB / 497.1 MB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007092/0.4554, allocations: 71.25 kB / 497.2 MB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.661e-05/0.4554, allocations: 32.88 kB / 497.2 MB, free: 14.36 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.0003936/0.4558, allocations: 281.1 kB / 497.5 MB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.456, allocations: 195 kB / 497.7 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001826/0.4578, allocations: 0.7418 MB / 498.4 MB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.4579, allocations: 4.219 kB / 498.4 MB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.4579, allocations: 0 / 498.4 MB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.4579, allocations: 0 / 498.4 MB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002329/0.4602, allocations: 1.314 MB / 499.7 MB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.946e-05/0.4602, allocations: 35.98 kB / 499.8 MB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002569/0.4605, allocations: 52.02 kB / 499.8 MB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002504/0.4607, allocations: 120.8 kB / 499.9 MB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.193e-05/0.4608, allocations: 19.98 kB / 500 MB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006865/0.4615, allocations: 0.6695 MB / 0.4889 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.4615, allocations: 4 kB / 0.4889 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/0.4629, allocations: 0.7111 MB / 0.4896 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004397/0.4633, allocations: 291.7 kB / 0.4899 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/0.4635, allocations: 8 kB / 0.4899 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004162/0.4639, allocations: 23.97 kB / 0.4899 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.464, allocations: 55.83 kB / 0.49 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-05/0.4641, allocations: 16 kB / 0.49 GB, free: 10.58 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001342/0.4654, allocations: 0.961 MB / 0.4909 GB, free: 9.598 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4654, allocations: 0 / 0.4909 GB, free: 9.598 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001125/0.4665, allocations: 335.5 kB / 0.4912 GB, free: 9.27 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.002614/0.4691, allocations: 1.737 MB / 0.4929 GB, free: 7.605 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.4705, allocations: 0.4927 MB / 0.4934 GB, free: 7.102 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4705, allocations: 0 / 0.4934 GB, free: 7.102 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006863/0.4712, allocations: 271.2 kB / 0.4937 GB, free: 6.824 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.4727, allocations: 322.7 kB / 0.494 GB, free: 6.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01379/0.4865, allocations: 9.009 MB / 0.5028 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000752/0.4872, allocations: 1.145 MB / 0.5039 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005634/0.4878, allocations: 197.6 kB / 0.5041 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000608/0.4884, allocations: 0.5579 MB / 0.5046 GB, free: 11.21 MB / 414.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4884, allocations: 4 kB / 0.5046 GB, free: 11.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06929/0.5577, allocations: 35.48 MB / 0.5393 GB, free: 7.945 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.63/16.19, allocations: 9.484 kB / 0.5393 GB, free: 7.938 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --stepSize=5.0025e-15 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.843003362009767] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 16.358661758014932 16.374815368 15.95670703 Calling exit ...