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.000959/0.000959, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001028/0.001028, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.015/1.015, allocations: 177 MB / 204.8 MB, free: 5.559 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 2.875e-06/2.875e-06, allocations: 4 kB / 272.9 MB, free: 1.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.543e-05/2.83e-05, allocations: 9.203 kB / 272.9 MB, free: 1.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003002/0.003031, allocations: 2.898 MB / 275.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.004069, allocations: 0.6932 MB / 276.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.004208, allocations: 11.94 kB / 276.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001741/0.004382, allocations: 59.38 kB / 276.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001334/0.004515, allocations: 95.12 kB / 276.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.004752, allocations: 91.86 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002904/0.005042, allocations: 390.2 kB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.005229, allocations: 109.8 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003175/0.005547, allocations: 227.4 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.005677, allocations: 115.7 kB / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.647e-05/0.005714, allocations: 32 kB / 277.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.229e-05/0.005746, allocations: 32 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.973e-05/0.005786, allocations: 75.73 kB / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.317e-05/0.005869, allocations: 123.7 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002409/0.00611, allocations: 243.1 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.006113, allocations: 0 / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.006114, allocations: 0 / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.006119, allocations: 3.938 kB / 278.1 MB, free: 12.21 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.0006268/0.006746, allocations: 0.6403 MB / 278.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.006782, allocations: 11.98 kB / 278.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.557e-05/0.006858, allocations: 60.7 kB / 278.8 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004708/0.007329, allocations: 208.1 kB / 279 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.007347, allocations: 25.03 kB / 279 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.611e-05/0.007393, allocations: 32.38 kB / 279.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003168/0.00771, allocations: 274.7 kB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.00772, allocations: 192 / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/0.007741, allocations: 12.38 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.007753, allocations: 11.94 kB / 279.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001629/0.007916, allocations: 107.9 kB / 279.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009214/0.008837, allocations: 0.8596 MB / 280.3 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.009006, allocations: 119.1 kB / 280.4 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.348e-05/0.009069, allocations: 47.61 kB / 280.5 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.009088, allocations: 4 kB / 280.5 MB, free: 9.652 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.009112, allocations: 41.39 kB / 280.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.009113, allocations: 0 / 280.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002535/0.009367, allocations: 149.6 kB / 280.7 MB, free: 9.449 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.487e-05/0.009392, allocations: 55.41 kB / 280.7 MB, free: 9.383 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.009528, allocations: 247 kB / 281 MB, free: 9.125 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.009543, allocations: 29.7 kB / 281 MB, free: 9.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.071e-05/0.009633, allocations: 251 kB / 281.2 MB, free: 8.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.441e-05/0.009668, allocations: 63.42 kB / 281.3 MB, free: 8.777 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.095e-05/0.009719, allocations: 51.36 kB / 281.4 MB, free: 8.719 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.00983, allocations: 0.504 MB / 281.9 MB, free: 8.203 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.264e-05/0.009883, allocations: 23.98 kB / 281.9 MB, free: 8.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.479e-05/0.009968, allocations: 105.7 kB / 282 MB, free: 8.047 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.01011, allocations: 145.7 kB / 282.1 MB, free: 7.875 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.01011, allocations: 4 kB / 282.1 MB, free: 7.871 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002065/0.01032, allocations: 185.3 kB / 282.3 MB, free: 7.684 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.01033, allocations: 4 kB / 282.3 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.01034, allocations: 7.938 kB / 282.3 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.01036, allocations: 8.031 kB / 282.3 MB, free: 7.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.01052, allocations: 55.91 kB / 282.4 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.01053, allocations: 7.938 kB / 282.4 MB, free: 7.602 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.284e-05/0.01059, allocations: 23.88 kB / 282.4 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.01061, allocations: 12.12 kB / 282.4 MB, free: 7.566 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.226e-05/0.01069, allocations: 164.5 kB / 282.6 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.273e-05/0.01072, allocations: 31.86 kB / 282.6 MB, free: 7.363 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001938/0.01091, allocations: 139.5 kB / 282.8 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.01092, allocations: 4 kB / 282.8 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.01092, allocations: 0 / 282.8 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.01093, allocations: 3.984 kB / 282.8 MB, free: 7.219 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001943/0.01112, allocations: 216.5 kB / 283 MB, free: 6.973 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.01112, allocations: 4 kB / 283 MB, free: 6.969 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.01127, allocations: 51.91 kB / 283 MB, free: 6.918 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.01127, allocations: 4 kB / 283 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.01129, allocations: 8 kB / 283 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.01129, allocations: 3.938 kB / 283.1 MB, free: 6.902 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.01129, allocations: 0 / 283.1 MB, free: 6.902 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002744/0.01157, allocations: 319.6 kB / 283.4 MB, free: 6.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.434e-05/0.01159, allocations: 27.78 kB / 283.4 MB, free: 6.543 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.01161, allocations: 4 kB / 283.4 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.762e-05/0.01169, allocations: 19.88 kB / 283.4 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.089e-05/0.01173, allocations: 19.97 kB / 283.4 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.01174, allocations: 8 kB / 283.4 MB, free: 6.492 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.381e-05/0.01181, allocations: 167.1 kB / 283.6 MB, free: 6.328 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01181, allocations: 0 / 283.6 MB, free: 6.328 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002198/0.01203, allocations: 75.78 kB / 283.7 MB, free: 6.254 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 8.898e-05/0.01212, allocations: 99.25 kB / 283.8 MB, free: 6.148 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000179/0.0123, allocations: 111.5 kB / 283.9 MB, free: 6.035 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.0123, allocations: 0 / 283.9 MB, free: 6.035 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.838e-05/0.01236, allocations: 59.84 kB / 283.9 MB, free: 5.973 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.01259, allocations: 24 kB / 284 MB, free: 5.949 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.01368, allocations: 0.6997 MB / 284.7 MB, free: 5.223 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.222e-05/0.01373, allocations: 88.14 kB / 284.8 MB, free: 5.113 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.632e-05/0.01379, allocations: 25.62 kB / 284.8 MB, free: 5.09 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.459e-05/0.01383, allocations: 24.48 kB / 284.8 MB, free: 5.066 MB / 266.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01383, allocations: 0 / 284.8 MB, free: 5.066 MB / 266.7 MB Notification: Performance of Templates: time 0.004305/0.01814, allocations: 1.777 MB / 286.6 MB, free: 3.316 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: 3.0404820148833096]