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.0007439/0.000744, allocations: 93.33 kB / 17.31 MB, free: 6.535 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.0007816/0.0007816, allocations: 175.9 kB / 18.21 MB, free: 5.684 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.282/1.282, allocations: 223.3 MB / 242.3 MB, free: 260 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000232/0.0002321, allocations: 8 kB / 302.1 MB, free: 6.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07606/0.0763, allocations: 50.41 MB / 352.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004722/0.08106, allocations: 4.902 MB / 357.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.08343, allocations: 1.414 MB / 358.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00051/0.08396, allocations: 23.88 kB / 358.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003872/0.08436, allocations: 158.6 kB / 359 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005376/0.08491, allocations: 150.7 kB / 359.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006527/0.08557, allocations: 343.6 kB / 359.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009044/0.08649, allocations: 1.068 MB / 360.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005381/0.08703, allocations: 427.3 kB / 361 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003176/0.08736, allocations: 334.3 kB / 361.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003242/0.0877, allocations: 365.6 kB / 361.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.271e-05/0.08778, allocations: 40 kB / 361.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.08792, allocations: 59.92 kB / 361.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.08804, allocations: 155.1 kB / 361.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003213/0.08837, allocations: 474.7 kB / 362.3 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005926/0.08897, allocations: 0.7832 MB / 363.1 MB, free: 9.008 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.08898, allocations: 0 / 363.1 MB, free: 9.008 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.08899, allocations: 0 / 363.1 MB, free: 9.008 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.089, allocations: 0 / 363.1 MB, free: 9.008 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.001456/0.09047, allocations: 1.13 MB / 364.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.09051, allocations: 12.03 kB / 364.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.09066, allocations: 126.4 kB / 364.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007543/0.09142, allocations: 0.6069 MB / 365 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.34e-05/0.09148, allocations: 73.94 kB / 365.1 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.09161, allocations: 103.9 kB / 365.2 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.09316, allocations: 1.031 MB / 366.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.954e-05/0.0932, allocations: 7.938 kB / 366.2 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7e-05/0.09328, allocations: 44 kB / 366.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.551e-05/0.09331, allocations: 28 kB / 366.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/0.09443, allocations: 0.5656 MB / 366.9 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.149/0.2435, allocations: 5.516 MB / 372.4 MB, free: 21.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006382/0.2441, allocations: 236.7 kB / 372.6 MB, free: 21.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003156/0.2445, allocations: 164.4 kB / 372.8 MB, free: 21.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001315/0.2446, allocations: 89.12 kB / 372.8 MB, free: 20.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.2446, allocations: 38.59 kB / 372.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.485e-06/0.2447, allocations: 0.7812 kB / 372.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003874/0.2485, allocations: 1.775 MB / 374.7 MB, free: 20.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/0.2486, allocations: 91.83 kB / 374.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008026/0.2494, allocations: 0.6332 MB / 375.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.2494, allocations: 36.56 kB / 375.4 MB, free: 19.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000312/0.2497, allocations: 0.5973 MB / 376 MB, free: 19.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.091e-05/0.2498, allocations: 148.2 kB / 376.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.267e-05/0.2499, allocations: 66.81 kB / 376.2 MB, free: 19.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.126e-05/0.25, allocations: 383.3 kB / 376.6 MB, free: 19.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003248/0.2503, allocations: 161.7 kB / 376.8 MB, free: 19.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004263/0.2508, allocations: 0.496 MB / 377.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007837/0.2516, allocations: 0.714 MB / 378 MB, free: 18.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.2516, allocations: 6.75 kB / 378 MB, free: 18.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00117/0.2528, allocations: 0.7318 MB / 378.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.2528, allocations: 10.09 kB / 378.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.2528, allocations: 15.41 kB / 378.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.811e-05/0.2529, allocations: 20.09 kB / 378.8 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006362/0.2535, allocations: 204.8 kB / 379 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.516e-05/0.2535, allocations: 23.11 kB / 379 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003842/0.2539, allocations: 40.55 kB / 379 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/0.254, allocations: 37.7 kB / 379.1 MB, free: 17.88 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.0002465/0.2542, allocations: 228.9 kB / 379.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.2544, allocations: 79.08 kB / 379.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.2545, allocations: 77.72 kB / 379.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2545, allocations: 7.938 kB / 379.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.2545, allocations: 2.219 kB / 379.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.2545, allocations: 1.453 kB / 379.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001997/0.2565, allocations: 1.349 MB / 380.8 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.2565, allocations: 1.281 kB / 380.8 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004737/0.257, allocations: 109.3 kB / 380.9 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.257, allocations: 7.875 kB / 380.9 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.2571, allocations: 13.84 kB / 380.9 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.2571, allocations: 6.984 kB / 380.9 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2571, allocations: 5.922 kB / 380.9 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009179/0.258, allocations: 0.7256 MB / 381.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.535e-05/0.2581, allocations: 145.2 kB / 381.8 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.555e-05/0.2582, allocations: 13.02 kB / 381.8 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003141/0.2585, allocations: 29.47 kB / 381.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.876e-05/0.2586, allocations: 28.86 kB / 381.9 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.313e-05/0.2586, allocations: 14.05 kB / 381.9 MB, free: 16.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004414/0.2591, allocations: 420.5 kB / 382.3 MB, free: 16.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2591, allocations: 0 / 382.3 MB, free: 16.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006417/0.2597, allocations: 141.2 kB / 382.4 MB, free: 16.02 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 9.344e-05/0.2598, allocations: 114.5 kB / 382.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007851/0.2606, allocations: 451.2 kB / 383 MB, free: 15.78 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.2606, allocations: 1.375 kB / 383 MB, free: 15.78 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002914/0.2609, allocations: 162.2 kB / 383.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006739/0.2616, allocations: 77.61 kB / 383.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.2642, allocations: 2.235 MB / 385.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004663/0.2647, allocations: 1.004 MB / 386.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.2648, allocations: 77.48 kB / 386.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2649, allocations: 0 / 386.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of Templates: time 0.01197/0.2768, allocations: 9.056 MB / 395.6 MB, free: 9.68 MB / 302.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