Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001358/0.001358, allocations: 121.4 kB / 19.17 MB, free: 3.898 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.00139/0.00139, allocations: 203.9 kB / 22.12 MB, free: 0.9609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.499/1.499, allocations: 207.6 MB / 232.5 MB, free: 3.953 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 51.92 kB / 343 MB, free: 9.996 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1043, allocations: 49.13 MB / 392.1 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009564/0.1139, allocations: 7.738 MB / 399.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02246/0.1364, allocations: 18.58 MB / 418.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001488/0.1378, allocations: 98.88 kB / 418.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002766/0.1406, allocations: 0.836 MB / 419.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006416/0.147, allocations: 1.782 MB / 421.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004596/0.1516, allocations: 1.299 MB / 422.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00586/0.1575, allocations: 3.191 MB / 425.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003917/0.1579, allocations: 136.6 kB / 425.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008327/0.1587, allocations: 0.5444 MB / 426.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000675/0.1594, allocations: 0.5474 MB / 426.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.912e-05/0.1595, allocations: 40 kB / 426.9 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004626/0.1641, allocations: 1.128 MB / 428 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001921/0.1643, allocations: 166.8 kB / 428.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007211/0.165, allocations: 0.6832 MB / 428.9 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003947/0.169, allocations: 2.245 MB / 431.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.169, allocations: 0 / 431.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.068e-06/0.169, allocations: 3.938 kB / 431.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.215e-05/0.169, allocations: 0 / 431.1 MB, free: 1.504 MB / 350.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.003749/0.1728, allocations: 2.081 MB / 433.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/0.1728, allocations: 8.031 kB / 433.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.95e-05/0.1729, allocations: 8.562 kB / 433.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.421e-05/0.1729, allocations: 66.52 kB / 433.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003165/0.1733, allocations: 206.7 kB / 433.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002146/0.1754, allocations: 1.387 MB / 434.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.1754, allocations: 16.56 kB / 434.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.163e-05/0.1755, allocations: 28 kB / 434.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009708/0.1765, allocations: 441.1 kB / 435.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.1765, allocations: 0 / 435.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.712e-05/0.1765, allocations: 12 kB / 435.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.1766, allocations: 8 kB / 435.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001186/0.1777, allocations: 478.1 kB / 435.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002965/0.1807, allocations: 1.623 MB / 437.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009594/0.1817, allocations: 335.4 kB / 437.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007702/0.1824, allocations: 381.8 kB / 438.2 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01768/0.2001, allocations: 15.24 MB / 453.4 MB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006746/0.2008, allocations: 263.1 kB / 453.7 MB, free: 8.656 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.535e-06/0.2008, allocations: 0 / 453.7 MB, free: 8.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002308/0.2031, allocations: 0.8378 MB / 454.5 MB, free: 7.789 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.2032, allocations: 55.41 kB / 454.6 MB, free: 7.723 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.2051, allocations: 1.464 MB / 456 MB, free: 6.223 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.322e-05/0.2051, allocations: 33.7 kB / 456 MB, free: 6.184 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006746/0.2058, allocations: 0.7272 MB / 456.8 MB, free: 5.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.2059, allocations: 103.2 kB / 456.9 MB, free: 5.348 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002056/0.2061, allocations: 130 kB / 457 MB, free: 5.215 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.2063, allocations: 329.9 kB / 457.3 MB, free: 4.887 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004989/0.2068, allocations: 161 kB / 457.5 MB, free: 4.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006302/0.2074, allocations: 363.4 kB / 457.8 MB, free: 4.281 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.2085, allocations: 0.5372 MB / 458.4 MB, free: 3.652 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/0.2085, allocations: 8 kB / 458.4 MB, free: 3.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00158/0.2101, allocations: 0.7486 MB / 459.1 MB, free: 2.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.2102, allocations: 12.03 kB / 459.1 MB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.211e-05/0.2102, allocations: 44 kB / 459.2 MB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003583/0.2106, allocations: 132.8 kB / 459.3 MB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004197/0.211, allocations: 103.8 kB / 459.4 MB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007393/0.2117, allocations: 0.6928 MB / 460.1 MB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005528/0.2123, allocations: 63.64 kB / 460.2 MB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.692e-05/0.2124, allocations: 36 kB / 460.2 MB, free: 1.781 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.000424/0.2128, allocations: 277.6 kB / 460.5 MB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002326/0.213, allocations: 202.7 kB / 460.7 MB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001938/0.215, allocations: 0.7432 MB / 461.4 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.215, allocations: 4 kB / 461.4 MB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.215, allocations: 0 / 461.4 MB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.215, allocations: 3.938 kB / 461.4 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.21/0.425, allocations: 1.3 MB / 462.7 MB, free: 68.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.113e-05/0.4251, allocations: 36.8 kB / 462.8 MB, free: 68.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000299/0.4254, allocations: 42.62 kB / 462.8 MB, free: 68.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003478/0.4258, allocations: 127.6 kB / 462.9 MB, free: 68.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-05/0.4258, allocations: 21.72 kB / 463 MB, free: 68.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005869/0.4264, allocations: 0.6684 MB / 463.6 MB, free: 68.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.4264, allocations: 4.344 kB / 463.6 MB, free: 68.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.4281, allocations: 0.7287 MB / 464.4 MB, free: 68.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000542/0.4287, allocations: 290.6 kB / 464.6 MB, free: 67.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.4288, allocations: 10.59 kB / 464.6 MB, free: 67.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004308/0.4293, allocations: 26.88 kB / 464.7 MB, free: 67.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.4294, allocations: 47.67 kB / 464.7 MB, free: 67.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.955e-05/0.4295, allocations: 19.25 kB / 464.7 MB, free: 67.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001576/0.431, allocations: 0.9661 MB / 465.7 MB, free: 67.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.431, allocations: 0 / 465.7 MB, free: 67.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009912/0.432, allocations: 334.7 kB / 466 MB, free: 67.76 MB / 382.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.002392/0.4344, allocations: 1.744 MB / 467.8 MB, free: 66.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.4358, allocations: 0.5045 MB / 468.3 MB, free: 66.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.4358, allocations: 0 / 468.3 MB, free: 66.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006401/0.4365, allocations: 285.2 kB / 468.6 MB, free: 66.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000942/0.4374, allocations: 260.9 kB / 468.8 MB, free: 66.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0139/0.4513, allocations: 9.029 MB / 477.8 MB, free: 62.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005435/0.4518, allocations: 1.156 MB / 479 MB, free: 61.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006361/0.4525, allocations: 198.7 kB / 479.2 MB, free: 61.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004458/0.4529, allocations: 0.5646 MB / 479.8 MB, free: 61.16 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4529, allocations: 0 / 479.8 MB, free: 61.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05829/0.5112, allocations: 35.69 MB / 0.5034 GB, free: 26.83 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.8/15.31, allocations: 9.078 kB / 0.5034 GB, free: 26.82 MB / 382.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --stepSize=5.0025e-15 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.949732539011165] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 15.492051334003918 15.50236961 15.330971712 Calling exit ...