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.001685/0.001685, allocations: 106.2 kB / 19.8 MB, free: 2.5 MB / 14.72 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.002203/0.002203, allocations: 218.2 kB / 23 MB, free: 5.574 MB / 14.72 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.723/1.723, allocations: 230.2 MB / 256.2 MB, free: 8.508 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001961/0.001961, allocations: 63.89 kB / 376.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3051, allocations: 53.33 MB / 429.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004879/0.31, allocations: 2.941 MB / 432.8 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.3117, allocations: 0.7088 MB / 433.5 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002044/0.3119, allocations: 8 kB / 433.5 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000252/0.3122, allocations: 59.44 kB / 433.5 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.3124, allocations: 91.19 kB / 433.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003352/0.3127, allocations: 91.81 kB / 433.7 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004936/0.3132, allocations: 374.4 kB / 434.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002757/0.3135, allocations: 109.4 kB / 434.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000331/0.3138, allocations: 155.5 kB / 434.3 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.314, allocations: 151.3 kB / 434.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.286e-05/0.3141, allocations: 32 kB / 434.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.257e-05/0.3141, allocations: 32 kB / 434.5 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.395e-05/0.3142, allocations: 79.73 kB / 434.6 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.3144, allocations: 167.1 kB / 434.8 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004329/0.3148, allocations: 375.7 kB / 435.2 MB, free: 2.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3148, allocations: 0 / 435.2 MB, free: 2.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3148, allocations: 3.938 kB / 435.2 MB, free: 2.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.3148, allocations: 3.938 kB / 435.2 MB, free: 2.129 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.000987/0.3158, allocations: 0.6157 MB / 435.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.3158, allocations: 8.031 kB / 435.8 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.714e-05/0.3159, allocations: 40.7 kB / 435.8 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004665/0.3164, allocations: 267.8 kB / 436.1 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/0.3164, allocations: 29.03 kB / 436.1 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.84e-05/0.3165, allocations: 32.38 kB / 436.1 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005988/0.3171, allocations: 274.4 kB / 436.4 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.3171, allocations: 0 / 436.4 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.606e-05/0.3171, allocations: 16 kB / 436.4 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.3171, allocations: 8 kB / 436.4 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004979/0.3176, allocations: 202.5 kB / 436.6 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.3193, allocations: 0.9794 MB / 437.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003318/0.3196, allocations: 161.9 kB / 437.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.3198, allocations: 72.83 kB / 437.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.3198, allocations: 0 / 437.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.3198, allocations: 30.56 kB / 437.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.112e-06/0.3198, allocations: 8 kB / 437.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005831/0.3204, allocations: 220.3 kB / 438.1 MB, free: 15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/0.3205, allocations: 55.41 kB / 438.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002256/0.3207, allocations: 210.8 kB / 438.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.3207, allocations: 25.7 kB / 438.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.3209, allocations: 192.4 kB / 438.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.165e-05/0.3209, allocations: 83.31 kB / 438.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-05/0.321, allocations: 45.7 kB / 438.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3212, allocations: 330.8 kB / 439 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.3213, allocations: 55.97 kB / 439.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.3215, allocations: 126 kB / 439.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.3219, allocations: 185.8 kB / 439.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3219, allocations: 4 kB / 439.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004687/0.3224, allocations: 237.2 kB / 439.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3224, allocations: 11.98 kB / 439.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3224, allocations: 4 kB / 439.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.3224, allocations: 4 kB / 439.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002801/0.3227, allocations: 63.84 kB / 439.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.3227, allocations: 8.062 kB / 439.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000146/0.3228, allocations: 27.88 kB / 439.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.3229, allocations: 15.94 kB / 439.7 MB, free: 13.25 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.0001504/0.323, allocations: 137.8 kB / 439.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.396e-05/0.3231, allocations: 19.86 kB / 439.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000426/0.3235, allocations: 191.4 kB / 440.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.3235, allocations: 4 kB / 440.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3235, allocations: 4 kB / 440.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3235, allocations: 0 / 440.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003872/0.3239, allocations: 325.3 kB / 440.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3239, allocations: 0 / 440.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002763/0.3242, allocations: 51.91 kB / 440.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.3242, allocations: 0 / 440.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.3242, allocations: 4 kB / 440.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.3242, allocations: 4 kB / 440.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3242, allocations: 0 / 440.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005967/0.3248, allocations: 357.9 kB / 440.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.815e-05/0.3249, allocations: 100.9 kB / 440.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.3249, allocations: 4.062 kB / 440.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.3251, allocations: 11.98 kB / 440.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.518e-05/0.3251, allocations: 15.98 kB / 440.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.3251, allocations: 8 kB / 441 MB, free: 11.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001466/0.3253, allocations: 152.6 kB / 441.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3253, allocations: 0 / 441.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003366/0.3256, allocations: 71.78 kB / 441.2 MB, free: 11.73 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.0001392/0.3258, allocations: 107.2 kB / 441.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003976/0.3262, allocations: 156 kB / 441.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3262, allocations: 0 / 441.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001577/0.3263, allocations: 71.86 kB / 441.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.3266, allocations: 36.8 kB / 441.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.3281, allocations: 0.8449 MB / 442.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.3285, allocations: 0.7712 MB / 443.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.869e-05/0.3286, allocations: 25.94 kB / 443.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.241e-05/0.3286, allocations: 19.44 kB / 443.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3286, allocations: 0 / 443.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of Templates: time 0.005696/0.3343, allocations: 2.102 MB / 445.3 MB, free: 7.555 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.911566578783095]