Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001732/0.001732, allocations: 114.9 kB / 19.17 MB, free: 3.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002066/0.002066, allocations: 210.5 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.614/1.614, allocations: 230.2 MB / 255.1 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 63.88 kB / 374.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1074, allocations: 53.32 MB / 427.8 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2168/0.3242, allocations: 26.81 MB / 454.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0399/0.3641, allocations: 22.43 MB / 477.1 MB, free: 9.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007435/0.3715, allocations: 177.7 kB / 477.2 MB, free: 9.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00611/0.3777, allocations: 1.788 MB / 479 MB, free: 8.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01444/0.3921, allocations: 3.257 MB / 482.3 MB, free: 5.629 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00684/0.3989, allocations: 1.628 MB / 483.9 MB, free: 4.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02339/0.4223, allocations: 12.87 MB / 496.8 MB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001426/0.4237, allocations: 0.5039 MB / 497.3 MB, free: 11.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004259/0.428, allocations: 2.111 MB / 499.4 MB, free: 9.105 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00429/0.4323, allocations: 2.1 MB / 0.4897 GB, free: 6.992 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007416/0.433, allocations: 136 kB / 0.4899 GB, free: 6.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006218/0.4393, allocations: 1.533 MB / 0.4914 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.4403, allocations: 0.6049 MB / 0.492 GB, free: 4.715 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004627/0.445, allocations: 2.62 MB / 0.4945 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01281/0.4578, allocations: 6.667 MB / 0.501 GB, free: 11.38 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/0.4578, allocations: 4 kB / 0.501 GB, free: 11.38 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4578, allocations: 0 / 0.501 GB, free: 11.38 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002336/0.458, allocations: 3.938 kB / 0.501 GB, free: 11.37 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.01158/0.4696, allocations: 6.934 MB / 0.5078 GB, free: 4.336 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.4696, allocations: 8.031 kB / 0.5078 GB, free: 4.328 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0011/0.4707, allocations: 0.7842 MB / 0.5086 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00765/0.4784, allocations: 4.656 MB / 0.5131 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.792e-05/0.4785, allocations: 66 kB / 0.5132 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002552/0.4787, allocations: 103.9 kB / 0.5133 GB, free: 14.63 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002564/0.4813, allocations: 1.301 MB / 0.5146 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/0.4813, allocations: 4 kB / 0.5146 GB, free: 13.31 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.4814, allocations: 36 kB / 0.5146 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.226e-05/0.4815, allocations: 39.97 kB / 0.5146 GB, free: 13.24 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00271/0.4842, allocations: 1.48 MB / 0.5161 GB, free: 11.75 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01053/0.4947, allocations: 5.621 MB / 0.5216 GB, free: 6.043 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001911/0.4966, allocations: 0.8601 MB / 0.5224 GB, free: 5.172 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001725/0.4983, allocations: 1.062 MB / 0.5234 GB, free: 4.117 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06601/0.5644, allocations: 61.07 MB / 0.5831 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/0.5655, allocations: 0.5559 MB / 0.5836 GB, free: 14 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=85): time 3.667e-06/0.5655, allocations: 4 kB / 0.5836 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85): time 0.004028/0.5695, allocations: 1.91 MB / 0.5855 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.9e-05/0.5696, allocations: 59.97 kB / 0.5856 GB, free: 12 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008237/0.5778, allocations: 5.594 MB / 0.591 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002076/0.578, allocations: 41.7 kB / 0.5911 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002931/0.5809, allocations: 2.961 MB / 0.594 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004721/0.5814, allocations: 309.5 kB / 0.5943 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006138/0.582, allocations: 423 kB / 0.5947 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.5822, allocations: 313.1 kB / 0.595 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009697/0.5831, allocations: 403.7 kB / 0.5953 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/0.5846, allocations: 1.087 MB / 0.5964 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002634/0.5873, allocations: 1.615 MB / 0.598 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/0.5873, allocations: 8 kB / 0.598 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004181/0.5915, allocations: 2.234 MB / 0.6002 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.5915, allocations: 16 kB / 0.6002 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002235/0.5917, allocations: 163.9 kB / 0.6003 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.66e-05/0.5918, allocations: 35.94 kB / 0.6004 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.593, allocations: 355.4 kB / 0.6007 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.992e-05/0.5931, allocations: 51.78 kB / 0.6008 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001964/0.595, allocations: 198.7 kB / 0.6009 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002048/0.5952, allocations: 124 kB / 0.6011 GB, free: 11.45 MB / 0.5137 GB 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.001471/0.5967, allocations: 0.7081 MB / 0.6018 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001056/0.5978, allocations: 0.7492 MB / 0.6025 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004931/0.6027, allocations: 2.165 MB / 0.6046 GB, free: 7.805 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.6027, allocations: 8 kB / 0.6046 GB, free: 7.797 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.701e-05/0.6027, allocations: 3.938 kB / 0.6046 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.6027, allocations: 3.984 kB / 0.6046 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006397/0.6091, allocations: 3.603 MB / 0.6081 GB, free: 4.113 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001978/0.6093, allocations: 140.1 kB / 0.6083 GB, free: 3.977 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007934/0.6101, allocations: 155.8 kB / 0.6084 GB, free: 3.824 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.6101, allocations: 0 / 0.6084 GB, free: 3.824 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.6102, allocations: 64.8 kB / 0.6085 GB, free: 3.762 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.434e-06/0.6102, allocations: 4 kB / 0.6085 GB, free: 3.758 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.6102, allocations: 0 / 0.6085 GB, free: 3.758 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003982/0.6142, allocations: 2.192 MB / 0.6106 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/0.616, allocations: 0.8553 MB / 0.6115 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005895/0.6166, allocations: 19.94 kB / 0.6115 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/0.6178, allocations: 31.97 kB / 0.6115 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002529/0.618, allocations: 104.2 kB / 0.6116 GB, free: 0.5117 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.6182, allocations: 67.98 kB / 0.6117 GB, free: 456 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006146/0.6243, allocations: 3.612 MB / 0.6152 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6243, allocations: 0 / 0.6152 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002944/0.6273, allocations: 1.085 MB / 0.6163 GB, free: 11.78 MB / 0.5294 GB 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.001962/0.6292, allocations: 1.182 MB / 0.6174 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002806/0.632, allocations: 1.366 MB / 0.6188 GB, free: 9.176 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.6321, allocations: 0 / 0.6188 GB, free: 9.176 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.6333, allocations: 0.7315 MB / 0.6195 GB, free: 8.391 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00547/0.6388, allocations: 1.206 MB / 0.6206 GB, free: 7.191 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1958/0.8347, allocations: 8.369 MB / 0.6288 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002238/0.8369, allocations: 2.593 MB / 0.6313 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007466/0.8376, allocations: 296.1 kB / 0.6316 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.774e-06/0.8376, allocations: 3.062 kB / 0.6316 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.09496/0.9326, allocations: 70.97 MB / 0.7009 GB, free: 133.9 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 14.464640645077452]