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.001398/0.001404, allocations: 104.2 kB / 17.59 MB, free: 5.43 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.001364/0.001364, allocations: 187.3 kB / 18.51 MB, free: 4.508 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.358/1.358, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 44.27 kB / 301.3 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1023, allocations: 49.45 MB / 350.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.00693/0.1093, allocations: 5.362 MB / 356.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002819/0.1121, allocations: 1.434 MB / 357.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008519/0.113, allocations: 27.88 kB / 357.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006611/0.1137, allocations: 217.8 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009038/0.1146, allocations: 194 kB / 358 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.1157, allocations: 395.4 kB / 358.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001609/0.1173, allocations: 1.115 MB / 359.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008591/0.1182, allocations: 492.2 kB / 359.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000567/0.1188, allocations: 394.3 kB / 360.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005242/0.1193, allocations: 429.6 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001508/0.1195, allocations: 80 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002459/0.1197, allocations: 103.9 kB / 360.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000171/0.1199, allocations: 211.1 kB / 361.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004928/0.1204, allocations: 0.501 MB / 361.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.1215, allocations: 1.121 MB / 362.8 MB, free: 8.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1215, allocations: 0 / 362.8 MB, free: 8.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1216, allocations: 4 kB / 362.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.522e-05/0.1216, allocations: 0 / 362.8 MB, free: 8.316 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.002194/0.1238, allocations: 1.301 MB / 364.1 MB, free: 6.961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1238, allocations: 15.89 kB / 364.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.124, allocations: 130.5 kB / 364.2 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000861/0.1249, allocations: 0.6107 MB / 364.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.691e-05/0.125, allocations: 77.94 kB / 364.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.1251, allocations: 96 kB / 365 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001735/0.1269, allocations: 1.035 MB / 366 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.323e-05/0.1269, allocations: 7.938 kB / 366 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-05/0.127, allocations: 44 kB / 366.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/0.127, allocations: 24 kB / 366.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.1282, allocations: 0.5539 MB / 366.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1638/0.292, allocations: 5.524 MB / 372.2 MB, free: 22.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006994/0.2928, allocations: 233.2 kB / 372.4 MB, free: 22.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003936/0.2932, allocations: 157.7 kB / 372.6 MB, free: 22.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002629/0.2935, allocations: 85.77 kB / 372.6 MB, free: 22.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.2935, allocations: 37.06 kB / 372.7 MB, free: 22.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.647e-06/0.2935, allocations: 0 / 372.7 MB, free: 22.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004224/0.2978, allocations: 1.72 MB / 374.4 MB, free: 21.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.2978, allocations: 85.33 kB / 374.5 MB, free: 21.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009163/0.2988, allocations: 0.6354 MB / 375.1 MB, free: 20.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.2988, allocations: 35.58 kB / 375.1 MB, free: 20.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002958/0.2991, allocations: 0.595 MB / 375.7 MB, free: 20.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.624e-05/0.2992, allocations: 147.6 kB / 375.9 MB, free: 20.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.2993, allocations: 136.5 kB / 376 MB, free: 20.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.2995, allocations: 384.5 kB / 376.4 MB, free: 19.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003195/0.2998, allocations: 151.3 kB / 376.5 MB, free: 19.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000419/0.3002, allocations: 0.491 MB / 377 MB, free: 19.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007642/0.301, allocations: 0.6952 MB / 377.7 MB, free: 18.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.437e-06/0.301, allocations: 6.969 kB / 377.7 MB, free: 18.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00118/0.3022, allocations: 0.7153 MB / 378.4 MB, free: 18.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.3022, allocations: 11 kB / 378.5 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.3023, allocations: 14.94 kB / 378.5 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.819e-05/0.3023, allocations: 17.25 kB / 378.5 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000649/0.3029, allocations: 198.2 kB / 378.7 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.03e-05/0.303, allocations: 23.53 kB / 378.7 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004062/0.3034, allocations: 35.81 kB / 378.7 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.876e-05/0.3035, allocations: 39.98 kB / 378.8 MB, free: 18.34 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.0002839/0.3038, allocations: 229.8 kB / 379 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.3039, allocations: 78.62 kB / 379.1 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001143/0.304, allocations: 78.34 kB / 379.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.304, allocations: 4.469 kB / 379.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.304, allocations: 4 kB / 379.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.3041, allocations: 3.797 kB / 379.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.3063, allocations: 1.332 MB / 380.5 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.3063, allocations: 2.969 kB / 380.5 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004612/0.3067, allocations: 102.8 kB / 380.6 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.3068, allocations: 2.719 kB / 380.6 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.781e-05/0.3068, allocations: 14.31 kB / 380.6 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.3068, allocations: 3.812 kB / 380.6 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3068, allocations: 1.438 kB / 380.6 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009669/0.3078, allocations: 0.6997 MB / 381.3 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.3079, allocations: 137.8 kB / 381.5 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.371e-05/0.308, allocations: 13.78 kB / 381.5 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003066/0.3083, allocations: 24.23 kB / 381.5 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.236e-05/0.3084, allocations: 26.69 kB / 381.5 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.3084, allocations: 16.02 kB / 381.5 MB, free: 16.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004845/0.3089, allocations: 423.8 kB / 382 MB, free: 16.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3089, allocations: 3.938 kB / 382 MB, free: 16.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007385/0.3097, allocations: 137.3 kB / 382.1 MB, free: 16.49 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.0001224/0.3098, allocations: 119.3 kB / 382.2 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008529/0.3107, allocations: 454.3 kB / 382.7 MB, free: 16.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3107, allocations: 1.75 kB / 382.7 MB, free: 16.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002754/0.311, allocations: 152.5 kB / 382.8 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005524/0.3115, allocations: 83.09 kB / 382.9 MB, free: 16.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.3141, allocations: 1.699 MB / 384.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005056/0.3146, allocations: 1 MB / 385.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.3148, allocations: 75.73 kB / 385.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3148, allocations: 0 / 385.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of Templates: time 0.01524/0.3301, allocations: 9.212 MB / 394.9 MB, free: 10.53 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