Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.0007222/0.0007222, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00114/0.001862, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006906/0.0006906, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009326/0.001623, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9582/0.9582, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.102/1.06, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 244.7 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.349e-05/1.501e-05, allocations: 2.312 kB / 244.7 MB, free: 14.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006204/0.006219, allocations: 5.136 MB / 249.9 MB, free: 9.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00283/0.009049, allocations: 1.569 MB / 251.4 MB, free: 7.445 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003619/0.009411, allocations: 39.69 kB / 251.5 MB, free: 7.406 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004034/0.009815, allocations: 225.7 kB / 251.7 MB, free: 7.184 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004476/0.01026, allocations: 221.6 kB / 251.9 MB, free: 6.965 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006971/0.01096, allocations: 419.2 kB / 252.3 MB, free: 6.555 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001038/0.012, allocations: 1.13 MB / 253.5 MB, free: 5.422 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004711/0.01247, allocations: 328.8 kB / 253.8 MB, free: 5.074 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006853/0.01315, allocations: 0.6398 MB / 254.4 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003643/0.01352, allocations: 294.9 kB / 254.7 MB, free: 4.145 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.01363, allocations: 84 kB / 254.8 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.01383, allocations: 104 kB / 254.9 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.01397, allocations: 163.3 kB / 255.1 MB, free: 3.801 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002525/0.01422, allocations: 267.2 kB / 255.3 MB, free: 3.539 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007477/0.01497, allocations: 0.7349 MB / 256 MB, free: 2.801 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.041e-05/0.01498, allocations: 0 / 256 MB, free: 2.801 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.01498, allocations: 0 / 256 MB, free: 2.801 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.01499, allocations: 4 kB / 256.1 MB, free: 2.797 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001504/0.0165, allocations: 1.472 MB / 257.5 MB, free: 1.293 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.556e-05/0.01652, allocations: 8.031 kB / 257.5 MB, free: 1.285 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002316/0.01675, allocations: 257 kB / 257.8 MB, free: 1.016 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006491/0.0174, allocations: 0.5471 MB / 258.3 MB, free: 452 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.402e-05/0.01744, allocations: 70 kB / 258.4 MB, free: 384 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.992e-05/0.01751, allocations: 96 kB / 258.5 MB, free: 288 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007043/0.01821, allocations: 0.9171 MB / 259.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.01824, allocations: 15.88 kB / 259.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.762e-05/0.01827, allocations: 44 kB / 259.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.01829, allocations: 28 kB / 259.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.01862, allocations: 305.3 kB / 259.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002497/0.02112, allocations: 4.808 MB / 264.6 MB, free: 9.773 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002486/0.02137, allocations: 149.1 kB / 264.7 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.02148, allocations: 93.61 kB / 264.8 MB, free: 9.512 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.343e-05/0.02154, allocations: 11.98 kB / 264.8 MB, free: 9.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.02156, allocations: 38.56 kB / 264.9 MB, free: 9.453 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 1.383e-06/0.02156, allocations: 0 / 264.9 MB, free: 9.453 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001747/0.02331, allocations: 1.096 MB / 266 MB, free: 8.309 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.02335, allocations: 88.97 kB / 266.1 MB, free: 8.203 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003444/0.02369, allocations: 0.6011 MB / 266.7 MB, free: 7.594 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.02371, allocations: 37.64 kB / 266.7 MB, free: 7.551 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002003/0.02391, allocations: 0.5314 MB / 267.2 MB, free: 7.012 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.733e-05/0.02398, allocations: 154.7 kB / 267.4 MB, free: 6.859 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.382e-05/0.02408, allocations: 138.5 kB / 267.5 MB, free: 6.719 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.02418, allocations: 394.6 kB / 267.9 MB, free: 6.324 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.05e-05/0.02424, allocations: 53.97 kB / 268 MB, free: 6.273 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.02445, allocations: 425.2 kB / 268.4 MB, free: 5.695 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005965/0.02504, allocations: 0.585 MB / 269 MB, free: 4.949 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/0.02505, allocations: 8 kB / 269 MB, free: 4.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0003751/0.02542, allocations: 479.7 kB / 269.4 MB, free: 4.469 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.02544, allocations: 12 kB / 269.5 MB, free: 4.457 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.02545, allocations: 12 kB / 269.5 MB, free: 4.445 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.02547, allocations: 16 kB / 269.5 MB, free: 4.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003748/0.02584, allocations: 223.6 kB / 269.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.02586, allocations: 23.92 kB / 269.7 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001524/0.02601, allocations: 40.08 kB / 269.8 MB, free: 4.148 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.02603, allocations: 32 kB / 269.8 MB, free: 4.117 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * 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.000127/0.02616, allocations: 173.4 kB / 270 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.657e-05/0.02622, allocations: 55.92 kB / 270 MB, free: 3.883 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.853e-05/0.02628, allocations: 82.62 kB / 270.1 MB, free: 3.789 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.02629, allocations: 4 kB / 270.1 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-06/0.02629, allocations: 0 / 270.1 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.02629, allocations: 0 / 270.1 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007143/0.02701, allocations: 0.7784 MB / 270.9 MB, free: 2.965 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.02701, allocations: 4 kB / 270.9 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000246/0.02726, allocations: 122.8 kB / 271 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.623e-05/0.0273, allocations: 71.45 kB / 271.1 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.0273, allocations: 4 kB / 271.1 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.02732, allocations: 12.16 kB / 271.1 MB, free: 2.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.02732, allocations: 7.938 kB / 271.1 MB, free: 2.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.02732, allocations: 0 / 271.1 MB, free: 2.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002918/0.02762, allocations: 466.5 kB / 271.5 MB, free: 2.262 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.07e-05/0.02765, allocations: 15.94 kB / 271.6 MB, free: 2.246 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.02777, allocations: 19.92 kB / 271.6 MB, free: 2.227 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.692e-05/0.02781, allocations: 31.91 kB / 271.6 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.02783, allocations: 15.98 kB / 271.6 MB, free: 2.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001599/0.02799, allocations: 272.5 kB / 271.9 MB, free: 1.914 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.02799, allocations: 0 / 271.9 MB, free: 1.914 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003216/0.02831, allocations: 140 kB / 272 MB, free: 1.777 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * 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 9.41e-05/0.0284, allocations: 92.34 kB / 272.1 MB, free: 1.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000251/0.02866, allocations: 303.3 kB / 272.4 MB, free: 1.387 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.795e-05/0.02867, allocations: 16.44 kB / 272.4 MB, free: 1.371 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001119/0.02878, allocations: 112.6 kB / 272.5 MB, free: 1.258 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006119/0.0294, allocations: 0.5206 MB / 273.1 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004042/0.03344, allocations: 1.693 MB / 274.8 MB, free: 14.91 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.03357, allocations: 182.7 kB / 274.9 MB, free: 14.71 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001996/0.03377, allocations: 98.16 kB / 275 MB, free: 14.61 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002311/0.034, allocations: 163.3 kB / 275.2 MB, free: 14.45 MB / 282.7 MB Notification: Performance of SimCode: time 7.72e-07/0.034, allocations: 0 / 275.2 MB, free: 14.45 MB / 282.7 MB Notification: Performance of Templates: time 0.01054/0.04455, allocations: 5.005 MB / 280.2 MB, free: 9.535 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5996823823079467]