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.0008055/0.0008055, allocations: 80.06 kB / 21.43 MB, free: 3.117 MB / 18.57 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.003176/0.003176, allocations: 138.3 kB / 24.68 MB, free: 9.438 MB / 18.57 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.8162/0.8162, allocations: 173.4 MB / 201.2 MB, free: 9.406 MB / 186.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.463e-06/1.463e-06, allocations: 0 / 319.7 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.384e-05/2.53e-05, allocations: 6.219 kB / 319.7 MB, free: 5.789 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.00383/0.003856, allocations: 4.739 MB / 324.5 MB, free: 1.023 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.005326, allocations: 1.407 MB / 325.9 MB, free: 15.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002262/0.005552, allocations: 35.69 kB / 325.9 MB, free: 15.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002901/0.005843, allocations: 225.7 kB / 326.1 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003099/0.006152, allocations: 201.9 kB / 326.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004446/0.006597, allocations: 411.2 kB / 326.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006561/0.007253, allocations: 1.145 MB / 327.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003341/0.007587, allocations: 316.8 kB / 328.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004078/0.007995, allocations: 0.5807 MB / 328.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002326/0.008228, allocations: 290.9 kB / 329 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.879e-05/0.008297, allocations: 87.94 kB / 329.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.008401, allocations: 99.94 kB / 329.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.53e-05/0.008497, allocations: 215 kB / 329.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001665/0.008663, allocations: 323 kB / 329.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000693/0.009356, allocations: 1.152 MB / 330.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.009359, allocations: 4 kB / 330.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.00936, allocations: 0 / 330.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.009368, allocations: 0 / 330.9 MB, free: 10.54 MB / 298.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.001083/0.01045, allocations: 1.259 MB / 332.2 MB, free: 9.242 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.01048, allocations: 8.031 kB / 332.2 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.01059, allocations: 135.2 kB / 332.3 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005996/0.01119, allocations: 0.5704 MB / 332.9 MB, free: 8.504 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.637e-05/0.01122, allocations: 74 kB / 332.9 MB, free: 8.434 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.431e-05/0.0113, allocations: 96 kB / 333 MB, free: 8.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009526/0.01225, allocations: 1.085 MB / 334.1 MB, free: 7.117 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.01228, allocations: 11.89 kB / 334.1 MB, free: 7.105 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.405e-05/0.01232, allocations: 47.94 kB / 334.2 MB, free: 7.059 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.01233, allocations: 24 kB / 334.2 MB, free: 7.035 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006467/0.01298, allocations: 0.5617 MB / 334.8 MB, free: 6.473 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002633/0.01561, allocations: 5.116 MB / 339.9 MB, free: 1.082 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003154/0.01593, allocations: 221 kB / 340.1 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000186/0.01612, allocations: 153.6 kB / 340.2 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.784e-05/0.01618, allocations: 8 kB / 340.3 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.01621, allocations: 34.56 kB / 340.3 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.623e-06/0.01621, allocations: 0 / 340.3 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.002136/0.01835, allocations: 1.598 MB / 341.9 MB, free: 14.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.01838, allocations: 89.03 kB / 342 MB, free: 14.88 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004558/0.01884, allocations: 0.6449 MB / 342.6 MB, free: 14.22 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.01886, allocations: 33.7 kB / 342.7 MB, free: 14.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002528/0.01911, allocations: 0.62 MB / 343.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.231e-05/0.01919, allocations: 150.8 kB / 343.4 MB, free: 13.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.01929, allocations: 138.5 kB / 343.6 MB, free: 13.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.0194, allocations: 386.7 kB / 343.9 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.01958, allocations: 149.9 kB / 344.1 MB, free: 12.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003205/0.0199, allocations: 497.3 kB / 344.6 MB, free: 12.09 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000538/0.02044, allocations: 0.711 MB / 345.3 MB, free: 11.22 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.02044, allocations: 4 kB / 345.3 MB, free: 11.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006757/0.02112, allocations: 0.7077 MB / 346 MB, free: 10.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.02114, allocations: 12 kB / 346 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.02115, allocations: 12 kB / 346 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.02117, allocations: 16.66 kB / 346 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003285/0.0215, allocations: 199.6 kB / 346.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/0.02151, allocations: 23.92 kB / 346.2 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.02169, allocations: 35.98 kB / 346.3 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/0.02172, allocations: 40 kB / 346.3 MB, free: 10.17 MB / 314.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.0001824/0.0219, allocations: 233.4 kB / 346.5 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.288e-05/0.02196, allocations: 87.42 kB / 346.6 MB, free: 9.844 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.64e-05/0.02203, allocations: 70.56 kB / 346.7 MB, free: 9.773 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.02203, allocations: 4 kB / 346.7 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.02204, allocations: 4 kB / 346.7 MB, free: 9.766 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.02204, allocations: 3.984 kB / 346.7 MB, free: 9.762 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.02309, allocations: 1.118 MB / 347.8 MB, free: 8.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.0231, allocations: 8.156 kB / 347.8 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000221/0.02332, allocations: 107.8 kB / 347.9 MB, free: 8.477 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.02332, allocations: 8 kB / 348 MB, free: 8.469 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.02334, allocations: 11.98 kB / 348 MB, free: 8.457 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.02334, allocations: 0 / 348 MB, free: 8.457 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.02335, allocations: 4 kB / 348 MB, free: 8.453 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005845/0.02393, allocations: 0.7012 MB / 348.7 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/0.02398, allocations: 71.52 kB / 348.7 MB, free: 7.648 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.212e-05/0.02402, allocations: 8 kB / 348.7 MB, free: 7.641 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.02415, allocations: 23.98 kB / 348.8 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.365e-05/0.02421, allocations: 35.88 kB / 348.8 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.02422, allocations: 8 kB / 348.8 MB, free: 7.574 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002797/0.0245, allocations: 419 kB / 349.2 MB, free: 7.172 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0245, allocations: 4 kB / 349.2 MB, free: 7.168 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000364/0.02486, allocations: 140 kB / 349.4 MB, free: 7.031 MB / 314.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 9.936e-05/0.02496, allocations: 111.1 kB / 349.5 MB, free: 6.914 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004532/0.02542, allocations: 428.5 kB / 349.9 MB, free: 6.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.02542, allocations: 0 / 349.9 MB, free: 6.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001545/0.02557, allocations: 144.2 kB / 350 MB, free: 6.359 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003403/0.02591, allocations: 70.98 kB / 350.1 MB, free: 6.285 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.0275, allocations: 1.596 MB / 351.7 MB, free: 4.633 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002554/0.02776, allocations: 413.3 kB / 352.1 MB, free: 4.199 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.02787, allocations: 72.47 kB / 352.2 MB, free: 4.129 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.02787, allocations: 0 / 352.2 MB, free: 4.129 MB / 314.7 MB Notification: Performance of Templates: time 0.007593/0.03546, allocations: 9.656 MB / 361.8 MB, free: 10.46 MB / 330.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.332183877937496]