Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001704/0.001704, allocations: 118.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002049/0.002049, allocations: 201.2 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.606/1.606, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 67.89 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3728/0.3741, allocations: 50.54 MB / 409.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007435/0.3816, allocations: 5.389 MB / 414.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004469/0.3861, allocations: 1.519 MB / 416.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007461/0.3869, allocations: 23.88 kB / 416.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006021/0.3875, allocations: 217.8 kB / 416.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006771/0.3882, allocations: 194 kB / 416.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001182/0.3894, allocations: 419.3 kB / 417 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001359/0.3908, allocations: 1.126 MB / 418.1 MB, free: 8.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008373/0.3916, allocations: 492.2 kB / 418.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006672/0.3923, allocations: 402.3 kB / 419 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005455/0.3929, allocations: 433.5 kB / 419.4 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.393, allocations: 84 kB / 419.5 MB, free: 7.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002797/0.3933, allocations: 108 kB / 419.6 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000197/0.3935, allocations: 211.1 kB / 419.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000485/0.394, allocations: 0.4932 MB / 420.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001344/0.3954, allocations: 1.184 MB / 421.5 MB, free: 5.258 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.437e-06/0.3954, allocations: 0 / 421.5 MB, free: 5.258 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3954, allocations: 3.938 kB / 421.5 MB, free: 5.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.3954, allocations: 0 / 421.5 MB, free: 5.254 MB / 334.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.001923/0.3973, allocations: 1.313 MB / 422.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.3974, allocations: 12.03 kB / 422.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004586/0.3979, allocations: 142.5 kB / 423 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001256/0.3991, allocations: 0.6575 MB / 423.6 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.3993, allocations: 77.94 kB / 423.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/0.3994, allocations: 99.91 kB / 423.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/0.4015, allocations: 1.031 MB / 424.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.805e-05/0.4016, allocations: 7.938 kB / 424.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.595e-05/0.4017, allocations: 44 kB / 424.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.87e-05/0.4017, allocations: 24 kB / 424.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.403, allocations: 0.55 MB / 425.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005931/0.4089, allocations: 5.474 MB / 430.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006513/0.4096, allocations: 248.9 kB / 431.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004216/0.41, allocations: 161.6 kB / 431.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001626/0.4102, allocations: 89.08 kB / 431.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.4103, allocations: 46.44 kB / 431.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.964e-06/0.4103, allocations: 4 kB / 431.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.004867/0.4151, allocations: 1.709 MB / 433.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.4153, allocations: 85.05 kB / 433.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/0.4164, allocations: 0.6373 MB / 433.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.715e-05/0.4164, allocations: 33.7 kB / 433.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006228/0.4171, allocations: 0.6026 MB / 434.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001738/0.4172, allocations: 146 kB / 434.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002561/0.4175, allocations: 138.5 kB / 434.8 MB, free: 7.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002541/0.4178, allocations: 390.7 kB / 435.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003729/0.4182, allocations: 145.9 kB / 435.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006974/0.4189, allocations: 0.4893 MB / 435.8 MB, free: 6.051 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.4201, allocations: 0.7036 MB / 436.5 MB, free: 5.184 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.4202, allocations: 4 kB / 436.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001437/0.4216, allocations: 0.7139 MB / 437.3 MB, free: 4.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.4217, allocations: 12 kB / 437.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.042e-05/0.4217, allocations: 12 kB / 437.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.619e-05/0.4217, allocations: 16.75 kB / 437.3 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000667/0.4224, allocations: 203.6 kB / 437.5 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.878e-05/0.4224, allocations: 23.88 kB / 437.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000387/0.4228, allocations: 35.98 kB / 437.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.79e-05/0.4229, allocations: 39.98 kB / 437.6 MB, free: 4.125 MB / 350.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.0004709/0.4234, allocations: 233.5 kB / 437.8 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.4235, allocations: 75.06 kB / 437.9 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001534/0.4237, allocations: 78.59 kB / 438 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.4237, allocations: 4 kB / 438 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.708e-05/0.4237, allocations: 3.938 kB / 438 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.4238, allocations: 3.984 kB / 438 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002174/0.4259, allocations: 1.315 MB / 439.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.426, allocations: 0 / 439.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004666/0.4264, allocations: 99.86 kB / 439.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.573e-06/0.4265, allocations: 8.094 kB / 439.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.4265, allocations: 19.94 kB / 439.4 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.4265, allocations: 7.938 kB / 439.4 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.4265, allocations: 4 kB / 439.4 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.4276, allocations: 0.7009 MB / 440.1 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.4277, allocations: 144 kB / 440.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.273e-05/0.4278, allocations: 8 kB / 440.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/0.4281, allocations: 31.97 kB / 440.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.042e-05/0.4282, allocations: 23.97 kB / 440.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.4282, allocations: 12 kB / 440.3 MB, free: 1.227 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005659/0.4288, allocations: 427 kB / 440.8 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4288, allocations: 0 / 440.8 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007226/0.4295, allocations: 136 kB / 440.9 MB, free: 0.6836 MB / 350.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.0002243/0.4298, allocations: 115.2 kB / 441 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008646/0.4306, allocations: 437.6 kB / 441.4 MB, free: 140 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4306, allocations: 0 / 441.4 MB, free: 140 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002967/0.4309, allocations: 151.9 kB / 441.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000612/0.4316, allocations: 68.44 kB / 441.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003412/0.435, allocations: 1.657 MB / 443.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008122/0.4358, allocations: 1.004 MB / 444.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002739/0.4361, allocations: 94.05 kB / 444.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.4363, allocations: 67.41 kB / 444.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4363, allocations: 0 / 444.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of Templates: time 0.01415/0.4504, allocations: 5.098 MB / 449.6 MB, free: 7.938 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches