Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.00136/0.00136, allocations: 80.83 kB / 20.68 MB, free: 1.035 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.001448/0.001448, allocations: 147 kB / 23.93 MB, free: 4.188 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.43/1.43, allocations: 173.4 MB / 200.4 MB, free: 12.87 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.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.535e-06/2.535e-06, allocations: 4.688 kB / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.924e-05/3.177e-05, allocations: 3.688 kB / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004083/0.004115, allocations: 2.678 MB / 321.6 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.005212, allocations: 0.6462 MB / 322.3 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001659/0.005378, allocations: 9.562 kB / 322.3 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002217/0.0056, allocations: 59.53 kB / 322.3 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001879/0.005788, allocations: 88.25 kB / 322.4 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003103/0.006098, allocations: 104 kB / 322.5 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004633/0.006562, allocations: 388.7 kB / 322.9 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002749/0.006836, allocations: 105 kB / 323 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000369/0.007205, allocations: 214.3 kB / 323.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.00742, allocations: 116.8 kB / 323.3 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.205e-05/0.007482, allocations: 32.38 kB / 323.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.862e-05/0.007541, allocations: 35.75 kB / 323.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.251e-05/0.007603, allocations: 69.12 kB / 323.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.007732, allocations: 117.3 kB / 323.6 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004227/0.008155, allocations: 383.6 kB / 323.9 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.008158, allocations: 1.375 kB / 323.9 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.008159, allocations: 3.938 kB / 323.9 MB, free: 492 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.00817, allocations: 0 / 323.9 MB, free: 492 kB / 286.1 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.00083/0.009, allocations: 0.5503 MB / 324.5 MB, free: 56 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.009035, allocations: 9.797 kB / 324.5 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.961e-05/0.009105, allocations: 42.98 kB / 324.5 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004054/0.00951, allocations: 206.5 kB / 324.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.148e-05/0.009552, allocations: 26.78 kB / 324.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.409e-05/0.009616, allocations: 33.75 kB / 324.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005933/0.01021, allocations: 322.9 kB / 325.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.01022, allocations: 192 / 325.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.498e-05/0.01026, allocations: 13.16 kB / 325.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.01027, allocations: 14.81 kB / 325.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004775/0.01075, allocations: 201.8 kB / 325.3 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.0123, allocations: 0.8092 MB / 326.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003569/0.01266, allocations: 149.1 kB / 326.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001956/0.01286, allocations: 70.84 kB / 326.4 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.01288, allocations: 1.906 kB / 326.4 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.01291, allocations: 38.3 kB / 326.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.243e-06/0.01291, allocations: 4 kB / 326.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006005/0.01351, allocations: 220 kB / 326.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.01356, allocations: 54.2 kB / 326.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002182/0.01377, allocations: 192.6 kB / 326.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.0138, allocations: 30.86 kB / 326.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.01395, allocations: 197 kB / 327.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.777e-05/0.01401, allocations: 64.61 kB / 327.2 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.284e-05/0.01409, allocations: 48.73 kB / 327.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.01425, allocations: 333.1 kB / 327.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.01443, allocations: 59.72 kB / 327.6 MB, free: 13.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.01464, allocations: 115 kB / 327.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.01502, allocations: 194.2 kB / 327.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.01503, allocations: 5 kB / 327.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005025/0.01553, allocations: 233.5 kB / 328.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.01555, allocations: 6.469 kB / 328.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.01555, allocations: 5.672 kB / 328.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.01557, allocations: 3.156 kB / 328.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002804/0.01585, allocations: 64.34 kB / 328.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.01586, allocations: 3.422 kB / 328.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.01601, allocations: 31.27 kB / 328.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/0.01603, allocations: 10.94 kB / 328.2 MB, free: 13.59 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001559/0.01619, allocations: 143 kB / 328.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.763e-05/0.01624, allocations: 16.75 kB / 328.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00044/0.01668, allocations: 199.2 kB / 328.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.01668, allocations: 2.312 kB / 328.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.01668, allocations: 0 / 328.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.01669, allocations: 4.609 kB / 328.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003178/0.01701, allocations: 212.6 kB / 328.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.01701, allocations: 1.219 kB / 328.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002748/0.01728, allocations: 47.11 kB / 328.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.01729, allocations: 1.062 kB / 328.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.01731, allocations: 7.062 kB / 328.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/0.01731, allocations: 13.06 kB / 328.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.01732, allocations: 0 / 328.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000628/0.01794, allocations: 347.5 kB / 329.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.01798, allocations: 18.86 kB / 329.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.045e-05/0.01801, allocations: 2.062 kB / 329.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.01819, allocations: 20.47 kB / 329.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.006e-05/0.01825, allocations: 12.16 kB / 329.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.01827, allocations: 7.875 kB / 329.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001255/0.01839, allocations: 135 kB / 329.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01839, allocations: 0 / 329.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003833/0.01877, allocations: 86.3 kB / 329.5 MB, free: 12.82 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.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 (19): * Single equations (assignments): 19 * 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.0002125/0.01899, allocations: 108.5 kB / 329.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004213/0.01941, allocations: 149.1 kB / 329.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.01941, allocations: 1.438 kB / 329.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.01958, allocations: 67.31 kB / 329.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.01991, allocations: 35.08 kB / 329.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.02124, allocations: 0.6885 MB / 330.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001723/0.02141, allocations: 159.5 kB / 330.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.457e-05/0.0215, allocations: 19.28 kB / 330.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.665e-05/0.02155, allocations: 23.33 kB / 330.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of SimCode: time 4.5e-07/0.02155, allocations: 0 / 330.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of Templates: time 0.005678/0.02723, allocations: 1.772 MB / 332.5 MB, free: 11.53 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.32777377218008]