Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.001355/0.001355, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001566/0.001566, allocations: 207.5 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.523/1.523, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 43.92 kB / 378.2 MB, free: 2.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2992, allocations: 53.37 MB / 431.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007859/0.3071, allocations: 4.772 MB / 436.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003964/0.311, allocations: 1.469 MB / 437.8 MB, free: 404 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001106/0.3121, allocations: 35.69 kB / 437.9 MB, free: 368 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009473/0.3131, allocations: 225.8 kB / 438.1 MB, free: 140 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001369/0.3145, allocations: 194.1 kB / 438.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.3158, allocations: 423.3 kB / 438.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001952/0.3178, allocations: 1.122 MB / 439.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006312/0.3184, allocations: 332.6 kB / 440.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006573/0.3191, allocations: 426.2 kB / 440.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005084/0.3196, allocations: 437.5 kB / 441 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.3197, allocations: 84 kB / 441.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002276/0.3199, allocations: 100 kB / 441.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000191/0.3201, allocations: 219.1 kB / 441.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003956/0.3205, allocations: 405.7 kB / 441.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001366/0.3219, allocations: 1.192 MB / 443 MB, free: 11.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.3219, allocations: 4 kB / 443 MB, free: 11.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3219, allocations: 0 / 443 MB, free: 11.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.3219, allocations: 0 / 443 MB, free: 11.22 MB / 350.1 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.002116/0.324, allocations: 1.267 MB / 444.3 MB, free: 9.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.3241, allocations: 15.97 kB / 444.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000394/0.3245, allocations: 151.1 kB / 444.4 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.3257, allocations: 0.5782 MB / 445 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.789e-05/0.3258, allocations: 77.94 kB / 445.1 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.3259, allocations: 100 kB / 445.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001812/0.3277, allocations: 1.078 MB / 446.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.229e-05/0.3278, allocations: 7.953 kB / 446.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.837e-05/0.3278, allocations: 44 kB / 446.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.808e-05/0.3279, allocations: 24 kB / 446.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.329, allocations: 0.5578 MB / 446.9 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005202/0.3342, allocations: 5.121 MB / 452 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005929/0.3348, allocations: 221 kB / 452.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003161/0.3351, allocations: 144.3 kB / 452.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001043/0.3352, allocations: 19.98 kB / 452.4 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/0.3353, allocations: 42.44 kB / 452.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.114e-06/0.3353, allocations: 3.938 kB / 452.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003946/0.3392, allocations: 1.583 MB / 454 MB, free: 15.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.446e-05/0.3393, allocations: 89.09 kB / 454.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007813/0.3401, allocations: 0.6603 MB / 454.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.3401, allocations: 33.64 kB / 454.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004825/0.3406, allocations: 0.6162 MB / 455.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.3407, allocations: 154.7 kB / 455.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/0.3409, allocations: 138.6 kB / 455.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.3411, allocations: 382.8 kB / 456.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003181/0.3414, allocations: 153.9 kB / 456.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006106/0.3421, allocations: 0.4931 MB / 456.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.3431, allocations: 0.6905 MB / 457.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.3431, allocations: 8 kB / 457.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001249/0.3444, allocations: 0.7117 MB / 458.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.3444, allocations: 12 kB / 458.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.3444, allocations: 12 kB / 458.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.574e-05/0.3444, allocations: 19.98 kB / 458.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006502/0.3451, allocations: 200.2 kB / 458.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.846e-05/0.3451, allocations: 31.84 kB / 458.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003549/0.3455, allocations: 35.98 kB / 458.4 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/0.3455, allocations: 36 kB / 458.5 MB, free: 10.8 MB / 366.1 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.0003476/0.3459, allocations: 225.5 kB / 458.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.346, allocations: 87.41 kB / 458.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001248/0.3461, allocations: 74.62 kB / 458.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.3461, allocations: 4 kB / 458.8 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.3461, allocations: 3.938 kB / 458.8 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.3462, allocations: 4 kB / 458.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.3482, allocations: 1.136 MB / 460 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3482, allocations: 0 / 460 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004631/0.3486, allocations: 108 kB / 460.1 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.132e-05/0.3487, allocations: 4 kB / 460.1 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.715e-05/0.3487, allocations: 8 kB / 460.1 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.865e-06/0.3487, allocations: 11.92 kB / 460.1 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.3487, allocations: 7.938 kB / 460.1 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.3498, allocations: 0.7014 MB / 460.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.3499, allocations: 67.48 kB / 460.9 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.118e-05/0.35, allocations: 11.94 kB / 460.9 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.3502, allocations: 24.02 kB / 460.9 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.484e-05/0.3503, allocations: 31.89 kB / 460.9 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.3504, allocations: 12 kB / 461 MB, free: 8.191 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005005/0.3509, allocations: 423 kB / 461.4 MB, free: 7.785 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3509, allocations: 0 / 461.4 MB, free: 7.785 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000678/0.3515, allocations: 136 kB / 461.5 MB, free: 7.652 MB / 366.1 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.0001603/0.3517, allocations: 115.1 kB / 461.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008316/0.3525, allocations: 412.8 kB / 462 MB, free: 7.129 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3525, allocations: 0 / 462 MB, free: 7.129 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002835/0.3528, allocations: 153.2 kB / 462.2 MB, free: 6.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.3533, allocations: 75.55 kB / 462.2 MB, free: 6.902 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.3563, allocations: 1.688 MB / 463.9 MB, free: 5.164 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.3568, allocations: 417.3 kB / 464.3 MB, free: 4.727 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002537/0.357, allocations: 98 kB / 464.4 MB, free: 4.629 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/0.3572, allocations: 63.41 kB / 464.5 MB, free: 4.566 MB / 366.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3572, allocations: 0 / 464.5 MB, free: 4.566 MB / 366.1 MB Notification: Performance of Templates: time 0.01382/0.371, allocations: 5.897 MB / 470.4 MB, free: 14.76 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.9293022667989135]