Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.001881/0.001881, allocations: 79.55 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001888/0.001888, allocations: 146.7 kB / 23.94 MB, free: 4.168 MB / 14.72 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 1.466/1.466, allocations: 173.3 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] 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.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.674e-06/1.674e-06, allocations: 0 / 319 MB, free: 3.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.213e-05/2.381e-05, allocations: 3.406 kB / 319 MB, free: 3.523 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005244/0.005268, allocations: 4.745 MB / 323.7 MB, free: 312 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003024/0.008292, allocations: 1.397 MB / 325.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005477/0.00884, allocations: 36.19 kB / 325.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005339/0.009374, allocations: 222.8 kB / 325.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006209/0.009995, allocations: 206 kB / 325.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009502/0.01094, allocations: 408.5 kB / 326 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00141/0.01235, allocations: 1.15 MB / 327.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005795/0.01293, allocations: 311.1 kB / 327.4 MB, free: 14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008627/0.0138, allocations: 0.5891 MB / 328 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004266/0.01422, allocations: 293.9 kB / 328.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.01436, allocations: 83.81 kB / 328.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002133/0.01457, allocations: 100.3 kB / 328.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002196/0.01479, allocations: 214.9 kB / 328.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003679/0.01516, allocations: 317.5 kB / 329 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001395/0.01655, allocations: 1.158 MB / 330.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.01656, allocations: 1.094 kB / 330.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.01656, allocations: 3.938 kB / 330.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.731e-05/0.01657, allocations: 4.594 kB / 330.1 MB, free: 12.84 MB / 302.1 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.002091/0.01867, allocations: 1.253 MB / 331.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.0187, allocations: 9.312 kB / 331.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002016/0.01891, allocations: 133.1 kB / 331.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.02002, allocations: 0.5766 MB / 332.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.886e-05/0.02009, allocations: 73.91 kB / 332.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.02022, allocations: 97.16 kB / 332.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/0.02208, allocations: 1.083 MB / 333.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.121e-05/0.02211, allocations: 2.656 kB / 333.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.672e-05/0.02219, allocations: 49.03 kB / 333.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.555e-05/0.02223, allocations: 29.16 kB / 333.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.02343, allocations: 0.5542 MB / 334 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005632/0.02906, allocations: 5.114 MB / 339.1 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006103/0.02967, allocations: 226.8 kB / 339.3 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003297/0.03, allocations: 146.6 kB / 339.5 MB, free: 5.215 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-05/0.0301, allocations: 10.88 kB / 339.5 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.03014, allocations: 37.25 kB / 339.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.114e-06/0.03014, allocations: 1.375 kB / 339.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004221/0.03436, allocations: 1.6 MB / 341.1 MB, free: 4.121 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.03442, allocations: 81.64 kB / 341.2 MB, free: 4.027 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007928/0.03522, allocations: 0.6463 MB / 341.9 MB, free: 3.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.097e-05/0.03526, allocations: 36.2 kB / 341.9 MB, free: 3.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004911/0.03575, allocations: 0.6109 MB / 342.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001304/0.03588, allocations: 150.5 kB / 342.6 MB, free: 2.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000196/0.03607, allocations: 138.6 kB / 342.8 MB, free: 2.828 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.03629, allocations: 387.6 kB / 343.2 MB, free: 2.457 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003258/0.03662, allocations: 148.9 kB / 343.3 MB, free: 2.395 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006731/0.03729, allocations: 0.4911 MB / 343.8 MB, free: 1.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.03835, allocations: 0.7 MB / 344.5 MB, free: 1.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.618e-06/0.03836, allocations: 11.94 kB / 344.5 MB, free: 1.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001335/0.03969, allocations: 0.7141 MB / 345.2 MB, free: 416 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.888e-05/0.03972, allocations: 15.94 kB / 345.2 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.03974, allocations: 12.84 kB / 345.2 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.138e-05/0.03977, allocations: 16 kB / 345.3 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006991/0.04047, allocations: 195.7 kB / 345.5 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.757e-05/0.0405, allocations: 27.86 kB / 345.5 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004215/0.04092, allocations: 35.98 kB / 345.5 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.283e-05/0.04098, allocations: 43.98 kB / 345.6 MB, free: 68 kB / 302.1 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.0003716/0.04135, allocations: 225.5 kB / 345.8 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.04149, allocations: 83.48 kB / 345.9 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001322/0.04162, allocations: 74.56 kB / 345.9 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.04163, allocations: 7.984 kB / 345.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.04164, allocations: 0 / 345.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.04164, allocations: 0 / 345.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.04379, allocations: 1.136 MB / 347.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.04379, allocations: 0 / 347.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000519/0.04431, allocations: 103.9 kB / 347.2 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.04432, allocations: 4 kB / 347.2 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.931e-05/0.04434, allocations: 8 kB / 347.2 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.199e-06/0.04435, allocations: 4 kB / 347.2 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.04436, allocations: 3.984 kB / 347.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.0455, allocations: 0.7012 MB / 347.9 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.04562, allocations: 71.52 kB / 348 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.742e-05/0.04569, allocations: 8 kB / 348 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003184/0.04601, allocations: 23.98 kB / 348 MB, free: 13.53 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.369e-05/0.0461, allocations: 39.81 kB / 348 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.04613, allocations: 8 kB / 348.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005268/0.04666, allocations: 423 kB / 348.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.04666, allocations: 0 / 348.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007321/0.04739, allocations: 140 kB / 348.6 MB, free: 12.94 MB / 318.1 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 0.000155/0.04754, allocations: 107.2 kB / 348.7 MB, free: 12.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008667/0.04841, allocations: 413.8 kB / 349.1 MB, free: 12.42 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.04841, allocations: 0 / 349.1 MB, free: 12.42 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003326/0.04875, allocations: 156.5 kB / 349.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005713/0.04932, allocations: 74.92 kB / 349.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002895/0.05221, allocations: 1.559 MB / 350.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004664/0.05268, allocations: 417.3 kB / 351.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002727/0.05295, allocations: 94 kB / 351.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/0.05311, allocations: 68.47 kB / 351.5 MB, free: 9.984 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.05311, allocations: 0 / 351.5 MB, free: 9.984 MB / 318.1 MB Notification: Performance of Templates: time 0.01231/0.06542, allocations: 4.658 MB / 356.1 MB, free: 5.41 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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: 4.537787768989801]