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.001351/0.001351, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001586/0.001586, allocations: 161 kB / 24.56 MB, free: 16 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 0.9864/0.9864, allocations: 177.1 MB / 205 MB, free: 5.625 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.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 1.733e-06/1.733e-06, allocations: 0 / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.232e-05/2.406e-05, allocations: 2.312 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003245/0.003269, allocations: 2.908 MB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.004466, allocations: 0.6854 MB / 276.6 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.004634, allocations: 8 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002079/0.004842, allocations: 63.36 kB / 276.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001672/0.005009, allocations: 99.12 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002913/0.005301, allocations: 87.81 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003877/0.005688, allocations: 394.2 kB / 277.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.005902, allocations: 101.8 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003711/0.006273, allocations: 235.5 kB / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.006407, allocations: 107.7 kB / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.033e-05/0.006447, allocations: 35.94 kB / 277.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.397e-05/0.006481, allocations: 32 kB / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.313e-05/0.006524, allocations: 75.73 kB / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.621e-05/0.006611, allocations: 119.7 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.00689, allocations: 247.1 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.006894, allocations: 0 / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.006895, allocations: 0 / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.006902, allocations: 4 kB / 278.2 MB, free: 12.34 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.0006613/0.007563, allocations: 0.6364 MB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.007603, allocations: 8.031 kB / 278.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.849e-05/0.007691, allocations: 60.7 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.007964, allocations: 200.1 kB / 279.1 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.00799, allocations: 29.03 kB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.696e-05/0.008037, allocations: 36.36 kB / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/0.008369, allocations: 270.7 kB / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.00838, allocations: 4.188 kB / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.008401, allocations: 12.38 kB / 279.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.008414, allocations: 11.94 kB / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.008584, allocations: 103.9 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000989/0.009573, allocations: 0.8674 MB / 280.4 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001802/0.009753, allocations: 111.1 kB / 280.5 MB, free: 9.844 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.526e-05/0.009819, allocations: 47.66 kB / 280.5 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.009834, allocations: 4 kB / 280.5 MB, free: 9.789 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.009861, allocations: 41.39 kB / 280.6 MB, free: 9.738 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 2.204e-06/0.009863, allocations: 0 / 280.6 MB, free: 9.738 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002602/0.01012, allocations: 151.8 kB / 280.7 MB, free: 9.586 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.965e-05/0.01015, allocations: 59.41 kB / 280.8 MB, free: 9.516 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.0103, allocations: 244 kB / 281 MB, free: 9.262 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.01031, allocations: 29.7 kB / 281 MB, free: 9.227 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.672e-05/0.01041, allocations: 247 kB / 281.3 MB, free: 8.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.762e-05/0.01045, allocations: 67.42 kB / 281.4 MB, free: 8.914 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.588e-05/0.0105, allocations: 55.36 kB / 281.4 MB, free: 8.852 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.01062, allocations: 0.4962 MB / 281.9 MB, free: 8.344 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.912e-05/0.01068, allocations: 27.97 kB / 281.9 MB, free: 8.316 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.59e-05/0.01077, allocations: 109.7 kB / 282 MB, free: 8.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001462/0.01091, allocations: 149.6 kB / 282.2 MB, free: 8.004 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.01092, allocations: 4 kB / 282.2 MB, free: 8 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002133/0.01113, allocations: 185.3 kB / 282.4 MB, free: 7.812 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.01114, allocations: 8 kB / 282.4 MB, free: 7.805 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.01115, allocations: 3.938 kB / 282.4 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.01116, allocations: 4 kB / 282.4 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.01133, allocations: 55.91 kB / 282.4 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.01134, allocations: 8.125 kB / 282.5 MB, free: 7.734 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.342e-05/0.0114, allocations: 19.89 kB / 282.5 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.01141, allocations: 12 kB / 282.5 MB, free: 7.703 MB / 266.7 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 8.892e-05/0.0115, allocations: 164.5 kB / 282.6 MB, free: 7.531 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.162e-05/0.01153, allocations: 27.86 kB / 282.7 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001944/0.01173, allocations: 147.3 kB / 282.8 MB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.01173, allocations: 0 / 282.8 MB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.01173, allocations: 0 / 282.8 MB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.01174, allocations: 0 / 282.8 MB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001899/0.01193, allocations: 220.5 kB / 283 MB, free: 7.105 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.01193, allocations: 8 kB / 283 MB, free: 7.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.01208, allocations: 43.97 kB / 283.1 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.01208, allocations: 0 / 283.1 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.581e-05/0.01209, allocations: 8 kB / 283.1 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.0121, allocations: 11.86 kB / 283.1 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.0121, allocations: 3.938 kB / 283.1 MB, free: 7.031 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002612/0.01236, allocations: 323 kB / 283.4 MB, free: 6.699 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.008e-05/0.01238, allocations: 19.8 kB / 283.4 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.0124, allocations: 8 kB / 283.4 MB, free: 6.672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.897e-05/0.01248, allocations: 23.92 kB / 283.5 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.829e-05/0.01252, allocations: 11.98 kB / 283.5 MB, free: 6.637 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.01253, allocations: 7.984 kB / 283.5 MB, free: 6.629 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.115e-05/0.01261, allocations: 167.3 kB / 283.7 MB, free: 6.465 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01261, allocations: 0 / 283.7 MB, free: 6.465 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00022/0.01283, allocations: 79.78 kB / 283.7 MB, free: 6.387 MB / 266.7 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 9.033e-05/0.01292, allocations: 107.2 kB / 283.8 MB, free: 6.273 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001804/0.0131, allocations: 107.5 kB / 283.9 MB, free: 6.164 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.0131, allocations: 0 / 283.9 MB, free: 6.164 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.843e-05/0.01316, allocations: 59.59 kB / 284 MB, free: 6.102 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002165/0.01338, allocations: 28.05 kB / 284 MB, free: 6.074 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.01441, allocations: 0.6878 MB / 284.7 MB, free: 5.359 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.65e-05/0.01447, allocations: 100 kB / 284.8 MB, free: 5.238 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.173e-05/0.01452, allocations: 13.64 kB / 284.8 MB, free: 5.227 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.726e-05/0.01457, allocations: 20.5 kB / 284.8 MB, free: 5.207 MB / 266.7 MB Notification: Performance of SimCode: time 7.92e-07/0.01457, allocations: 0 / 284.8 MB, free: 5.207 MB / 266.7 MB Notification: Performance of Templates: time 0.003953/0.01852, allocations: 1.875 MB / 286.7 MB, free: 3.363 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.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: 2.8576035699807107]