Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.000951/0.000951, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0009199/0.0009199, allocations: 141.2 kB / 25.59 MB, free: 8.906 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.9552/0.9552, allocations: 173.4 MB / 202.3 MB, free: 8.258 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.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.162e-05/2.336e-05, allocations: 2.312 kB / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02382/0.02385, allocations: 24.71 MB / 293.9 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.033/0.05685, allocations: 21.02 MB / 314.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005846/0.0627, allocations: 269.1 kB / 315.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005088/0.06779, allocations: 1.683 MB / 316.9 MB, free: 9.914 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0148/0.08259, allocations: 3.434 MB / 320.3 MB, free: 6.453 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003906/0.0865, allocations: 1.644 MB / 321.9 MB, free: 4.805 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01352/0.1, allocations: 13.33 MB / 335.3 MB, free: 7.434 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001288/0.1013, allocations: 0.4887 MB / 335.8 MB, free: 6.91 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006754/0.1081, allocations: 5.818 MB / 341.6 MB, free: 1.082 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1083/0.2163, allocations: 1.555 MB / 343.1 MB, free: 31.93 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007427/0.2171, allocations: 131.1 kB / 343.3 MB, free: 31.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003544/0.2206, allocations: 1.263 MB / 344.5 MB, free: 31.93 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004576/0.2211, allocations: 0.6104 MB / 345.1 MB, free: 31.93 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002938/0.224, allocations: 1.425 MB / 346.6 MB, free: 31.93 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004383/0.2284, allocations: 4.649 MB / 351.2 MB, free: 31.33 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.2284, allocations: 2.688 kB / 351.2 MB, free: 31.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.2284, allocations: 3.062 kB / 351.2 MB, free: 31.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.651e-05/0.2285, allocations: 0 / 351.2 MB, free: 31.33 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.004746/0.2332, allocations: 7.243 MB / 358.5 MB, free: 27.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2332, allocations: 9.25 kB / 358.5 MB, free: 27.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005812/0.2338, allocations: 0.8469 MB / 359.3 MB, free: 26.97 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003321/0.2371, allocations: 4.815 MB / 364.1 MB, free: 25.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/0.2372, allocations: 68.66 kB / 364.2 MB, free: 25.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001399/0.2373, allocations: 109 kB / 364.3 MB, free: 25.44 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00083/0.2381, allocations: 0.8309 MB / 365.1 MB, free: 25.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.2382, allocations: 0 / 365.1 MB, free: 25.36 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.86e-05/0.2382, allocations: 35.16 kB / 365.2 MB, free: 25.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.142e-05/0.2383, allocations: 41.41 kB / 365.2 MB, free: 25.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007251/0.239, allocations: 0.8071 MB / 366 MB, free: 25.33 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00452/0.2435, allocations: 4.315 MB / 370.3 MB, free: 24.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004917/0.244, allocations: 0.4999 MB / 370.8 MB, free: 24.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005123/0.2445, allocations: 0.7248 MB / 371.6 MB, free: 24.6 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02468/0.2692, allocations: 29.9 MB / 401.5 MB, free: 14.67 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004312/0.2696, allocations: 416.9 kB / 401.9 MB, free: 14.26 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 2.284e-06/0.2696, allocations: 3.938 kB / 401.9 MB, free: 14.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.001505/0.2711, allocations: 1.487 MB / 403.4 MB, free: 12.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/0.2712, allocations: 68.06 kB / 403.4 MB, free: 12.7 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003938/0.2751, allocations: 5.939 MB / 409.4 MB, free: 7.832 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.767e-05/0.2752, allocations: 41.7 kB / 409.4 MB, free: 7.785 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002072/0.2773, allocations: 3.278 MB / 412.7 MB, free: 4.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.2775, allocations: 312 kB / 413 MB, free: 4.535 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003206/0.2778, allocations: 436.1 kB / 413.4 MB, free: 4.133 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.458e-05/0.2779, allocations: 476.8 kB / 413.9 MB, free: 3.664 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002301/0.2781, allocations: 195.9 kB / 414.1 MB, free: 3.473 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006321/0.2787, allocations: 1.202 MB / 415.3 MB, free: 1.867 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.2798, allocations: 1.55 MB / 416.8 MB, free: 40 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.2798, allocations: 8 kB / 416.8 MB, free: 32 kB / 330.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001722/0.2815, allocations: 1.904 MB / 418.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.2816, allocations: 16 kB / 418.7 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000129/0.2817, allocations: 166.9 kB / 418.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.599e-05/0.2817, allocations: 32 kB / 418.9 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006189/0.2823, allocations: 362.6 kB / 419.3 MB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.286e-05/0.2824, allocations: 50.7 kB / 419.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.2834, allocations: 182.7 kB / 419.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.2835, allocations: 112.7 kB / 419.6 MB, free: 13.43 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00051/0.284, allocations: 266.8 kB / 419.9 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004795/0.2845, allocations: 0.7726 MB / 420.7 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00211/0.2866, allocations: 1.863 MB / 422.5 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.2866, allocations: 8 kB / 422.5 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.2866, allocations: 0 / 422.5 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.2867, allocations: 7.922 kB / 422.5 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003643/0.2903, allocations: 3.774 MB / 426.3 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001088/0.2904, allocations: 140 kB / 426.4 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003707/0.2908, allocations: 139.3 kB / 426.6 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.2908, allocations: 7.984 kB / 426.6 MB, free: 7.211 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.751e-05/0.2908, allocations: 60 kB / 426.7 MB, free: 7.152 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.2908, allocations: 7.938 kB / 426.7 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2908, allocations: 6.781 kB / 426.7 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.2923, allocations: 1.75 MB / 428.4 MB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008553/0.2931, allocations: 0.8171 MB / 429.2 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003223/0.2934, allocations: 19.98 kB / 429.3 MB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005922/0.294, allocations: 30.66 kB / 429.3 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.2942, allocations: 100.5 kB / 429.4 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.446e-05/0.2942, allocations: 67.47 kB / 429.4 MB, free: 4.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002174/0.2964, allocations: 3.022 MB / 432.5 MB, free: 1.699 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2964, allocations: 0 / 432.5 MB, free: 1.699 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001774/0.2982, allocations: 1.085 MB / 433.6 MB, free: 0.6133 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * 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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001373/0.2996, allocations: 1.435 MB / 435 MB, free: 15.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.3006, allocations: 1.087 MB / 436.1 MB, free: 14.35 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3006, allocations: 0 / 436.1 MB, free: 14.35 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004574/0.3011, allocations: 0.5993 MB / 436.7 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/0.3038, allocations: 1.231 MB / 437.9 MB, free: 12.49 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007306/0.3111, allocations: 7.768 MB / 445.7 MB, free: 4.652 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.3115, allocations: 0.6933 MB / 446.4 MB, free: 3.941 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00125/0.3128, allocations: 0.6768 MB / 447 MB, free: 3.262 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001789/0.3145, allocations: 1.301 MB / 448.3 MB, free: 1.961 MB / 362.7 MB Notification: Performance of SimCode: time 1.492e-06/0.3145, allocations: 4 kB / 448.3 MB, free: 1.957 MB / 362.7 MB Notification: Performance of Templates: time 0.1838/0.4984, allocations: 66.66 MB / 0.5029 GB, free: 130.7 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","",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.283326571807265]