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.001158/0.001158, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001085/0.001085, allocations: 166 kB / 25.61 MB, free: 8.582 MB / 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.951/0.951, allocations: 177.1 MB / 206 MB, free: 4.523 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.803e-06/1.803e-06, allocations: 0 / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.957e-05/3.137e-05, allocations: 6.312 kB / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003777/0.003808, allocations: 2.859 MB / 277.1 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001209/0.005017, allocations: 0.6935 MB / 277.8 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.005176, allocations: 8.5 kB / 277.8 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003103/0.005486, allocations: 64.02 kB / 277.8 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001573/0.005643, allocations: 93.61 kB / 277.9 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.005915, allocations: 91.8 kB / 278 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002805/0.006196, allocations: 390.2 kB / 278.4 MB, free: 216 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000197/0.006393, allocations: 105.8 kB / 278.5 MB, free: 108 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000316/0.006709, allocations: 227.7 kB / 278.7 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001432/0.006852, allocations: 107.7 kB / 278.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.723e-05/0.006889, allocations: 35.94 kB / 278.9 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.271e-05/0.006922, allocations: 32 kB / 278.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.641e-05/0.006968, allocations: 75.73 kB / 279 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.256e-05/0.007051, allocations: 123.7 kB / 279.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.007295, allocations: 247.1 kB / 279.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.0073, allocations: 4 kB / 279.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.007301, allocations: 0 / 279.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.007306, allocations: 4 kB / 279.3 MB, free: 15.26 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.0006231/0.007929, allocations: 0.6363 MB / 280 MB, free: 14.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.007964, allocations: 8.031 kB / 280 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.208e-05/0.008036, allocations: 64.7 kB / 280 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002006/0.008237, allocations: 192.9 kB / 280.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.008257, allocations: 29.03 kB / 280.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.085e-05/0.008298, allocations: 40.34 kB / 280.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002601/0.008558, allocations: 254.7 kB / 280.5 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.008569, allocations: 192 / 280.5 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.008588, allocations: 12.38 kB / 280.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.008597, allocations: 11.94 kB / 280.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.0087, allocations: 84.52 kB / 280.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.00982, allocations: 0.821 MB / 281.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.009977, allocations: 111.1 kB / 281.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.583e-05/0.01002, allocations: 39.67 kB / 281.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.01004, allocations: 0 / 281.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.01007, allocations: 45.38 kB / 281.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.142e-06/0.01007, allocations: 0 / 281.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002305/0.0103, allocations: 143.6 kB / 281.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.146e-05/0.01033, allocations: 55.41 kB / 281.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.01044, allocations: 236.1 kB / 282.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.01045, allocations: 25.7 kB / 282.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.578e-05/0.01055, allocations: 255 kB / 282.4 MB, free: 12.03 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.837e-05/0.01059, allocations: 75.39 kB / 282.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.481e-05/0.01065, allocations: 43.36 kB / 282.5 MB, free: 11.9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.01079, allocations: 0.504 MB / 283 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.617e-05/0.01082, allocations: 19.98 kB / 283 MB, free: 11.37 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.805e-05/0.01089, allocations: 109.7 kB / 283.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.011, allocations: 129.6 kB / 283.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.011, allocations: 0 / 283.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001692/0.01117, allocations: 169.3 kB / 283.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.01118, allocations: 8 kB / 283.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.01119, allocations: 4.125 kB / 283.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.0112, allocations: 7.938 kB / 283.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.01135, allocations: 59.91 kB / 283.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.01135, allocations: 4 kB / 283.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.135e-05/0.01141, allocations: 23.88 kB / 283.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.01142, allocations: 4 kB / 283.5 MB, free: 10.79 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.017e-05/0.0115, allocations: 168.5 kB / 283.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.01153, allocations: 23.91 kB / 283.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001513/0.01168, allocations: 135.3 kB / 283.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.01169, allocations: 11.94 kB / 283.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.01169, allocations: 3.984 kB / 283.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.0117, allocations: 0 / 283.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.01186, allocations: 181 kB / 284 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.01186, allocations: 0 / 284 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.012, allocations: 47.97 kB / 284.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.012, allocations: 0 / 284.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.01201, allocations: 4 kB / 284.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.72e-07/0.01201, allocations: 0 / 284.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01201, allocations: 7.938 kB / 284.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/0.01224, allocations: 318.7 kB / 284.4 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.228e-05/0.01226, allocations: 23.8 kB / 284.4 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.01228, allocations: 3.984 kB / 284.4 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.348e-05/0.01235, allocations: 12 kB / 284.4 MB, free: 9.812 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.541e-05/0.01238, allocations: 11.97 kB / 284.4 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.01239, allocations: 11.94 kB / 284.5 MB, free: 9.789 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.52e-05/0.01246, allocations: 171.1 kB / 284.6 MB, free: 9.621 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01246, allocations: 4 kB / 284.6 MB, free: 9.617 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002169/0.01268, allocations: 75.78 kB / 284.7 MB, free: 9.543 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.0001104/0.01279, allocations: 107.2 kB / 284.8 MB, free: 9.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001417/0.01293, allocations: 95.45 kB / 284.9 MB, free: 9.332 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.01293, allocations: 4 kB / 284.9 MB, free: 9.328 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.813e-05/0.01298, allocations: 51.59 kB / 285 MB, free: 9.273 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.0132, allocations: 27.97 kB / 285 MB, free: 9.246 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009457/0.01414, allocations: 0.6891 MB / 285.7 MB, free: 8.527 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.194e-05/0.01419, allocations: 88.2 kB / 285.8 MB, free: 8.418 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.225e-05/0.01425, allocations: 13.64 kB / 285.8 MB, free: 8.406 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.73e-05/0.01434, allocations: 114.1 kB / 285.9 MB, free: 8.293 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01434, allocations: 4 kB / 285.9 MB, free: 8.289 MB / 266.7 MB Notification: Performance of Templates: time 0.00394/0.01828, allocations: 1.962 MB / 287.8 MB, free: 6.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.778434897772968]