Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006885/0.0006885, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009964/0.001685, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009424/0.0009424, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001315/0.002258, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9955/0.9955, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0868/1.082, allocations: 52.5 MB / 238.3 MB, free: 4.422 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.572e-06/1.572e-06, allocations: 0 / 239.6 MB, free: 3.141 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.512e-05/1.669e-05, allocations: 2.312 kB / 239.6 MB, free: 3.137 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004985/0.005001, allocations: 5.097 MB / 244.7 MB, free: 14.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002658/0.00766, allocations: 1.491 MB / 246.2 MB, free: 12.52 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003948/0.008054, allocations: 31.75 kB / 246.2 MB, free: 12.49 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003213/0.008376, allocations: 233.6 kB / 246.4 MB, free: 12.26 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003701/0.008746, allocations: 221.6 kB / 246.6 MB, free: 12.04 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005818/0.009328, allocations: 395.2 kB / 247 MB, free: 11.65 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000743/0.01007, allocations: 1.118 MB / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000368/0.01044, allocations: 336.8 kB / 248.5 MB, free: 10.17 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007953/0.01123, allocations: 0.632 MB / 249.1 MB, free: 9.539 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.01148, allocations: 294.9 kB / 249.4 MB, free: 9.25 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.426e-05/0.01155, allocations: 84 kB / 249.5 MB, free: 9.168 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000162/0.01171, allocations: 92 kB / 249.6 MB, free: 9.078 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.422e-05/0.01181, allocations: 163.2 kB / 249.7 MB, free: 8.918 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001821/0.01199, allocations: 263.3 kB / 250 MB, free: 8.66 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006218/0.01261, allocations: 0.7349 MB / 250.7 MB, free: 7.922 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.754e-05/0.01263, allocations: 0 / 250.7 MB, free: 7.922 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.01263, allocations: 0 / 250.7 MB, free: 7.922 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.121e-05/0.01265, allocations: 0 / 250.7 MB, free: 7.922 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001218/0.01387, allocations: 1.469 MB / 252.2 MB, free: 6.422 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.0139, allocations: 8.031 kB / 252.2 MB, free: 6.414 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.01404, allocations: 159.9 kB / 252.3 MB, free: 6.258 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005758/0.01462, allocations: 0.5354 MB / 252.9 MB, free: 5.691 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.351e-05/0.01466, allocations: 74 kB / 253 MB, free: 5.621 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-05/0.01474, allocations: 99.95 kB / 253.1 MB, free: 5.523 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008085/0.01555, allocations: 1.004 MB / 254.1 MB, free: 4.359 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.422e-05/0.01557, allocations: 3.938 kB / 254.1 MB, free: 4.355 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.167e-05/0.01561, allocations: 44 kB / 254.1 MB, free: 4.312 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.01563, allocations: 32 kB / 254.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004319/0.01606, allocations: 301.3 kB / 254.4 MB, free: 3.984 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002878/0.01894, allocations: 4.8 MB / 259.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002558/0.0192, allocations: 164.7 kB / 259.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.01931, allocations: 95.06 kB / 259.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.775e-05/0.01938, allocations: 8 kB / 259.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.0194, allocations: 42.56 kB / 259.5 MB, free: 14.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 1.904e-06/0.0194, allocations: 0 / 259.5 MB, free: 14.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001889/0.02129, allocations: 1.089 MB / 260.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.02133, allocations: 85.05 kB / 260.7 MB, free: 13.35 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003608/0.02169, allocations: 0.601 MB / 261.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.02171, allocations: 37.7 kB / 261.3 MB, free: 12.69 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.02192, allocations: 0.5275 MB / 261.9 MB, free: 12.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.03e-05/0.02199, allocations: 158.7 kB / 262 MB, free: 12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.833e-05/0.02209, allocations: 134.5 kB / 262.2 MB, free: 11.86 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.0222, allocations: 394.6 kB / 262.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.996e-05/0.02226, allocations: 57.97 kB / 262.6 MB, free: 11.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000533/0.02279, allocations: 413.3 kB / 263 MB, free: 10.85 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003586/0.02315, allocations: 0.5652 MB / 263.6 MB, free: 10.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.02315, allocations: 4 kB / 263.6 MB, free: 10.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0004072/0.02356, allocations: 473.9 kB / 264 MB, free: 9.648 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.02358, allocations: 14.66 kB / 264 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.0236, allocations: 12 kB / 264.1 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.02361, allocations: 16 kB / 264.1 MB, free: 9.609 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004167/0.02403, allocations: 234.2 kB / 264.3 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.02404, allocations: 23.92 kB / 264.3 MB, free: 9.363 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.02421, allocations: 31.98 kB / 264.4 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.02423, allocations: 32 kB / 264.4 MB, free: 9.301 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * 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.0001443/0.02438, allocations: 165.4 kB / 264.6 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.677e-05/0.02444, allocations: 59.94 kB / 264.6 MB, free: 9.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.933e-05/0.02452, allocations: 74.55 kB / 264.7 MB, free: 8.992 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.02453, allocations: 4 kB / 264.7 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.02454, allocations: 4 kB / 264.7 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.02454, allocations: 4 kB / 264.7 MB, free: 8.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.02555, allocations: 0.7861 MB / 265.5 MB, free: 8.152 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.02555, allocations: 3.938 kB / 265.5 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002771/0.02583, allocations: 124 kB / 265.6 MB, free: 8.027 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.02588, allocations: 67.47 kB / 265.7 MB, free: 7.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.02588, allocations: 4 kB / 265.7 MB, free: 7.957 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.0259, allocations: 12 kB / 265.7 MB, free: 7.945 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.02591, allocations: 7.938 kB / 265.7 MB, free: 7.938 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.02591, allocations: 0 / 265.7 MB, free: 7.938 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003243/0.02623, allocations: 470.6 kB / 266.2 MB, free: 7.445 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.471e-05/0.02627, allocations: 12 kB / 266.2 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.0264, allocations: 27.92 kB / 266.2 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.02644, allocations: 27.95 kB / 266.2 MB, free: 7.379 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.02646, allocations: 15.92 kB / 266.2 MB, free: 7.363 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001853/0.02664, allocations: 268.5 kB / 266.5 MB, free: 7.102 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02664, allocations: 0 / 266.5 MB, free: 7.102 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003796/0.02702, allocations: 136 kB / 266.6 MB, free: 6.969 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * 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.00012/0.02714, allocations: 96.28 kB / 266.7 MB, free: 6.867 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000276/0.02742, allocations: 285 kB / 267 MB, free: 6.586 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.151e-05/0.02744, allocations: 12.5 kB / 267 MB, free: 6.574 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.367e-05/0.02752, allocations: 96.66 kB / 267.1 MB, free: 6.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.02784, allocations: 122.9 kB / 267.2 MB, free: 6.363 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003398/0.03124, allocations: 1.685 MB / 268.9 MB, free: 4.621 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001165/0.03136, allocations: 186.4 kB / 269.1 MB, free: 4.418 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001669/0.03152, allocations: 94.02 kB / 269.2 MB, free: 4.324 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.0317, allocations: 167.2 kB / 269.4 MB, free: 4.16 MB / 266.7 MB Notification: Performance of SimCode: time 1.242e-06/0.0317, allocations: 0 / 269.4 MB, free: 4.16 MB / 266.7 MB Notification: Performance of Templates: time 0.009974/0.04168, allocations: 5.343 MB / 274.7 MB, free: 14.91 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.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.57858164049685]