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.00195/0.00195, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 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.002378/0.002378, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 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.462/1.462, allocations: 177 MB / 204.5 MB, free: 5.621 MB / 186.7 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: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.753e-05/2.913e-05, allocations: 5.266 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009679/0.009708, allocations: 6.934 MB / 279.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1678/0.1775, allocations: 16.68 MB / 295.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001534/0.1791, allocations: 102.6 kB / 295.9 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00265/0.1817, allocations: 0.7724 MB / 296.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006943/0.1887, allocations: 1.87 MB / 298.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005983/0.1946, allocations: 1.348 MB / 299.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006329/0.201, allocations: 3.395 MB / 303.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003527/0.2013, allocations: 133.4 kB / 303.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001167/0.2025, allocations: 0.7937 MB / 304.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005856/0.2031, allocations: 413.4 kB / 304.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.2032, allocations: 40.56 kB / 304.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004383/0.2076, allocations: 1.184 MB / 305.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.2077, allocations: 169 kB / 306 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005354/0.2083, allocations: 380.6 kB / 306.4 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002963/0.2112, allocations: 2.273 MB / 308.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.2112, allocations: 0 / 308.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2112, allocations: 0 / 308.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.567e-05/0.2112, allocations: 1.562 kB / 308.7 MB, free: 10.4 MB / 266.7 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.002385/0.2136, allocations: 1.975 MB / 310.6 MB, free: 8.898 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.2137, allocations: 12.02 kB / 310.6 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00025/0.2139, allocations: 221.8 kB / 310.9 MB, free: 8.781 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001548/0.2155, allocations: 1.428 MB / 312.3 MB, free: 7.828 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.2155, allocations: 19.25 kB / 312.3 MB, free: 7.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.502e-05/0.2156, allocations: 34.11 kB / 312.3 MB, free: 7.805 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008324/0.2164, allocations: 435.9 kB / 312.8 MB, free: 7.496 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.2164, allocations: 4 kB / 312.8 MB, free: 7.492 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.62e-05/0.2165, allocations: 5.875 kB / 312.8 MB, free: 7.488 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.2165, allocations: 12 kB / 312.8 MB, free: 7.477 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009251/0.2174, allocations: 470.4 kB / 313.2 MB, free: 7.016 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.2196, allocations: 1.436 MB / 314.7 MB, free: 5.551 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000774/0.2204, allocations: 339.4 kB / 315 MB, free: 5.211 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000595/0.221, allocations: 372.8 kB / 315.4 MB, free: 4.848 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01227/0.2332, allocations: 7.742 MB / 323.1 MB, free: 12.94 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006875/0.2339, allocations: 259 kB / 323.4 MB, free: 12.68 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.864e-06/0.2339, allocations: 0 / 323.4 MB, free: 12.68 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.00237/0.2363, allocations: 0.778 MB / 324.2 MB, free: 11.89 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.2363, allocations: 59.34 kB / 324.2 MB, free: 11.82 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002123/0.2385, allocations: 1.475 MB / 325.7 MB, free: 10.31 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.164e-05/0.2385, allocations: 29.7 kB / 325.7 MB, free: 10.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007826/0.2393, allocations: 0.7154 MB / 326.4 MB, free: 9.555 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.2394, allocations: 103 kB / 326.5 MB, free: 9.457 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002251/0.2396, allocations: 126 kB / 326.7 MB, free: 9.328 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.2398, allocations: 322 kB / 327 MB, free: 9.008 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000479/0.2403, allocations: 160.9 kB / 327.1 MB, free: 8.852 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000694/0.241, allocations: 370.8 kB / 327.5 MB, free: 8.402 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.2422, allocations: 0.5366 MB / 328 MB, free: 7.777 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.2422, allocations: 0 / 328 MB, free: 7.777 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001779/0.244, allocations: 0.7811 MB / 328.8 MB, free: 6.992 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.244, allocations: 8 kB / 328.8 MB, free: 6.984 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.009e-05/0.2441, allocations: 43.98 kB / 328.9 MB, free: 6.941 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004417/0.2445, allocations: 133.3 kB / 329 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/0.245, allocations: 112.2 kB / 329.1 MB, free: 6.699 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008095/0.2458, allocations: 0.6817 MB / 329.8 MB, free: 5.992 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007008/0.2465, allocations: 71.59 kB / 329.8 MB, free: 5.922 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.207e-05/0.2466, allocations: 36 kB / 329.9 MB, free: 5.887 MB / 282.7 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.0006113/0.2472, allocations: 273.6 kB / 330.1 MB, free: 5.609 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004027/0.2476, allocations: 210.8 kB / 330.4 MB, free: 5.402 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002478/0.2501, allocations: 0.7228 MB / 331.1 MB, free: 4.672 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.2501, allocations: 8 kB / 331.1 MB, free: 4.664 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.2501, allocations: 3.938 kB / 331.1 MB, free: 4.66 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.2501, allocations: 3.984 kB / 331.1 MB, free: 4.656 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002713/0.2528, allocations: 1.191 MB / 332.3 MB, free: 3.426 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.409e-05/0.2529, allocations: 32 kB / 332.3 MB, free: 3.395 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.2532, allocations: 47.89 kB / 332.4 MB, free: 3.348 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002968/0.2535, allocations: 125.4 kB / 332.5 MB, free: 3.223 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.236e-05/0.2535, allocations: 19.98 kB / 332.5 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007452/0.2543, allocations: 0.6723 MB / 333.2 MB, free: 2.508 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2543, allocations: 0 / 333.2 MB, free: 2.508 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.2559, allocations: 0.729 MB / 333.9 MB, free: 1.75 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000541/0.2565, allocations: 220.6 kB / 334.1 MB, free: 1.535 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/0.2566, allocations: 14.8 kB / 334.1 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004298/0.2571, allocations: 23.97 kB / 334.2 MB, free: 1.5 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.2572, allocations: 44.56 kB / 334.2 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.582e-05/0.2573, allocations: 27.98 kB / 334.2 MB, free: 1.43 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001536/0.2588, allocations: 0.9571 MB / 335.2 MB, free: 464 kB / 282.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2588, allocations: 0 / 335.2 MB, free: 464 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.001046/0.2598, allocations: 335.6 kB / 335.5 MB, free: 128 kB / 282.7 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.001121/0.261, allocations: 0.6091 MB / 336.1 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.2626, allocations: 0.4887 MB / 336.6 MB, free: 15.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2626, allocations: 0 / 336.6 MB, free: 15.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007058/0.2633, allocations: 280.2 kB / 336.9 MB, free: 14.83 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/0.2648, allocations: 323.7 kB / 337.2 MB, free: 14.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004137/0.2689, allocations: 2.231 MB / 339.4 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006531/0.2696, allocations: 0.5665 MB / 340 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005594/0.2701, allocations: 199.9 kB / 340.2 MB, free: 11.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001762/0.2703, allocations: 88.5 kB / 340.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of SimCode: time 9.01e-07/0.2703, allocations: 0 / 340.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of Templates: time 0.03792/0.3082, allocations: 19.49 MB / 359.8 MB, free: 8.098 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.061338540050201]