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.0009875/0.0009875, allocations: 78.28 kB / 21.42 MB, free: 3.078 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.0008797/0.0008797, allocations: 150.3 kB / 24.81 MB, free: 9.285 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.9698/0.9698, allocations: 173.3 MB / 201.4 MB, free: 9.184 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.503e-06/1.503e-06, allocations: 0 / 268.4 MB, free: 6.141 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.308e-05/1.458e-05, allocations: 2.312 kB / 268.4 MB, free: 6.137 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004569/0.004583, allocations: 5.031 MB / 273.5 MB, free: 1.082 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.006641, allocations: 1.41 MB / 274.9 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003089/0.00695, allocations: 35.69 kB / 274.9 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003554/0.007306, allocations: 217.8 kB / 275.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00044/0.007745, allocations: 217.7 kB / 275.3 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006169/0.008362, allocations: 411.2 kB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008451/0.009208, allocations: 1.149 MB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003915/0.009599, allocations: 316.8 kB / 277.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005563/0.01016, allocations: 0.5924 MB / 277.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002507/0.01041, allocations: 298.9 kB / 278.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.23e-05/0.01049, allocations: 84 kB / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001297/0.01062, allocations: 95.88 kB / 278.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.01073, allocations: 223 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001905/0.01092, allocations: 319 kB / 278.8 MB, free: 11.72 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005941/0.01151, allocations: 0.7739 MB / 279.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.01151, allocations: 4 kB / 279.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.82e-07/0.01152, allocations: 0 / 279.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.01152, allocations: 0 / 279.6 MB, free: 10.94 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001096/0.01262, allocations: 1.363 MB / 280.9 MB, free: 9.535 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.01265, allocations: 16.03 kB / 280.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001572/0.01281, allocations: 215.1 kB / 281.2 MB, free: 9.309 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000576/0.01338, allocations: 0.6083 MB / 281.8 MB, free: 8.672 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.097e-05/0.01342, allocations: 74 kB / 281.8 MB, free: 8.598 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.048e-05/0.01351, allocations: 99.98 kB / 281.9 MB, free: 8.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008276/0.01433, allocations: 0.9912 MB / 282.9 MB, free: 7.328 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.01436, allocations: 15.88 kB / 282.9 MB, free: 7.312 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.418e-05/0.0144, allocations: 44 kB / 283 MB, free: 7.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.01441, allocations: 24 kB / 283 MB, free: 7.246 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003764/0.01479, allocations: 333.2 kB / 283.3 MB, free: 6.922 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.116/0.1308, allocations: 6.737 MB / 290.1 MB, free: 29.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003713/0.1312, allocations: 175.5 kB / 290.2 MB, free: 29.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.1314, allocations: 109.1 kB / 290.3 MB, free: 29.69 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.792e-05/0.1314, allocations: 13.17 kB / 290.4 MB, free: 29.69 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.1315, allocations: 46.75 kB / 290.4 MB, free: 29.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 2.174e-06/0.1315, allocations: 0.5 kB / 290.4 MB, free: 29.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001947/0.1334, allocations: 1.039 MB / 291.4 MB, free: 29.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.104e-05/0.1334, allocations: 86.28 kB / 291.5 MB, free: 29.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004518/0.1339, allocations: 0.6582 MB / 292.2 MB, free: 29.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.1339, allocations: 30.67 kB / 292.2 MB, free: 29.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002407/0.1341, allocations: 0.6658 MB / 292.9 MB, free: 28.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.947e-05/0.1342, allocations: 156.7 kB / 293 MB, free: 28.53 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.1343, allocations: 139.4 kB / 293.2 MB, free: 28.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1344, allocations: 0.5651 MB / 293.7 MB, free: 28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.482e-05/0.1345, allocations: 62.73 kB / 293.8 MB, free: 28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.1347, allocations: 0.5572 MB / 294.3 MB, free: 27.37 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/0.1351, allocations: 0.695 MB / 295 MB, free: 26.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.1351, allocations: 3.25 kB / 295 MB, free: 26.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0005307/0.1356, allocations: 0.5744 MB / 295.6 MB, free: 26.65 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.1356, allocations: 13.44 kB / 295.6 MB, free: 26.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.1356, allocations: 11.97 kB / 295.6 MB, free: 26.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.1357, allocations: 17.41 kB / 295.7 MB, free: 26.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003302/0.136, allocations: 195.7 kB / 295.9 MB, free: 26.63 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.73e-05/0.136, allocations: 23.42 kB / 295.9 MB, free: 26.63 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/0.1362, allocations: 32.52 kB / 295.9 MB, free: 26.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.045e-05/0.1362, allocations: 34.31 kB / 295.9 MB, free: 26.62 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.0001231/0.1363, allocations: 212.1 kB / 296.2 MB, free: 26.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.338e-05/0.1364, allocations: 89.88 kB / 296.2 MB, free: 26.4 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.283e-05/0.1365, allocations: 75.77 kB / 296.3 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.1365, allocations: 4.781 kB / 296.3 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1365, allocations: 1.906 kB / 296.3 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.1365, allocations: 2.969 kB / 296.3 MB, free: 26.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009065/0.1374, allocations: 1.009 MB / 297.3 MB, free: 25.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1374, allocations: 2.031 kB / 297.3 MB, free: 25.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002121/0.1376, allocations: 102.5 kB / 297.4 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.1376, allocations: 4.062 kB / 297.4 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.1376, allocations: 10.33 kB / 297.4 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.1376, allocations: 7.094 kB / 297.5 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1376, allocations: 2.625 kB / 297.5 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003416/0.138, allocations: 0.6272 MB / 298.1 MB, free: 25.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.948e-05/0.138, allocations: 69.66 kB / 298.2 MB, free: 25.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.1381, allocations: 8.234 kB / 298.2 MB, free: 25.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.1382, allocations: 21.84 kB / 298.2 MB, free: 25.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.779e-05/0.1382, allocations: 32 kB / 298.2 MB, free: 25.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.1382, allocations: 13.12 kB / 298.2 MB, free: 25.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002215/0.1385, allocations: 383 kB / 298.6 MB, free: 25.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1385, allocations: 0 / 298.6 MB, free: 25.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004071/0.1389, allocations: 145.3 kB / 298.7 MB, free: 25.27 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 6.843e-05/0.1389, allocations: 106.1 kB / 298.8 MB, free: 25.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000317/0.1393, allocations: 305.2 kB / 299.1 MB, free: 25.12 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1393, allocations: 0 / 299.1 MB, free: 25.12 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.906e-05/0.1394, allocations: 108.6 kB / 299.2 MB, free: 25.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.1397, allocations: 74.27 kB / 299.3 MB, free: 25.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/0.1413, allocations: 1.559 MB / 300.9 MB, free: 24.19 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001228/0.1415, allocations: 165.3 kB / 301 MB, free: 24.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000174/0.1416, allocations: 95.16 kB / 301.1 MB, free: 24.09 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001946/0.1418, allocations: 197.7 kB / 301.3 MB, free: 24.03 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.1418, allocations: 0 / 301.3 MB, free: 24.03 MB / 266.7 MB Notification: Performance of Templates: time 0.008698/0.1505, allocations: 5.085 MB / 306.4 MB, free: 22.58 MB / 266.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 -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.7591684916988015]