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.001621/0.001621, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001912/0.001912, allocations: 212.1 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 63.52 kB / 307.6 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1214, allocations: 50.53 MB / 358.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006891/0.1283, allocations: 5.391 MB / 363.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003376/0.1317, allocations: 1.527 MB / 365.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008306/0.1326, allocations: 27.81 kB / 365.1 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007235/0.1334, allocations: 217.8 kB / 365.3 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.1344, allocations: 190 kB / 365.5 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.1355, allocations: 415.3 kB / 365.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001187/0.1367, allocations: 1.123 MB / 367 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006337/0.1373, allocations: 488.2 kB / 367.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004619/0.1378, allocations: 406.3 kB / 367.9 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000373/0.1382, allocations: 429.5 kB / 368.3 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.1383, allocations: 84 kB / 368.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001893/0.1385, allocations: 100 kB / 368.5 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.1386, allocations: 207.1 kB / 368.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003842/0.139, allocations: 0.5009 MB / 369.2 MB, free: 2.992 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009598/0.14, allocations: 1.129 MB / 370.3 MB, free: 1.859 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.14, allocations: 4 kB / 370.3 MB, free: 1.855 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.14, allocations: 0 / 370.3 MB, free: 1.855 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.1401, allocations: 0 / 370.3 MB, free: 1.855 MB / 302.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.001742/0.1418, allocations: 1.317 MB / 371.6 MB, free: 496 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.1418, allocations: 12.03 kB / 371.7 MB, free: 484 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003491/0.1422, allocations: 142.4 kB / 371.8 MB, free: 340 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1637/0.306, allocations: 0.6137 MB / 372.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.223e-05/0.3061, allocations: 76.03 kB / 372.5 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.3062, allocations: 100.9 kB / 372.6 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/0.3079, allocations: 1.028 MB / 373.6 MB, free: 19.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.153e-05/0.3079, allocations: 10.81 kB / 373.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.234e-05/0.308, allocations: 42.58 kB / 373.7 MB, free: 19.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.82e-05/0.3081, allocations: 26.16 kB / 373.7 MB, free: 19.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.3092, allocations: 0.5609 MB / 374.2 MB, free: 19.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005119/0.3144, allocations: 5.52 MB / 379.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008452/0.3153, allocations: 232.2 kB / 380 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004352/0.3157, allocations: 162.1 kB / 380.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002066/0.3159, allocations: 86.67 kB / 380.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.316, allocations: 36.8 kB / 380.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.136e-06/0.316, allocations: 1.188 kB / 380.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.005653/0.3216, allocations: 1.716 MB / 382 MB, free: 13.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.3217, allocations: 81.88 kB / 382.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.3228, allocations: 0.6434 MB / 382.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.3228, allocations: 32.36 kB / 382.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004238/0.3233, allocations: 0.6023 MB / 383.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.3234, allocations: 147.2 kB / 383.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000246/0.3237, allocations: 139.5 kB / 383.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.3238, allocations: 383 kB / 384 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005012/0.3243, allocations: 155.9 kB / 384.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006822/0.325, allocations: 0.4903 MB / 384.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001189/0.3262, allocations: 0.6992 MB / 385.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.423e-06/0.3262, allocations: 3.5 kB / 385.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001799/0.3281, allocations: 0.7165 MB / 386.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/0.3281, allocations: 14.5 kB / 386.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.847e-05/0.3281, allocations: 12.38 kB / 386.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.037e-05/0.3282, allocations: 16.5 kB / 386.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009895/0.3292, allocations: 198 kB / 386.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.226e-05/0.3292, allocations: 22.66 kB / 386.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005977/0.3299, allocations: 33.45 kB / 386.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-05/0.3299, allocations: 37.05 kB / 386.4 MB, free: 10.45 MB / 302.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.0003811/0.3303, allocations: 241.8 kB / 386.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/0.3305, allocations: 75.16 kB / 386.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.3307, allocations: 80.89 kB / 386.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.3307, allocations: 5.219 kB / 386.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/0.3307, allocations: 1.156 kB / 386.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.3308, allocations: 1.641 kB / 386.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003242/0.334, allocations: 1.333 MB / 388.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.334, allocations: 1.344 kB / 388.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007576/0.3348, allocations: 99.45 kB / 388.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.319e-05/0.3348, allocations: 3.344 kB / 388.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.601e-05/0.3349, allocations: 13.97 kB / 388.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.237e-06/0.3349, allocations: 4.469 kB / 388.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3349, allocations: 1.5 kB / 388.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.3364, allocations: 0.7017 MB / 388.9 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.3365, allocations: 141.7 kB / 389.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.3367, allocations: 9.906 kB / 389.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004718/0.3371, allocations: 25.19 kB / 389.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.3372, allocations: 32.12 kB / 389.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.525e-05/0.3373, allocations: 15.36 kB / 389.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000745/0.338, allocations: 425.2 kB / 389.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3381, allocations: 4.844 kB / 389.6 MB, free: 8.609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001324/0.3394, allocations: 137.1 kB / 389.7 MB, free: 8.594 MB / 302.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.0001627/0.3396, allocations: 118.4 kB / 389.8 MB, free: 8.492 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.3408, allocations: 455.7 kB / 390.3 MB, free: 8.348 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3408, allocations: 0 / 390.3 MB, free: 8.348 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004196/0.3413, allocations: 155.4 kB / 390.4 MB, free: 8.301 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009177/0.3422, allocations: 70.81 kB / 390.5 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003557/0.3458, allocations: 1.716 MB / 392.2 MB, free: 7.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006595/0.3464, allocations: 1.005 MB / 393.2 MB, free: 6.508 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002449/0.3467, allocations: 69.08 kB / 393.3 MB, free: 6.496 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3467, allocations: 0 / 393.3 MB, free: 6.496 MB / 302.1 MB Notification: Performance of Templates: time 0.01831/0.365, allocations: 9.266 MB / 402.6 MB, free: 1.371 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches