Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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.0009665/0.0009665, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001497/0.001497, allocations: 167.7 kB / 24.99 MB, free: 8.797 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.9829/0.9829, allocations: 177.1 MB / 205.3 MB, free: 5.648 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.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance") translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 273.1 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.645e-05/2.8e-05, allocations: 2.312 kB / 273.1 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.006686/0.006714, allocations: 2.893 MB / 276 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001728/0.008442, allocations: 0.7048 MB / 276.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.008592, allocations: 4 kB / 276.7 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.008776, allocations: 59.42 kB / 276.7 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001294/0.008905, allocations: 95.08 kB / 276.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002378/0.009143, allocations: 95.8 kB / 276.9 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002949/0.009438, allocations: 390.7 kB / 277.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002164/0.009654, allocations: 116.8 kB / 277.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003074/0.009961, allocations: 231.5 kB / 277.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.0101, allocations: 119.6 kB / 277.8 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.933e-05/0.01013, allocations: 36 kB / 277.8 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.253e-05/0.01017, allocations: 32 kB / 277.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.792e-05/0.01022, allocations: 79.73 kB / 277.9 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.7e-05/0.0103, allocations: 111.8 kB / 278 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.01058, allocations: 251.1 kB / 278.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.01059, allocations: 0 / 278.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.01059, allocations: 0 / 278.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.932e-06/0.0106, allocations: 0 / 278.2 MB, free: 12.64 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.0007049/0.0113, allocations: 0.652 MB / 278.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.01135, allocations: 8.031 kB / 278.9 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.64e-05/0.01144, allocations: 68.7 kB / 279 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.01171, allocations: 204.1 kB / 279.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.01173, allocations: 25.03 kB / 279.2 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.353e-05/0.01177, allocations: 28.38 kB / 279.2 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003221/0.01209, allocations: 282.7 kB / 279.5 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.0121, allocations: 192 / 279.5 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.515e-05/0.01213, allocations: 16.38 kB / 279.5 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.01214, allocations: 11.94 kB / 279.5 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.01231, allocations: 107.9 kB / 279.6 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.01334, allocations: 0.8985 MB / 280.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.01355, allocations: 119.1 kB / 280.7 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.0137, allocations: 79.66 kB / 280.7 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.01372, allocations: 4 kB / 280.7 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.01375, allocations: 45.31 kB / 280.8 MB, free: 9.934 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 2.044e-06/0.01376, allocations: 4 kB / 280.8 MB, free: 9.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=19): time 0.000304/0.01406, allocations: 165 kB / 280.9 MB, free: 9.766 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/0.0141, allocations: 51.41 kB / 281 MB, free: 9.703 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.01424, allocations: 241.6 kB / 281.2 MB, free: 9.449 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.01426, allocations: 29.7 kB / 281.3 MB, free: 9.414 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.88e-05/0.01436, allocations: 251 kB / 281.5 MB, free: 9.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.315e-05/0.0144, allocations: 67.39 kB / 281.6 MB, free: 9.094 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.832e-05/0.01446, allocations: 59.59 kB / 281.6 MB, free: 9.027 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.0146, allocations: 0.5001 MB / 282.1 MB, free: 8.516 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.952e-05/0.01466, allocations: 32.55 kB / 282.2 MB, free: 8.484 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.01477, allocations: 154.3 kB / 282.3 MB, free: 8.289 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.01495, allocations: 192.4 kB / 282.5 MB, free: 8.055 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.01495, allocations: 0 / 282.5 MB, free: 8.055 MB / 266.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002489/0.0152, allocations: 213.2 kB / 282.7 MB, free: 7.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.01522, allocations: 4 kB / 282.7 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.01523, allocations: 4 kB / 282.7 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.01525, allocations: 11.92 kB / 282.7 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.01546, allocations: 67.91 kB / 282.8 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.01547, allocations: 7.938 kB / 282.8 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.979e-05/0.01554, allocations: 28.03 kB / 282.8 MB, free: 7.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.01555, allocations: 16 kB / 282.8 MB, free: 7.703 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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 9.307e-05/0.01564, allocations: 172.5 kB / 283 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.345e-05/0.01568, allocations: 23.86 kB / 283 MB, free: 7.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002004/0.01588, allocations: 143.4 kB / 283.2 MB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.01588, allocations: 8.031 kB / 283.2 MB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.351e-06/0.01589, allocations: 3.938 kB / 283.2 MB, free: 7.344 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.01589, allocations: 3.984 kB / 283.2 MB, free: 7.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004551/0.01635, allocations: 0.5044 MB / 283.7 MB, free: 6.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.01635, allocations: 3.938 kB / 283.7 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.01652, allocations: 56.03 kB / 283.8 MB, free: 6.727 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.01652, allocations: 3.938 kB / 283.8 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.01654, allocations: 11.94 kB / 283.8 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.01654, allocations: 0 / 283.8 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.01654, allocations: 7.984 kB / 283.8 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002959/0.01684, allocations: 346.8 kB / 284.1 MB, free: 6.336 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.159e-05/0.01686, allocations: 23.84 kB / 284.1 MB, free: 6.312 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.01689, allocations: 15.92 kB / 284.2 MB, free: 6.297 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.491e-05/0.01697, allocations: 12 kB / 284.2 MB, free: 6.285 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.639e-05/0.01702, allocations: 19.92 kB / 284.2 MB, free: 6.266 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.01703, allocations: 4 kB / 284.2 MB, free: 6.262 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.102e-05/0.01711, allocations: 175.1 kB / 284.4 MB, free: 6.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01711, allocations: 0 / 284.4 MB, free: 6.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000226/0.01733, allocations: 75.78 kB / 284.4 MB, free: 6.016 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.0001027/0.01744, allocations: 103.2 kB / 284.5 MB, free: 5.906 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001933/0.01763, allocations: 131.7 kB / 284.7 MB, free: 5.773 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.01763, allocations: 0 / 284.7 MB, free: 5.773 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.27e-05/0.01769, allocations: 66.45 kB / 284.7 MB, free: 5.707 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.01794, allocations: 35.98 kB / 284.8 MB, free: 5.672 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.01904, allocations: 0.71 MB / 285.5 MB, free: 4.926 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.588e-05/0.0191, allocations: 87.97 kB / 285.6 MB, free: 4.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.067e-05/0.01916, allocations: 17.94 kB / 285.6 MB, free: 4.801 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.738e-05/0.01921, allocations: 24.48 kB / 285.6 MB, free: 4.773 MB / 266.7 MB Notification: Performance of SimCode: time 1.182e-06/0.01921, allocations: 4 kB / 285.6 MB, free: 4.77 MB / 266.7 MB Notification: Performance of Templates: time 0.004051/0.02326, allocations: 1.837 MB / 287.4 MB, free: 2.969 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.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.049569613998756]