Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001057/0.001057, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001543/0.001543, allocations: 160.4 kB / 24.99 MB, free: 8.219 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.01/1.01, allocations: 177 MB / 205.2 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 273 MB, free: 1.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.586e-05/1.715e-05, allocations: 5.266 kB / 273 MB, free: 1.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003029/0.003046, allocations: 2.886 MB / 275.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001008/0.004054, allocations: 0.6971 MB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.004188, allocations: 11.94 kB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.004357, allocations: 59.36 kB / 276.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.004492, allocations: 95.14 kB / 276.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.004723, allocations: 87.86 kB / 276.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002968/0.00502, allocations: 390.2 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.005213, allocations: 109.8 kB / 277.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003097/0.005523, allocations: 235.4 kB / 277.6 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.005649, allocations: 107.7 kB / 277.7 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.482e-05/0.005684, allocations: 32 kB / 277.7 MB, free: 13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.034e-05/0.005714, allocations: 32 kB / 277.7 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.532e-05/0.005759, allocations: 79.67 kB / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.032e-05/0.00584, allocations: 119.7 kB / 277.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.006072, allocations: 247.1 kB / 278.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.006074, allocations: 0 / 278.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.006076, allocations: 4 kB / 278.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.006081, allocations: 0 / 278.2 MB, free: 12.53 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.0006198/0.006701, allocations: 0.6364 MB / 278.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.006737, allocations: 11.98 kB / 278.8 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.437e-05/0.006822, allocations: 68.7 kB / 278.9 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.00705, allocations: 200.1 kB / 279.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.00707, allocations: 29.03 kB / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.305e-05/0.007113, allocations: 36.36 kB / 279.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003236/0.007437, allocations: 266.8 kB / 279.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.007446, allocations: 8.188 kB / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.007467, allocations: 8.375 kB / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.007479, allocations: 15.88 kB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.007657, allocations: 103.9 kB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009413/0.008599, allocations: 0.8712 MB / 280.4 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001801/0.008779, allocations: 115.2 kB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.25e-05/0.008851, allocations: 50.78 kB / 280.6 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.008869, allocations: 0 / 280.6 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.008896, allocations: 45.33 kB / 280.6 MB, free: 9.914 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.152e-06/0.008897, allocations: 0 / 280.6 MB, free: 9.914 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002562/0.009154, allocations: 141.7 kB / 280.7 MB, free: 9.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.73e-05/0.009181, allocations: 59.41 kB / 280.8 MB, free: 9.699 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.009326, allocations: 255 kB / 281.1 MB, free: 9.434 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.00934, allocations: 25.7 kB / 281.1 MB, free: 9.402 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.079e-05/0.009431, allocations: 243 kB / 281.3 MB, free: 9.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.49e-05/0.009465, allocations: 67.42 kB / 281.4 MB, free: 9.094 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002696/0.009735, allocations: 51.36 kB / 281.4 MB, free: 9.035 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.009841, allocations: 0.4962 MB / 281.9 MB, free: 8.527 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.687e-05/0.009898, allocations: 31.97 kB / 282 MB, free: 8.496 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.592e-05/0.009984, allocations: 105.7 kB / 282.1 MB, free: 8.363 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001409/0.01012, allocations: 137.7 kB / 282.2 MB, free: 8.199 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.01013, allocations: 0 / 282.2 MB, free: 8.199 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002094/0.01034, allocations: 185.3 kB / 282.4 MB, free: 8.012 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.01035, allocations: 11.98 kB / 282.4 MB, free: 8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.01036, allocations: 7.875 kB / 282.4 MB, free: 7.992 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.01037, allocations: 4 kB / 282.4 MB, free: 7.988 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.01054, allocations: 56.03 kB / 282.5 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.01054, allocations: 8 kB / 282.5 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.733e-05/0.01061, allocations: 19.89 kB / 282.5 MB, free: 7.906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.01062, allocations: 12 kB / 282.5 MB, free: 7.895 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 0.0001058/0.01073, allocations: 164.5 kB / 282.7 MB, free: 7.723 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.276e-05/0.01076, allocations: 27.86 kB / 282.7 MB, free: 7.695 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000204/0.01097, allocations: 144 kB / 282.8 MB, free: 7.551 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.01097, allocations: 0 / 282.8 MB, free: 7.551 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.01097, allocations: 0 / 282.8 MB, free: 7.551 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.01098, allocations: 0 / 282.8 MB, free: 7.551 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.01117, allocations: 228.5 kB / 283 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.01117, allocations: 0 / 283 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001496/0.01132, allocations: 47.91 kB / 283.1 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.01132, allocations: 0 / 283.1 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.01134, allocations: 8 kB / 283.1 MB, free: 7.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.125e-06/0.01134, allocations: 7.938 kB / 283.1 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01134, allocations: 0 / 283.1 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.01162, allocations: 330.8 kB / 283.4 MB, free: 6.891 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.201e-05/0.01164, allocations: 19.8 kB / 283.5 MB, free: 6.871 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.01166, allocations: 8 kB / 283.5 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.802e-05/0.01174, allocations: 23.92 kB / 283.5 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.86e-05/0.01179, allocations: 11.98 kB / 283.5 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.0118, allocations: 7.984 kB / 283.5 MB, free: 6.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.41e-05/0.01188, allocations: 163.2 kB / 283.7 MB, free: 6.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.01188, allocations: 0 / 283.7 MB, free: 6.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002317/0.01211, allocations: 79.78 kB / 283.7 MB, free: 6.582 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 0.0001008/0.01222, allocations: 99.45 kB / 283.8 MB, free: 6.477 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001923/0.01241, allocations: 115.4 kB / 284 MB, free: 6.359 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.01241, allocations: 7.938 kB / 284 MB, free: 6.352 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.004e-05/0.01247, allocations: 55.59 kB / 284 MB, free: 6.293 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.01269, allocations: 27.92 kB / 284 MB, free: 6.266 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.01379, allocations: 0.704 MB / 284.7 MB, free: 5.535 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.138e-05/0.01385, allocations: 96.19 kB / 284.8 MB, free: 5.418 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.755e-05/0.01391, allocations: 13.64 kB / 284.9 MB, free: 5.406 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.181e-05/0.01395, allocations: 20.5 kB / 284.9 MB, free: 5.387 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.01395, allocations: 0 / 284.9 MB, free: 5.387 MB / 266.7 MB Notification: Performance of Templates: time 0.003713/0.01766, allocations: 1.773 MB / 286.6 MB, free: 3.637 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.8144257441163063]