Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.001255/0.001255, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 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.001398/0.001398, allocations: 209.8 kB / 24.49 MB, free: 4.133 MB / 14.72 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.387/1.387, allocations: 230.6 MB / 258.3 MB, free: 8.227 MB / 206.1 MB " [Timeout remaining time 178] 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.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.1.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.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 51.92 kB / 379.1 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.244, allocations: 53.36 MB / 432.4 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004216/0.2482, allocations: 2.933 MB / 435.3 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.2495, allocations: 0.7205 MB / 436.1 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.2497, allocations: 11.94 kB / 436.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001926/0.2499, allocations: 59.38 kB / 436.1 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.25, allocations: 91.19 kB / 436.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002517/0.2503, allocations: 87.83 kB / 436.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004098/0.2507, allocations: 378.4 kB / 436.7 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002324/0.2509, allocations: 113.8 kB / 436.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002684/0.2512, allocations: 147.5 kB / 436.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.2514, allocations: 159.3 kB / 437.1 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.492e-05/0.2514, allocations: 36 kB / 437.1 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.966e-05/0.2515, allocations: 32 kB / 437.2 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.882e-05/0.2516, allocations: 71.77 kB / 437.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.2517, allocations: 167.1 kB / 437.4 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004105/0.2521, allocations: 379.7 kB / 437.8 MB, free: 1.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2521, allocations: 3.938 kB / 437.8 MB, free: 1.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2521, allocations: 0 / 437.8 MB, free: 1.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.535e-05/0.2521, allocations: 0 / 437.8 MB, free: 1.547 MB / 334.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.000951/0.2531, allocations: 0.5443 MB / 438.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.2531, allocations: 8.031 kB / 438.3 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.814e-05/0.2532, allocations: 40.7 kB / 438.4 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000361/0.2536, allocations: 206.7 kB / 438.6 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.2536, allocations: 25.03 kB / 438.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.296e-05/0.2536, allocations: 28.38 kB / 438.6 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005076/0.2541, allocations: 282.4 kB / 438.9 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.2542, allocations: 3.938 kB / 438.9 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.2542, allocations: 16 kB / 438.9 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.2542, allocations: 8 kB / 438.9 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004378/0.2546, allocations: 198.5 kB / 439.1 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.2561, allocations: 0.933 MB / 440 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003176/0.2564, allocations: 158.6 kB / 440.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/0.2566, allocations: 68.83 kB / 440.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.2566, allocations: 3.938 kB / 440.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.2567, allocations: 42.55 kB / 440.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.223e-06/0.2567, allocations: 0 / 440.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005479/0.2572, allocations: 216.4 kB / 440.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.2573, allocations: 55.41 kB / 440.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002208/0.2575, allocations: 210.8 kB / 440.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.2575, allocations: 29.7 kB / 440.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.2576, allocations: 192.3 kB / 441 MB, free: 14.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.853e-05/0.2577, allocations: 71.39 kB / 441.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.385e-05/0.2578, allocations: 45.7 kB / 441.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.2579, allocations: 334.8 kB / 441.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.2581, allocations: 59.97 kB / 441.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.2583, allocations: 118 kB / 441.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003928/0.2587, allocations: 197.8 kB / 441.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2587, allocations: 0 / 441.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004633/0.2592, allocations: 249.2 kB / 442 MB, free: 13.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.2592, allocations: 4 kB / 442 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.2592, allocations: 4 kB / 442.1 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.2592, allocations: 0 / 442.1 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002672/0.2595, allocations: 59.91 kB / 442.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.2595, allocations: 7.938 kB / 442.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.2596, allocations: 23.88 kB / 442.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.2596, allocations: 20.05 kB / 442.2 MB, free: 12.89 MB / 350.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.0001372/0.2598, allocations: 141.8 kB / 442.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.637e-05/0.2598, allocations: 23.89 kB / 442.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004194/0.2602, allocations: 199.2 kB / 442.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2602, allocations: 0 / 442.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2603, allocations: 0 / 442.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2603, allocations: 3.938 kB / 442.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003534/0.2606, allocations: 296.5 kB / 442.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2606, allocations: 0 / 442.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002712/0.2609, allocations: 55.91 kB / 442.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2609, allocations: 0 / 442.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.2609, allocations: 4 kB / 442.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.2609, allocations: 0 / 442.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2609, allocations: 0 / 442.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005993/0.2615, allocations: 362.2 kB / 443.2 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.516e-05/0.2615, allocations: 19.8 kB / 443.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.391e-05/0.2616, allocations: 8.062 kB / 443.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.2617, allocations: 15.98 kB / 443.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.2618, allocations: 11.97 kB / 443.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.2618, allocations: 4 kB / 443.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.262, allocations: 152.6 kB / 443.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.262, allocations: 4 kB / 443.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003056/0.2623, allocations: 75.72 kB / 443.5 MB, free: 11.47 MB / 350.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.0001253/0.2624, allocations: 99.25 kB / 443.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004604/0.2629, allocations: 151.8 kB / 443.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2629, allocations: 4 kB / 443.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001573/0.263, allocations: 76.14 kB / 443.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.2633, allocations: 36 kB / 443.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.2647, allocations: 0.8679 MB / 444.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005192/0.2653, allocations: 0.7635 MB / 445.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.42e-05/0.2653, allocations: 23.42 kB / 445.5 MB, free: 9.387 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2653, allocations: 0 / 445.5 MB, free: 9.387 MB / 350.1 MB Notification: Performance of Templates: time 0.005366/0.2707, allocations: 2.928 MB / 448.4 MB, free: 6.473 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.751504892949015]