Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001299/0.001299, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001461/0.001461, allocations: 211 kB / 23.73 MB, free: 4.523 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.482/1.482, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.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.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 55.84 kB / 378.2 MB, free: 2.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2295, allocations: 53.36 MB / 431.6 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02506/0.2545, allocations: 22.25 MB / 453.8 MB, free: 432 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02862/0.2832, allocations: 19.55 MB / 473.4 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004618/0.2878, allocations: 269.1 kB / 473.6 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004968/0.2927, allocations: 1.676 MB / 475.3 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01175/0.3045, allocations: 3.314 MB / 478.6 MB, free: 7.508 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005889/0.3104, allocations: 1.593 MB / 480.2 MB, free: 5.914 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02171/0.3321, allocations: 12.91 MB / 493.1 MB, free: 8.969 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001156/0.3332, allocations: 0.5043 MB / 493.6 MB, free: 8.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003419/0.3367, allocations: 2.209 MB / 495.8 MB, free: 6.211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003419/0.3401, allocations: 2.1 MB / 497.9 MB, free: 4.098 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004157/0.3405, allocations: 136 kB / 498.1 MB, free: 3.965 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003861/0.3444, allocations: 1.296 MB / 499.4 MB, free: 2.668 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000717/0.3451, allocations: 0.601 MB / 500 MB, free: 2.062 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00259/0.3477, allocations: 1.932 MB / 0.4901 GB, free: 120 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009468/0.3571, allocations: 6.742 MB / 0.4967 GB, free: 9.344 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3571, allocations: 0 / 0.4967 GB, free: 9.344 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3571, allocations: 0 / 0.4967 GB, free: 9.344 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001471/0.3573, allocations: 0 / 0.4967 GB, free: 9.344 MB / 414.1 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.01119/0.3685, allocations: 6.855 MB / 0.5034 GB, free: 2.406 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.3685, allocations: 12.03 kB / 0.5034 GB, free: 2.395 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001002/0.3695, allocations: 0.7803 MB / 0.5042 GB, free: 1.609 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008096/0.3776, allocations: 4.371 MB / 0.5084 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.341e-05/0.3777, allocations: 73.92 kB / 0.5085 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002844/0.378, allocations: 99.91 kB / 0.5086 GB, free: 12.94 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002529/0.3805, allocations: 1.312 MB / 0.5099 GB, free: 11.62 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.3805, allocations: 0 / 0.5099 GB, free: 11.62 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001263/0.3807, allocations: 32 kB / 0.5099 GB, free: 11.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-05/0.3807, allocations: 43.97 kB / 0.51 GB, free: 11.54 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002771/0.3835, allocations: 1.484 MB / 0.5114 GB, free: 10.05 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01092/0.3944, allocations: 5.132 MB / 0.5164 GB, free: 4.863 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001847/0.3963, allocations: 0.868 MB / 0.5173 GB, free: 3.984 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001744/0.398, allocations: 1.067 MB / 0.5183 GB, free: 2.918 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2446/0.6426, allocations: 27.06 MB / 0.5447 GB, free: 103.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008302/0.6435, allocations: 0.5589 MB / 0.5453 GB, free: 103 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.126e-06/0.6435, allocations: 0 / 0.5453 GB, free: 103 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002545/0.646, allocations: 1.91 MB / 0.5472 GB, free: 102.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.6461, allocations: 60.06 kB / 0.5472 GB, free: 102.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005083/0.6511, allocations: 5.633 MB / 0.5527 GB, free: 96.85 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.246e-05/0.6512, allocations: 37.7 kB / 0.5528 GB, free: 96.81 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001565/0.6528, allocations: 2.965 MB / 0.5556 GB, free: 93.92 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001873/0.653, allocations: 310.5 kB / 0.5559 GB, free: 93.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003898/0.6534, allocations: 430.5 kB / 0.5564 GB, free: 93.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.12e-05/0.6534, allocations: 309 kB / 0.5566 GB, free: 92.93 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007122/0.6541, allocations: 407.6 kB / 0.557 GB, free: 92.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009801/0.6551, allocations: 1.083 MB / 0.5581 GB, free: 91.13 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001612/0.6567, allocations: 1.61 MB / 0.5597 GB, free: 89.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.6567, allocations: 11.94 kB / 0.5597 GB, free: 89.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002753/0.6595, allocations: 2.236 MB / 0.5619 GB, free: 87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.6595, allocations: 23.92 kB / 0.5619 GB, free: 86.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001516/0.6596, allocations: 160 kB / 0.562 GB, free: 86.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.331e-05/0.6597, allocations: 32 kB / 0.5621 GB, free: 86.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/0.6607, allocations: 360 kB / 0.5624 GB, free: 86.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.629e-05/0.6608, allocations: 51.78 kB / 0.5625 GB, free: 86.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/0.6625, allocations: 185.3 kB / 0.5626 GB, free: 86.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001442/0.6626, allocations: 124 kB / 0.5628 GB, free: 86.13 MB / 446.1 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.000974/0.6636, allocations: 0.7137 MB / 0.5635 GB, free: 85.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004759/0.6641, allocations: 0.7569 MB / 0.5642 GB, free: 84.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003473/0.6675, allocations: 2.152 MB / 0.5663 GB, free: 82.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.6675, allocations: 8 kB / 0.5663 GB, free: 82.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.6675, allocations: 0 / 0.5663 GB, free: 82.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.6675, allocations: 3.984 kB / 0.5663 GB, free: 82.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004392/0.6719, allocations: 3.357 MB / 0.5696 GB, free: 79.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001364/0.6721, allocations: 140 kB / 0.5697 GB, free: 79.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007048/0.6728, allocations: 157.1 kB / 0.5699 GB, free: 78.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.111e-06/0.6728, allocations: 4 kB / 0.5699 GB, free: 78.94 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.882e-05/0.6729, allocations: 52 kB / 0.5699 GB, free: 78.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.6729, allocations: 4 kB / 0.5699 GB, free: 78.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.6729, allocations: 7.938 kB / 0.5699 GB, free: 78.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.6755, allocations: 2.19 MB / 0.5721 GB, free: 76.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001541/0.6771, allocations: 0.7841 MB / 0.5728 GB, free: 75.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006039/0.6777, allocations: 12 kB / 0.5728 GB, free: 75.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/0.6788, allocations: 35.95 kB / 0.5729 GB, free: 75.83 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/0.679, allocations: 105.4 kB / 0.573 GB, free: 75.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.6792, allocations: 67.98 kB / 0.573 GB, free: 75.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003981/0.6831, allocations: 3.608 MB / 0.5766 GB, free: 72.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6831, allocations: 3.938 kB / 0.5766 GB, free: 72.08 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002371/0.6855, allocations: 1.092 MB / 0.5776 GB, free: 71.06 MB / 446.1 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.001364/0.6869, allocations: 1.181 MB / 0.5788 GB, free: 69.94 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002066/0.6889, allocations: 1.366 MB / 0.5801 GB, free: 68.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.6889, allocations: 8.125 kB / 0.5801 GB, free: 68.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008887/0.6898, allocations: 0.7242 MB / 0.5808 GB, free: 67.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004688/0.6945, allocations: 1.18 MB / 0.582 GB, free: 66.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008724/0.7032, allocations: 8.271 MB / 0.5901 GB, free: 58.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001263/0.7045, allocations: 2.102 MB / 0.5921 GB, free: 56.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001768/0.7063, allocations: 0.6846 MB / 0.5928 GB, free: 55.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/0.7066, allocations: 283.4 kB / 0.5931 GB, free: 55.17 MB / 446.1 MB Notification: Performance of SimCode: time 1.363e-06/0.7066, allocations: 4 kB / 0.5931 GB, free: 55.16 MB / 446.1 MB Notification: Performance of Templates: time 0.08848/0.7951, allocations: 65.98 MB / 0.6575 GB, free: 6.043 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.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: 6.758192882873118]