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.0009264/0.0009264, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.00431/0.00431, allocations: 145.8 kB / 24.68 MB, free: 9.426 MB / 18.57 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 0.8715/0.8715, allocations: 173.4 MB / 201.2 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.84e-05/1.999e-05, allocations: 2.281 kB / 319.7 MB, free: 5.855 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.004835/0.004855, allocations: 6.917 MB / 326.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01223/0.01709, allocations: 16.66 MB / 343.3 MB, free: 14.17 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007151/0.0178, allocations: 94.94 kB / 343.3 MB, free: 14.08 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001417/0.01922, allocations: 0.7709 MB / 344.1 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002988/0.02221, allocations: 1.866 MB / 346 MB, free: 11.42 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001896/0.0241, allocations: 1.343 MB / 347.3 MB, free: 10.07 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002682/0.02678, allocations: 3.364 MB / 350.7 MB, free: 6.695 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002117/0.02699, allocations: 128.8 kB / 350.8 MB, free: 6.543 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005438/0.02754, allocations: 0.7909 MB / 351.6 MB, free: 5.75 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003512/0.02789, allocations: 422.5 kB / 352 MB, free: 5.336 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.273e-05/0.02794, allocations: 40 kB / 352.1 MB, free: 5.297 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001535/0.02948, allocations: 1.174 MB / 353.2 MB, free: 4.121 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.988e-05/0.02957, allocations: 162.8 kB / 353.4 MB, free: 3.961 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002447/0.02981, allocations: 382.8 kB / 353.8 MB, free: 3.586 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001684/0.0315, allocations: 2.262 MB / 356 MB, free: 1.316 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.0315, allocations: 0 / 356 MB, free: 1.316 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.0315, allocations: 4 kB / 356 MB, free: 1.312 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.03151, allocations: 4 kB / 356 MB, free: 1.309 MB / 314.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.001705/0.03322, allocations: 1.975 MB / 358 MB, free: 15.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.03325, allocations: 8.922 kB / 358 MB, free: 15.28 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.0334, allocations: 202.7 kB / 358.2 MB, free: 15.08 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.03456, allocations: 1.249 MB / 359.5 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.03457, allocations: 20.66 kB / 359.5 MB, free: 13.73 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.36e-05/0.03463, allocations: 27.98 kB / 359.5 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005195/0.03515, allocations: 433.8 kB / 359.9 MB, free: 13.28 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.03516, allocations: 0 / 359.9 MB, free: 13.28 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.646e-05/0.03518, allocations: 8 kB / 359.9 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.03519, allocations: 19.92 kB / 360 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005719/0.03577, allocations: 474.4 kB / 360.4 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001596/0.03736, allocations: 1.429 MB / 361.9 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000526/0.03789, allocations: 343.4 kB / 362.2 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004219/0.03831, allocations: 373.7 kB / 362.6 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007188/0.0455, allocations: 6.954 MB / 369.5 MB, free: 3.449 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003685/0.04587, allocations: 271 kB / 369.8 MB, free: 3.172 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 1.804e-06/0.04587, allocations: 0 / 369.8 MB, free: 3.172 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.001144/0.04701, allocations: 0.7664 MB / 370.5 MB, free: 2.395 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.04705, allocations: 59.39 kB / 370.6 MB, free: 2.324 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/0.04809, allocations: 1.463 MB / 372.1 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.04811, allocations: 33.7 kB / 372.1 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003896/0.0485, allocations: 0.7271 MB / 372.8 MB, free: 56 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.618e-05/0.04857, allocations: 91.44 kB / 372.9 MB, free: 15.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.04868, allocations: 122 kB / 373 MB, free: 15.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.373e-05/0.04876, allocations: 333.9 kB / 373.4 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002332/0.04899, allocations: 160.9 kB / 373.5 MB, free: 15.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003125/0.04931, allocations: 354.8 kB / 373.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005628/0.04987, allocations: 0.5449 MB / 374.4 MB, free: 14.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.04987, allocations: 3.938 kB / 374.4 MB, free: 14.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007983/0.05067, allocations: 0.7597 MB / 375.2 MB, free: 13.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.05069, allocations: 8 kB / 375.2 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.544e-05/0.05072, allocations: 36 kB / 375.2 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002069/0.05093, allocations: 133.4 kB / 375.3 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002106/0.05114, allocations: 107.8 kB / 375.4 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004069/0.05155, allocations: 0.6811 MB / 376.1 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.05181, allocations: 75.58 kB / 376.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-05/0.05185, allocations: 35.98 kB / 376.2 MB, free: 12.4 MB / 346.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.0002623/0.05211, allocations: 274.4 kB / 376.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.05222, allocations: 194.8 kB / 376.7 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009711/0.05319, allocations: 0.7354 MB / 377.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.05319, allocations: 4 kB / 377.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.0532, allocations: 3.984 kB / 377.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.0532, allocations: 0 / 377.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/0.05436, allocations: 1.196 MB / 378.6 MB, free: 9.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-05/0.05439, allocations: 39.98 kB / 378.7 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.0545, allocations: 47.95 kB / 378.7 MB, free: 9.844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001411/0.05464, allocations: 132.8 kB / 378.9 MB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.05466, allocations: 16 kB / 378.9 MB, free: 9.695 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003454/0.05501, allocations: 0.6733 MB / 379.5 MB, free: 8.996 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.553e-06/0.05502, allocations: 3.938 kB / 379.5 MB, free: 8.992 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006743/0.05569, allocations: 0.7096 MB / 380.3 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002034/0.05589, allocations: 212.6 kB / 380.5 MB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.811e-05/0.05597, allocations: 11.98 kB / 380.5 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002055/0.05618, allocations: 27.97 kB / 380.5 MB, free: 8.008 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.966e-05/0.05626, allocations: 43.89 kB / 380.5 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.538e-05/0.05628, allocations: 19.98 kB / 380.6 MB, free: 7.945 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007203/0.057, allocations: 0.9649 MB / 381.5 MB, free: 6.961 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.057, allocations: 0 / 381.5 MB, free: 6.961 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000518/0.05752, allocations: 331.6 kB / 381.9 MB, free: 6.637 MB / 346.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.0005883/0.05811, allocations: 0.5957 MB / 382.4 MB, free: 6.035 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007163/0.05882, allocations: 0.4974 MB / 382.9 MB, free: 5.527 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.05883, allocations: 4 kB / 382.9 MB, free: 5.523 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003376/0.05917, allocations: 275.2 kB / 383.2 MB, free: 5.242 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007354/0.0599, allocations: 311.1 kB / 383.5 MB, free: 4.934 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002175/0.06208, allocations: 2.251 MB / 385.8 MB, free: 2.633 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.06241, allocations: 0.5666 MB / 386.3 MB, free: 2.027 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.06252, allocations: 88.5 kB / 386.4 MB, free: 1.941 MB / 346.7 MB Notification: Performance of SimCode: time 6.52e-07/0.06252, allocations: 3.938 kB / 386.4 MB, free: 1.938 MB / 346.7 MB Notification: Performance of Templates: time 0.02004/0.08256, allocations: 26.68 MB / 413.1 MB, free: 7.312 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time [Calling sys.exit(0), Time elapsed: 6.244064797647297]