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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=20000,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=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 113.8 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 189.5 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009658/0.0009658, allocations: 52.02 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2417, allocations: 49.44 MB / 401.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006602/0.2484, allocations: 5.378 MB / 406.8 MB, free: 3.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002843/0.2513, allocations: 1.43 MB / 408.2 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007002/0.252, allocations: 27.81 kB / 408.3 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006599/0.2527, allocations: 217.8 kB / 408.5 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007955/0.2535, allocations: 194 kB / 408.7 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009576/0.2545, allocations: 395.4 kB / 409.1 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001443/0.2559, allocations: 1.123 MB / 410.2 MB, free: 92 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007422/0.2567, allocations: 480.2 kB / 410.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005335/0.2572, allocations: 398.3 kB / 411 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005418/0.2578, allocations: 433.5 kB / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001703/0.258, allocations: 84 kB / 411.5 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002293/0.2582, allocations: 103.9 kB / 411.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.2584, allocations: 207.1 kB / 411.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004953/0.2589, allocations: 0.4971 MB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001214/0.2601, allocations: 1.172 MB / 413.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2601, allocations: 4 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.2601, allocations: 0 / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.941e-05/0.2602, allocations: 0 / 413.5 MB, free: 12.71 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.002092/0.2623, allocations: 1.309 MB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.2623, allocations: 11.89 kB / 414.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002297/0.2626, allocations: 126.4 kB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.2636, allocations: 0.6459 MB / 415.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.448e-05/0.2637, allocations: 73.94 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.2638, allocations: 107.9 kB / 415.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.2655, allocations: 1.027 MB / 416.8 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/0.2656, allocations: 11.94 kB / 416.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.32e-05/0.2656, allocations: 47.98 kB / 416.9 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.305e-05/0.2657, allocations: 28 kB / 416.9 MB, free: 9.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/0.2668, allocations: 0.55 MB / 417.4 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004877/0.2717, allocations: 5.489 MB / 422.9 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005807/0.2723, allocations: 236.9 kB / 423.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003282/0.2727, allocations: 157.6 kB / 423.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001401/0.2728, allocations: 93.08 kB / 423.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.2729, allocations: 34.56 kB / 423.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.993e-06/0.2729, allocations: 0 / 423.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.004061/0.277, allocations: 1.715 MB / 425.2 MB, free: 424 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.277, allocations: 85.05 kB / 425.2 MB, free: 320 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007388/0.2778, allocations: 0.6333 MB / 425.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.362e-05/0.2778, allocations: 33.7 kB / 425.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000381/0.2782, allocations: 0.6026 MB / 426.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.2783, allocations: 142 kB / 426.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/0.2785, allocations: 142.4 kB / 426.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.2787, allocations: 382.8 kB / 427.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003207/0.279, allocations: 153.9 kB / 427.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005236/0.2795, allocations: 0.4932 MB / 427.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009061/0.2805, allocations: 0.7023 MB / 428.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.2805, allocations: 8 kB / 428.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00121/0.2817, allocations: 0.7074 MB / 429.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.2817, allocations: 12 kB / 429.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.2818, allocations: 12 kB / 429.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.07e-05/0.2818, allocations: 16 kB / 429.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000638/0.2824, allocations: 188.2 kB / 429.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.2e-05/0.2825, allocations: 35.8 kB / 429.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004039/0.2829, allocations: 35.98 kB / 429.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.977e-05/0.2829, allocations: 40 kB / 429.6 MB, free: 11.62 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.0003132/0.2833, allocations: 221.6 kB / 429.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.2834, allocations: 75.06 kB / 429.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001322/0.2835, allocations: 78.53 kB / 429.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.2836, allocations: 4 kB / 429.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.2836, allocations: 3.938 kB / 429.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.2836, allocations: 7.984 kB / 429.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002066/0.2857, allocations: 1.321 MB / 431.3 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.2857, allocations: 0 / 431.3 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00046/0.2861, allocations: 99.86 kB / 431.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.421e-05/0.2862, allocations: 4 kB / 431.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.303e-05/0.2862, allocations: 19.92 kB / 431.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.2862, allocations: 4 kB / 431.4 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.2862, allocations: 4.156 kB / 431.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009975/0.2872, allocations: 0.6931 MB / 432.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.2874, allocations: 148 kB / 432.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.979e-05/0.2875, allocations: 12 kB / 432.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002985/0.2878, allocations: 23.92 kB / 432.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.649e-05/0.2878, allocations: 31.91 kB / 432.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/0.2879, allocations: 15.98 kB / 432.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004574/0.2883, allocations: 419 kB / 432.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2884, allocations: 0 / 432.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006633/0.289, allocations: 140 kB / 432.9 MB, free: 8.195 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.0001377/0.2892, allocations: 115.2 kB / 433 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008154/0.29, allocations: 446.2 kB / 433.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.29, allocations: 0 / 433.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002827/0.2903, allocations: 159.1 kB / 433.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006164/0.2909, allocations: 77.12 kB / 433.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00287/0.2938, allocations: 1.687 MB / 435.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005958/0.2944, allocations: 1 MB / 436.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/0.2946, allocations: 67.41 kB / 436.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2946, allocations: 0 / 436.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of Templates: time 0.01434/0.309, allocations: 9.337 MB / 445.7 MB, free: 11.23 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches