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.001321/0.001321, allocations: 85.58 kB / 20.68 MB, free: 1.035 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.001402/0.001402, allocations: 158.6 kB / 23.95 MB, free: 4.168 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.438/1.438, allocations: 177 MB / 204.1 MB, free: 9.145 MB / 190.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: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,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=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.301e-05/2.451e-05, allocations: 2.281 kB / 325 MB, free: 484 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008283/0.008307, allocations: 6.931 MB / 331.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02192/0.03022, allocations: 16.71 MB / 348.6 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001491/0.03172, allocations: 98.88 kB / 348.7 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002394/0.03411, allocations: 0.7632 MB / 349.5 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005676/0.03979, allocations: 1.87 MB / 351.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003769/0.04356, allocations: 1.351 MB / 352.7 MB, free: 9.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005314/0.04887, allocations: 3.395 MB / 356.1 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002995/0.04917, allocations: 124.8 kB / 356.2 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009793/0.05015, allocations: 0.7909 MB / 357 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006149/0.05076, allocations: 422.5 kB / 357.4 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.05088, allocations: 40 kB / 357.5 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003499/0.05437, allocations: 1.186 MB / 358.7 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002856/0.05466, allocations: 170.8 kB / 358.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008614/0.05552, allocations: 382.8 kB / 359.2 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00357/0.05909, allocations: 2.266 MB / 361.5 MB, free: 440 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.0591, allocations: 0 / 361.5 MB, free: 440 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.0591, allocations: 0 / 361.5 MB, free: 440 kB / 318.1 MB Notification: Performance of Transformations before backend: time 2.087e-05/0.05912, allocations: 0 / 361.5 MB, free: 440 kB / 318.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.003016/0.06213, allocations: 1.975 MB / 363.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.06217, allocations: 11.98 kB / 363.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002485/0.06242, allocations: 202.7 kB / 363.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.06431, allocations: 1.249 MB / 364.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.06433, allocations: 16.66 kB / 364.9 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.264e-05/0.06441, allocations: 31.98 kB / 364.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009617/0.06537, allocations: 437.8 kB / 365.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.06539, allocations: 0 / 365.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.87e-05/0.06544, allocations: 12 kB / 365.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.06546, allocations: 19.92 kB / 365.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.0666, allocations: 470.4 kB / 365.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.0693, allocations: 1.429 MB / 367.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009762/0.07028, allocations: 343.4 kB / 367.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007729/0.07105, allocations: 373.5 kB / 368 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01301/0.08406, allocations: 6.977 MB / 375 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006633/0.08472, allocations: 259.1 kB / 375.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.445e-06/0.08472, allocations: 0 / 375.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002188/0.08691, allocations: 0.7703 MB / 376 MB, free: 1.484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.08696, allocations: 59.34 kB / 376.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001839/0.0888, allocations: 1.463 MB / 377.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.697e-05/0.08885, allocations: 37.69 kB / 377.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006549/0.0895, allocations: 0.7193 MB / 378.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.616e-05/0.0896, allocations: 99.14 kB / 378.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001908/0.08979, allocations: 134 kB / 378.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.08994, allocations: 329.9 kB / 378.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004781/0.09041, allocations: 156.9 kB / 379 MB, free: 14.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006252/0.09104, allocations: 358.8 kB / 379.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.09216, allocations: 0.5334 MB / 379.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.217e-06/0.09216, allocations: 4 kB / 379.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001561/0.09372, allocations: 0.7563 MB / 380.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.09374, allocations: 12.06 kB / 380.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.638e-05/0.09381, allocations: 47.98 kB / 380.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003288/0.09414, allocations: 124.8 kB / 380.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.09457, allocations: 107.8 kB / 380.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006921/0.09526, allocations: 0.6812 MB / 381.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005827/0.09585, allocations: 79.59 kB / 381.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.018e-05/0.09592, allocations: 32 kB / 381.7 MB, free: 11.49 MB / 350.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.0004378/0.09635, allocations: 284.3 kB / 382 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000207/0.09656, allocations: 194.8 kB / 382.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.09848, allocations: 0.7307 MB / 382.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.09849, allocations: 4 kB / 382.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.09849, allocations: 0 / 382.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.0985, allocations: 0 / 382.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002271/0.1008, allocations: 1.196 MB / 384.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-05/0.1008, allocations: 36 kB / 384.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002635/0.1011, allocations: 51.95 kB / 384.2 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002675/0.1014, allocations: 124.8 kB / 384.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.821e-05/0.1014, allocations: 16 kB / 384.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006388/0.102, allocations: 0.6733 MB / 385 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.102, allocations: 0 / 385 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.1034, allocations: 0.7134 MB / 385.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004007/0.1038, allocations: 220.5 kB / 385.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001771/0.104, allocations: 12.12 kB / 385.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004613/0.1045, allocations: 31.95 kB / 386 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.1046, allocations: 39.95 kB / 386 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.762e-05/0.1047, allocations: 23.94 kB / 386 MB, free: 7.031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001289/0.1059, allocations: 0.9571 MB / 387 MB, free: 6.055 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1059, allocations: 0 / 387 MB, free: 6.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000891/0.1068, allocations: 335.5 kB / 387.3 MB, free: 5.727 MB / 350.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.0009476/0.1078, allocations: 0.5966 MB / 387.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.1092, allocations: 0.4935 MB / 388.4 MB, free: 4.613 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1092, allocations: 0 / 388.4 MB, free: 4.613 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007029/0.1099, allocations: 295.3 kB / 388.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.1112, allocations: 310.8 kB / 389 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003625/0.1149, allocations: 2.187 MB / 391.2 MB, free: 1.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005556/0.1154, allocations: 0.5627 MB / 391.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005388/0.116, allocations: 203.9 kB / 391.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.1161, allocations: 88.5 kB / 392 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of SimCode: time 8.61e-07/0.1161, allocations: 0 / 392 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of Templates: time 0.03561/0.1517, allocations: 19.39 MB / 411.4 MB, free: 13.71 MB / 382.1 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.054375682026148]