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.001402/0.001402, allocations: 108.6 kB / 21.18 MB, free: 0.7617 MB / 14.72 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.001496/0.001496, allocations: 189.2 kB / 24.48 MB, free: 4.164 MB / 14.72 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 1.433/1.433, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001603/0.001603, allocations: 39.94 kB / 371.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2509, allocations: 52.2 MB / 423.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009711/0.2606, allocations: 8.075 MB / 432 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02356/0.2841, allocations: 19.51 MB / 451.5 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009161/0.2851, allocations: 94.94 kB / 451.6 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002108/0.2872, allocations: 0.8576 MB / 452.4 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00497/0.2921, allocations: 1.831 MB / 454.2 MB, free: 200 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003839/0.296, allocations: 1.355 MB / 455.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005315/0.3013, allocations: 3.287 MB / 458.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003186/0.3016, allocations: 132.8 kB / 459 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008196/0.3024, allocations: 0.595 MB / 459.6 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007278/0.3031, allocations: 0.5551 MB / 460.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.15e-05/0.3032, allocations: 43.98 kB / 460.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003704/0.3069, allocations: 1.444 MB / 461.6 MB, free: 8.738 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001917/0.3071, allocations: 170.8 kB / 461.8 MB, free: 8.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007342/0.3079, allocations: 0.6715 MB / 462.5 MB, free: 7.895 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003287/0.3112, allocations: 2.229 MB / 464.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3112, allocations: 0 / 464.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3112, allocations: 0 / 464.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.776e-05/0.3112, allocations: 4 kB / 464.7 MB, free: 5.652 MB / 366.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.003127/0.3143, allocations: 1.994 MB / 466.7 MB, free: 3.613 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.3143, allocations: 8.031 kB / 466.7 MB, free: 3.605 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002313/0.3146, allocations: 198.8 kB / 466.9 MB, free: 3.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001954/0.3165, allocations: 1.249 MB / 468.2 MB, free: 2.082 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.3166, allocations: 20.66 kB / 468.2 MB, free: 2.062 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.763e-05/0.3166, allocations: 31.95 kB / 468.2 MB, free: 2.031 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008975/0.3175, allocations: 433.8 kB / 468.6 MB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.3175, allocations: 3.938 kB / 468.6 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.335e-05/0.3176, allocations: 12 kB / 468.7 MB, free: 1.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/0.3176, allocations: 12 kB / 468.7 MB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.3187, allocations: 478.3 kB / 469.1 MB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0028/0.3215, allocations: 1.562 MB / 470.7 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000882/0.3224, allocations: 339.4 kB / 471 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007061/0.3231, allocations: 373.9 kB / 471.4 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01326/0.3363, allocations: 7.015 MB / 478.4 MB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006503/0.337, allocations: 263.1 kB / 478.7 MB, free: 7.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.024e-06/0.337, allocations: 0 / 478.7 MB, free: 7.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002068/0.3391, allocations: 0.7587 MB / 479.4 MB, free: 6.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.3391, allocations: 63.34 kB / 479.5 MB, free: 6.445 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/0.3409, allocations: 1.455 MB / 480.9 MB, free: 4.953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.943e-05/0.341, allocations: 29.7 kB / 481 MB, free: 4.918 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006577/0.3416, allocations: 0.731 MB / 481.7 MB, free: 4.184 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.593e-05/0.3417, allocations: 95.22 kB / 481.8 MB, free: 4.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.3419, allocations: 134 kB / 481.9 MB, free: 3.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3421, allocations: 322 kB / 482.2 MB, free: 3.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004387/0.3425, allocations: 160.9 kB / 482.4 MB, free: 3.473 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005807/0.3431, allocations: 358.8 kB / 482.7 MB, free: 3.031 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.3441, allocations: 0.5416 MB / 483.3 MB, free: 2.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.3441, allocations: 4 kB / 483.3 MB, free: 2.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001485/0.3456, allocations: 0.7524 MB / 484 MB, free: 1.633 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.3456, allocations: 8 kB / 484.1 MB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.74e-05/0.3457, allocations: 40 kB / 484.1 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000311/0.346, allocations: 128.8 kB / 484.2 MB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000407/0.3464, allocations: 104 kB / 484.3 MB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006474/0.3471, allocations: 0.6928 MB / 485 MB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005401/0.3476, allocations: 79.52 kB / 485.1 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-05/0.3477, allocations: 32 kB / 485.1 MB, free: 0.5273 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.0004095/0.3481, allocations: 273.7 kB / 485.4 MB, free: 256 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001997/0.3483, allocations: 198.7 kB / 485.6 MB, free: 56 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001772/0.35, allocations: 0.7354 MB / 486.3 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.3501, allocations: 4 kB / 486.3 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.3501, allocations: 64 / 486.3 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3501, allocations: 11.92 kB / 486.3 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002216/0.3523, allocations: 1.272 MB / 487.6 MB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.466e-05/0.3523, allocations: 32 kB / 487.6 MB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002487/0.3526, allocations: 52.02 kB / 487.7 MB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002384/0.3528, allocations: 132.7 kB / 487.8 MB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.859e-05/0.3529, allocations: 19.94 kB / 487.8 MB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005975/0.3535, allocations: 0.6695 MB / 488.5 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3535, allocations: 0 / 488.5 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.3547, allocations: 0.7134 MB / 489.2 MB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004339/0.3552, allocations: 216.6 kB / 489.4 MB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.3553, allocations: 11.92 kB / 489.4 MB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004144/0.3557, allocations: 27.97 kB / 489.5 MB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.3559, allocations: 47.88 kB / 489.5 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.204e-05/0.3559, allocations: 20 kB / 489.5 MB, free: 11.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001228/0.3571, allocations: 0.961 MB / 490.5 MB, free: 10.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3571, allocations: 0 / 490.5 MB, free: 10.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008575/0.358, allocations: 331.6 kB / 490.8 MB, free: 10.66 MB / 398.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.0008313/0.3588, allocations: 0.5693 MB / 491.4 MB, free: 10.08 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.3601, allocations: 0.5003 MB / 491.9 MB, free: 9.566 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3601, allocations: 0 / 491.9 MB, free: 9.566 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006627/0.3608, allocations: 287.3 kB / 492.2 MB, free: 9.277 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.362, allocations: 309.9 kB / 492.5 MB, free: 8.973 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00353/0.3656, allocations: 2.289 MB / 494.8 MB, free: 6.633 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007466/0.3663, allocations: 1.145 MB / 495.9 MB, free: 5.457 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/0.3665, allocations: 91.44 kB / 496 MB, free: 5.367 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3665, allocations: 0 / 496 MB, free: 5.367 MB / 398.1 MB Notification: Performance of Templates: time 0.03464/0.4011, allocations: 25.95 MB / 0.5097 GB, free: 11.47 MB / 430.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/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: 9.016705851070583]