Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00162/0.00162, allocations: 174.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.6 MB / 223.7 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000749/0.000749, allocations: 86.42 kB / 272.1 MB, free: 8.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002864, allocations: 8 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2665, allocations: 47.58 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004529/0.2711, allocations: 4.596 MB / 381.2 MB, free: 41.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002448/0.2736, allocations: 1.798 MB / 383 MB, free: 40.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000459/0.274, allocations: 27.72 kB / 383 MB, free: 40.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003275/0.2744, allocations: 162.3 kB / 383.2 MB, free: 40.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004509/0.2748, allocations: 146.7 kB / 383.3 MB, free: 40.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006146/0.2755, allocations: 349 kB / 383.7 MB, free: 39.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009462/0.2764, allocations: 1.066 MB / 384.7 MB, free: 39.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007146/0.2771, allocations: 428.3 kB / 385.2 MB, free: 38.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005612/0.2777, allocations: 329.4 kB / 385.5 MB, free: 38.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004068/0.2781, allocations: 372.3 kB / 385.8 MB, free: 38.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.2782, allocations: 41.38 kB / 385.9 MB, free: 38.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002064/0.2784, allocations: 54.42 kB / 385.9 MB, free: 38.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.2786, allocations: 158.2 kB / 386.1 MB, free: 38.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000393/0.279, allocations: 470.5 kB / 386.5 MB, free: 37.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008952/0.2799, allocations: 1.005 MB / 387.5 MB, free: 37.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.2799, allocations: 0 / 387.5 MB, free: 37.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.2799, allocations: 0 / 387.5 MB, free: 37.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.66e-05/0.28, allocations: 4 kB / 387.6 MB, free: 37.13 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.001585/0.2816, allocations: 1.129 MB / 388.7 MB, free: 36.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.2816, allocations: 12.69 kB / 388.7 MB, free: 36.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.2817, allocations: 122.5 kB / 388.8 MB, free: 36.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007001/0.2824, allocations: 0.6107 MB / 389.4 MB, free: 35.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.98e-05/0.2825, allocations: 73.94 kB / 389.5 MB, free: 35.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.2826, allocations: 107.9 kB / 389.6 MB, free: 35.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.2839, allocations: 1.015 MB / 390.6 MB, free: 34.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.613e-05/0.284, allocations: 7.938 kB / 390.6 MB, free: 34.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.999e-05/0.284, allocations: 44 kB / 390.7 MB, free: 34.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.822e-05/0.2841, allocations: 28 kB / 390.7 MB, free: 34.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009018/0.285, allocations: 0.5656 MB / 391.3 MB, free: 33.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003778/0.2888, allocations: 5.52 MB / 396.8 MB, free: 27.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004809/0.2893, allocations: 237 kB / 397 MB, free: 27.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002846/0.2896, allocations: 170.1 kB / 397.2 MB, free: 27.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002131/0.2898, allocations: 85.05 kB / 397.3 MB, free: 27.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.2898, allocations: 42.56 kB / 397.3 MB, free: 27.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 3.025e-06/0.2898, allocations: 3.938 kB / 397.3 MB, free: 27.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.003466/0.2933, allocations: 1.756 MB / 399.1 MB, free: 25.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.2934, allocations: 92.98 kB / 399.2 MB, free: 25.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005696/0.2939, allocations: 0.6255 MB / 399.8 MB, free: 24.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.294, allocations: 33.7 kB / 399.8 MB, free: 24.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002796/0.2943, allocations: 0.5987 MB / 400.4 MB, free: 23.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.163e-05/0.2943, allocations: 153.9 kB / 400.6 MB, free: 23.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.131e-05/0.2944, allocations: 16 kB / 400.6 MB, free: 23.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2945, allocations: 382.8 kB / 400.9 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002652/0.2948, allocations: 157.9 kB / 401.1 MB, free: 23.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000405/0.2952, allocations: 0.5009 MB / 401.6 MB, free: 22.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007346/0.296, allocations: 0.7039 MB / 402.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.296, allocations: 0 / 402.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0008899/0.2969, allocations: 0.7321 MB / 403 MB, free: 20.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.2969, allocations: 12 kB / 403.1 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.2969, allocations: 12 kB / 403.1 MB, free: 20.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-05/0.297, allocations: 16 kB / 403.1 MB, free: 20.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000558/0.2975, allocations: 200.3 kB / 403.3 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.466e-05/0.2976, allocations: 31.8 kB / 403.3 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003051/0.2979, allocations: 36 kB / 403.3 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.457e-05/0.2979, allocations: 43.98 kB / 403.4 MB, free: 20.53 MB / 298.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.0002308/0.2982, allocations: 221.5 kB / 403.6 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.078e-05/0.2983, allocations: 75.06 kB / 403.7 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.2984, allocations: 78.55 kB / 403.8 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.2984, allocations: 7.984 kB / 403.8 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.2984, allocations: 3.938 kB / 403.8 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.2984, allocations: 0 / 403.8 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001701/0.3001, allocations: 1.355 MB / 405.1 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3001, allocations: 4.031 kB / 405.1 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004299/0.3006, allocations: 111.9 kB / 405.2 MB, free: 18.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.3006, allocations: 4 kB / 405.2 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.3006, allocations: 12 kB / 405.2 MB, free: 18.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.163e-06/0.3006, allocations: 11.94 kB / 405.3 MB, free: 18.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3006, allocations: 3.938 kB / 405.3 MB, free: 18.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008276/0.3015, allocations: 0.7265 MB / 406 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.398e-05/0.3016, allocations: 136.2 kB / 406.1 MB, free: 17.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.577e-05/0.3016, allocations: 8 kB / 406.1 MB, free: 17.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002698/0.3019, allocations: 31.92 kB / 406.2 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.39e-05/0.302, allocations: 35.89 kB / 406.2 MB, free: 17.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/0.302, allocations: 12 kB / 406.2 MB, free: 17.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003721/0.3024, allocations: 423 kB / 406.6 MB, free: 17.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3024, allocations: 0 / 406.6 MB, free: 17.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005174/0.3029, allocations: 136 kB / 406.8 MB, free: 17.03 MB / 298.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 0.0001445/0.3031, allocations: 119.1 kB / 406.9 MB, free: 16.9 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006283/0.3037, allocations: 445.6 kB / 407.3 MB, free: 16.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3037, allocations: 4 kB / 407.3 MB, free: 16.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002286/0.304, allocations: 165.6 kB / 407.5 MB, free: 16.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000637/0.3046, allocations: 83.55 kB / 407.6 MB, free: 16.22 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.3071, allocations: 2.203 MB / 409.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004038/0.3075, allocations: 1.004 MB / 410.8 MB, free: 12.94 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002716/0.3078, allocations: 94 kB / 410.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.3079, allocations: 67.41 kB / 410.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.3079, allocations: 0 / 410.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of Templates: time 0.009349/0.3173, allocations: 4.628 MB / 415.5 MB, free: 8.16 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches