Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001632/0.001632, allocations: 84.16 kB / 20.68 MB, free: 1.023 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.002058/0.002058, allocations: 164.4 kB / 23.95 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.435/1.435, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.062e-06/1.062e-06, allocations: 0 / 325 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.76e-05/1.867e-05, allocations: 2.281 kB / 325 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008804/0.008822, allocations: 6.935 MB / 332 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02142/0.03024, allocations: 16.71 MB / 348.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001074/0.03132, allocations: 98.88 kB / 348.8 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002176/0.03349, allocations: 0.7631 MB / 349.6 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005477/0.03897, allocations: 1.87 MB / 351.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00371/0.04268, allocations: 1.34 MB / 352.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005536/0.04821, allocations: 3.395 MB / 356.2 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003299/0.04854, allocations: 132.8 kB / 356.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001101/0.04965, allocations: 0.7987 MB / 357.1 MB, free: 5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006588/0.0503, allocations: 410.5 kB / 357.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.05042, allocations: 48 kB / 357.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003257/0.05367, allocations: 1.174 MB / 358.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001846/0.05386, allocations: 170.8 kB / 358.9 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000532/0.05439, allocations: 378.8 kB / 359.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00326/0.05765, allocations: 2.27 MB / 361.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.05765, allocations: 0 / 361.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.05766, allocations: 0 / 361.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.05767, allocations: 0 / 361.5 MB, free: 0.5586 MB / 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.003083/0.06075, allocations: 1.971 MB / 363.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.06079, allocations: 12.03 kB / 363.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002484/0.06104, allocations: 198.7 kB / 363.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001955/0.063, allocations: 1.26 MB / 365 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.402e-05/0.06302, allocations: 16.66 kB / 365 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.116e-05/0.0631, allocations: 28 kB / 365 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009727/0.06408, allocations: 441.8 kB / 365.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.06409, allocations: 0 / 365.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.816e-05/0.06414, allocations: 12 kB / 365.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.06415, allocations: 11.92 kB / 365.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.06535, allocations: 482.3 kB / 365.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002788/0.06814, allocations: 1.425 MB / 367.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.06916, allocations: 347.4 kB / 367.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007905/0.06995, allocations: 369.5 kB / 368 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01332/0.08327, allocations: 6.981 MB / 375 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006795/0.08395, allocations: 255.1 kB / 375.3 MB, free: 2.391 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.255e-06/0.08395, allocations: 0 / 375.3 MB, free: 2.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002248/0.0862, allocations: 0.771 MB / 376 MB, free: 1.609 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.08625, allocations: 63.34 kB / 376.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001776/0.08803, allocations: 1.463 MB / 377.6 MB, free: 36 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.242e-05/0.08809, allocations: 33.78 kB / 377.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006678/0.08876, allocations: 0.7193 MB / 378.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.851e-05/0.08886, allocations: 103.1 kB / 378.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.08905, allocations: 130 kB / 378.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.08921, allocations: 325.9 kB / 378.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004828/0.0897, allocations: 156.9 kB / 379 MB, free: 14.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006369/0.09033, allocations: 362.8 kB / 379.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.09147, allocations: 0.5378 MB / 379.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.09148, allocations: 11.88 kB / 379.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001589/0.09307, allocations: 0.7522 MB / 380.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.09309, allocations: 8 kB / 380.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.738e-05/0.09315, allocations: 44 kB / 380.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003231/0.09348, allocations: 128.8 kB / 380.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004361/0.09391, allocations: 108.1 kB / 381 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006817/0.09459, allocations: 0.6812 MB / 381.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005702/0.09516, allocations: 67.58 kB / 381.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.894e-05/0.09523, allocations: 40 kB / 381.7 MB, free: 11.61 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.000419/0.09565, allocations: 269.7 kB / 382 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/0.09585, allocations: 198.8 kB / 382.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001904/0.09776, allocations: 0.7385 MB / 382.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.09777, allocations: 7.984 kB / 383 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.09777, allocations: 4 kB / 383 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.09778, allocations: 3.984 kB / 383 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002241/0.1, allocations: 1.193 MB / 384.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-05/0.1001, allocations: 32 kB / 384.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002644/0.1003, allocations: 43.94 kB / 384.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002549/0.1006, allocations: 128.8 kB / 384.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.1006, allocations: 19.98 kB / 384.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006463/0.1013, allocations: 0.6734 MB / 385 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.1013, allocations: 3.984 kB / 385.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.1027, allocations: 0.7108 MB / 385.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003763/0.103, allocations: 216.5 kB / 386 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.1032, allocations: 8 kB / 386 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004549/0.1037, allocations: 27.95 kB / 386 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.1038, allocations: 39.95 kB / 386 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.075e-05/0.1038, allocations: 23.98 kB / 386.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00123/0.1051, allocations: 0.961 MB / 387 MB, free: 6.184 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1051, allocations: 0 / 387 MB, free: 6.184 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008593/0.1059, allocations: 331.6 kB / 387.4 MB, free: 5.859 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.0009275/0.1068, allocations: 0.5997 MB / 388 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.1082, allocations: 0.4967 MB / 388.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.1082, allocations: 0 / 388.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007093/0.1089, allocations: 293.9 kB / 388.7 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/0.1103, allocations: 311 kB / 389 MB, free: 4.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/0.1137, allocations: 2.187 MB / 391.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005706/0.1143, allocations: 0.5705 MB / 391.8 MB, free: 1.297 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005248/0.1148, allocations: 203.8 kB / 392 MB, free: 1.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.1149, allocations: 92.5 kB / 392.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1149, allocations: 3.938 kB / 392.1 MB, free: 1 MB / 350.1 MB Notification: Performance of Templates: time 0.03569/0.1506, allocations: 19.38 MB / 411.5 MB, free: 13.85 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 4.916577111929655]