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.001064/0.001064, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001086/0.001086, allocations: 171.9 kB / 24.92 MB, free: 8.723 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.9728/0.9728, allocations: 177.1 MB / 205.3 MB, free: 5.105 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.653e-06/1.653e-06, allocations: 0 / 273.5 MB, free: 1.164 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.414e-05/2.579e-05, allocations: 2.312 kB / 273.5 MB, free: 1.16 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004173/0.004199, allocations: 2.868 MB / 276.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00154/0.005739, allocations: 0.7202 MB / 277.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002148/0.005954, allocations: 4 kB / 277.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002217/0.006175, allocations: 67.36 kB / 277.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002147/0.00639, allocations: 91.12 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.006679, allocations: 91.81 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004173/0.007097, allocations: 390.2 kB / 277.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.007328, allocations: 112.4 kB / 277.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004405/0.007768, allocations: 223.5 kB / 278 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.007951, allocations: 123.7 kB / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.978e-05/0.008001, allocations: 32 kB / 278.2 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.549e-05/0.008046, allocations: 32 kB / 278.2 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.578e-05/0.008112, allocations: 75.67 kB / 278.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.008232, allocations: 119.7 kB / 278.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003967/0.008629, allocations: 247 kB / 278.6 MB, free: 11.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.008632, allocations: 0 / 278.6 MB, free: 11.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.008633, allocations: 0 / 278.6 MB, free: 11.97 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.008643, allocations: 0 / 278.6 MB, free: 11.97 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.0005432/0.009187, allocations: 0.5156 MB / 279.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.009218, allocations: 8.031 kB / 279.1 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.349e-05/0.009281, allocations: 52.89 kB / 279.2 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001787/0.00946, allocations: 169.3 kB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.009478, allocations: 25.03 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.767e-05/0.009515, allocations: 32.36 kB / 279.4 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.009749, allocations: 262.7 kB / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.009759, allocations: 8.125 kB / 279.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.009776, allocations: 16.36 kB / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.009785, allocations: 11.94 kB / 279.7 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.099e-05/0.009876, allocations: 68.56 kB / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007472/0.01062, allocations: 0.6888 MB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000123/0.01075, allocations: 92.89 kB / 280.6 MB, free: 9.922 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.857e-05/0.01078, allocations: 36.83 kB / 280.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.0108, allocations: 4 kB / 280.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.01082, allocations: 38.5 kB / 280.6 MB, free: 9.832 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.172e-06/0.01082, allocations: 0 / 280.6 MB, free: 9.832 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0001543/0.01098, allocations: 105.9 kB / 280.7 MB, free: 9.723 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.01101, allocations: 63.34 kB / 280.8 MB, free: 9.648 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.802e-05/0.01111, allocations: 188.8 kB / 281 MB, free: 9.453 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.01112, allocations: 25.7 kB / 281 MB, free: 9.422 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.596e-05/0.01118, allocations: 184.3 kB / 281.2 MB, free: 9.238 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.481e-05/0.01122, allocations: 67.41 kB / 281.3 MB, free: 9.172 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/0.01127, allocations: 53.67 kB / 281.3 MB, free: 9.113 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.7e-05/0.01134, allocations: 330.8 kB / 281.6 MB, free: 8.781 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.712e-05/0.01137, allocations: 19.98 kB / 281.7 MB, free: 8.762 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.261e-05/0.01142, allocations: 81.89 kB / 281.7 MB, free: 8.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.357e-05/0.01152, allocations: 117.8 kB / 281.8 MB, free: 8.523 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.01152, allocations: 0 / 281.8 MB, free: 8.523 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001317/0.01165, allocations: 137.4 kB / 282 MB, free: 8.383 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.01166, allocations: 7.984 kB / 282 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.01167, allocations: 4 kB / 282 MB, free: 8.371 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.01168, allocations: 0 / 282 MB, free: 8.371 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.01181, allocations: 67.97 kB / 282.1 MB, free: 8.305 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.01182, allocations: 8 kB / 282.1 MB, free: 8.297 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.461e-05/0.01187, allocations: 15.84 kB / 282.1 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.909e-06/0.01188, allocations: 12 kB / 282.1 MB, free: 8.27 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 7.636e-05/0.01196, allocations: 121.8 kB / 282.2 MB, free: 8.141 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.513e-05/0.01198, allocations: 11.98 kB / 282.2 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.0121, allocations: 111.4 kB / 282.3 MB, free: 8.016 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.01211, allocations: 0 / 282.3 MB, free: 8.016 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.01211, allocations: 3.938 kB / 282.3 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.01211, allocations: 0 / 282.3 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.01225, allocations: 157.7 kB / 282.5 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.01226, allocations: 11.92 kB / 282.5 MB, free: 7.828 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.01239, allocations: 51.91 kB / 282.6 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.01239, allocations: 0 / 282.6 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.0124, allocations: 4 kB / 282.6 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.0124, allocations: 4 kB / 282.6 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.0124, allocations: 0 / 282.6 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001734/0.01257, allocations: 235.3 kB / 282.8 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.803e-05/0.01259, allocations: 23.8 kB / 282.8 MB, free: 7.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/0.01261, allocations: 4 kB / 282.8 MB, free: 7.496 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.522e-05/0.01267, allocations: 12 kB / 282.8 MB, free: 7.484 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.015e-05/0.0127, allocations: 15.97 kB / 282.8 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.68e-06/0.01271, allocations: 4 kB / 282.8 MB, free: 7.465 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.705e-05/0.01275, allocations: 52.91 kB / 282.9 MB, free: 7.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01275, allocations: 0 / 282.9 MB, free: 7.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001724/0.01292, allocations: 75.78 kB / 283 MB, free: 7.336 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.088e-05/0.01301, allocations: 84.41 kB / 283.1 MB, free: 7.242 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000115/0.01312, allocations: 103.7 kB / 283.2 MB, free: 7.141 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.01313, allocations: 0 / 283.2 MB, free: 7.141 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.046e-05/0.01317, allocations: 48.77 kB / 283.2 MB, free: 7.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001542/0.01332, allocations: 23.98 kB / 283.2 MB, free: 7.066 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007967/0.01412, allocations: 0.5904 MB / 283.8 MB, free: 6.449 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.931e-05/0.01417, allocations: 96 kB / 283.9 MB, free: 6.328 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.917e-05/0.01422, allocations: 17.62 kB / 283.9 MB, free: 6.312 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.289e-05/0.0143, allocations: 83.36 kB / 284 MB, free: 6.23 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.0143, allocations: 0 / 284 MB, free: 6.23 MB / 266.7 MB Notification: Performance of Templates: time 0.003553/0.01785, allocations: 1.874 MB / 285.9 MB, free: 4.395 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.7646150309592485]