Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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.001056/0.001056, allocations: 75.77 kB / 21.18 MB, free: 3.379 MB / 18.57 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.001054/0.001054, allocations: 161 kB / 24.56 MB, free: 8 kB / 18.57 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.009/1.009, allocations: 177.2 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] 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.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance") translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.377e-05/2.569e-05, allocations: 6.312 kB / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.003642/0.003668, allocations: 2.898 MB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000976/0.004644, allocations: 0.7048 MB / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.004776, allocations: 8 kB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002017/0.004978, allocations: 51.44 kB / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.00511, allocations: 99.06 kB / 276.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002814/0.005392, allocations: 95.8 kB / 276.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002972/0.005689, allocations: 394.7 kB / 277.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.005917, allocations: 116.8 kB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003066/0.006223, allocations: 231.5 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.006355, allocations: 111.6 kB / 277.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.101e-05/0.006396, allocations: 36 kB / 277.7 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.362e-05/0.00643, allocations: 32 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.714e-05/0.006477, allocations: 75.73 kB / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.359e-05/0.00656, allocations: 119.7 kB / 277.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.006811, allocations: 255 kB / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.006814, allocations: 0 / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.006815, allocations: 0 / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.00682, allocations: 0 / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0006832/0.007503, allocations: 0.6442 MB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.007541, allocations: 12.03 kB / 278.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.613e-05/0.007617, allocations: 64.7 kB / 278.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.007856, allocations: 204.1 kB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.007877, allocations: 21.03 kB / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.718e-05/0.007935, allocations: 36.38 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003674/0.008302, allocations: 278.7 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.008314, allocations: 192 / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.858e-05/0.008343, allocations: 16.38 kB / 279.5 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.008357, allocations: 15.94 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.008544, allocations: 111.8 kB / 279.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.00968, allocations: 0.8946 MB / 280.5 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001998/0.00988, allocations: 115.1 kB / 280.6 MB, free: 9.754 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.01002, allocations: 83.64 kB / 280.7 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.01004, allocations: 4 kB / 280.7 MB, free: 9.664 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.01008, allocations: 45.33 kB / 280.7 MB, free: 9.609 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 1.292e-06/0.01008, allocations: 0 / 280.7 MB, free: 9.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=19): time 0.000278/0.01036, allocations: 157 kB / 280.9 MB, free: 9.453 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.01039, allocations: 59.41 kB / 280.9 MB, free: 9.383 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.01053, allocations: 241.6 kB / 281.2 MB, free: 9.129 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.01055, allocations: 33.7 kB / 281.2 MB, free: 9.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.01065, allocations: 247 kB / 281.4 MB, free: 8.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.918e-05/0.01069, allocations: 75.36 kB / 281.5 MB, free: 8.766 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.728e-05/0.01074, allocations: 63.59 kB / 281.6 MB, free: 8.695 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.01086, allocations: 0.4962 MB / 282.1 MB, free: 8.188 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.442e-05/0.01092, allocations: 36.53 kB / 282.1 MB, free: 8.152 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.01104, allocations: 146.3 kB / 282.2 MB, free: 7.965 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.01122, allocations: 196.3 kB / 282.4 MB, free: 7.727 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.01122, allocations: 4 kB / 282.4 MB, free: 7.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002143/0.01143, allocations: 205.2 kB / 282.6 MB, free: 7.516 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.01145, allocations: 12.25 kB / 282.7 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.01146, allocations: 4.047 kB / 282.7 MB, free: 7.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.01148, allocations: 11.92 kB / 282.7 MB, free: 7.488 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.01169, allocations: 63.91 kB / 282.7 MB, free: 7.426 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.0117, allocations: 7.938 kB / 282.7 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.0118, allocations: 31.77 kB / 282.8 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.01182, allocations: 12 kB / 282.8 MB, free: 7.375 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001112/0.01194, allocations: 172.5 kB / 282.9 MB, free: 7.195 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.368e-05/0.01199, allocations: 23.86 kB / 283 MB, free: 7.172 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002168/0.01221, allocations: 151.4 kB / 283.1 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.01221, allocations: 0 / 283.1 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.01221, allocations: 3.938 kB / 283.1 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.227e-06/0.01222, allocations: 4 kB / 283.1 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004833/0.0127, allocations: 0.5005 MB / 283.6 MB, free: 6.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.0127, allocations: 0 / 283.6 MB, free: 6.461 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.01285, allocations: 55.84 kB / 283.7 MB, free: 6.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.01286, allocations: 7.938 kB / 283.7 MB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.01287, allocations: 4 kB / 283.7 MB, free: 6.395 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.01288, allocations: 12.05 kB / 283.7 MB, free: 6.383 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.01288, allocations: 0 / 283.7 MB, free: 6.383 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002608/0.01314, allocations: 350.5 kB / 284 MB, free: 6.012 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.841e-05/0.01316, allocations: 19.84 kB / 284.1 MB, free: 5.992 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.801e-05/0.01317, allocations: 7.938 kB / 284.1 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.74e-05/0.01325, allocations: 15.98 kB / 284.1 MB, free: 5.969 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.98e-05/0.01329, allocations: 15.94 kB / 284.1 MB, free: 5.953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.0133, allocations: 11.98 kB / 284.1 MB, free: 5.941 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.556e-05/0.01337, allocations: 171.1 kB / 284.3 MB, free: 5.773 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01337, allocations: 4 kB / 284.3 MB, free: 5.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001949/0.01357, allocations: 75.78 kB / 284.4 MB, free: 5.695 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 8.357e-05/0.01365, allocations: 103.2 kB / 284.5 MB, free: 5.586 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001756/0.01383, allocations: 119.5 kB / 284.6 MB, free: 5.465 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.01383, allocations: 4 kB / 284.6 MB, free: 5.461 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.976e-05/0.01389, allocations: 64.03 kB / 284.6 MB, free: 5.395 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002246/0.01412, allocations: 36.11 kB / 284.7 MB, free: 5.359 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.01524, allocations: 0.7084 MB / 285.4 MB, free: 4.617 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.427e-05/0.01529, allocations: 91.91 kB / 285.5 MB, free: 4.508 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.531e-05/0.01535, allocations: 29.92 kB / 285.5 MB, free: 4.477 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.61e-05/0.0154, allocations: 20.5 kB / 285.5 MB, free: 4.453 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.0154, allocations: 0 / 285.5 MB, free: 4.453 MB / 266.7 MB Notification: Performance of Templates: time 0.003722/0.01912, allocations: 1.842 MB / 287.4 MB, free: 2.648 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.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: 3.271229878999293]