Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001013/0.001013, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.4 MB / 222.9 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007759/0.0007759, allocations: 96.03 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.0003439, allocations: 12 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2688, allocations: 47.57 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005173/0.2741, allocations: 4.591 MB / 379.7 MB, free: 41.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003481/0.2776, allocations: 1.405 MB / 381.1 MB, free: 40.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001139/0.2788, allocations: 27.97 kB / 381.1 MB, free: 40.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004994/0.2793, allocations: 153.5 kB / 381.3 MB, free: 40.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008596/0.2802, allocations: 158.6 kB / 381.4 MB, free: 40.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009133/0.2811, allocations: 293.8 kB / 381.7 MB, free: 40.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001452/0.2826, allocations: 1.038 MB / 382.7 MB, free: 39.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006761/0.2833, allocations: 421.8 kB / 383.2 MB, free: 39.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005671/0.2838, allocations: 312.7 kB / 383.5 MB, free: 39.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004234/0.2843, allocations: 357.8 kB / 383.8 MB, free: 38.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.2844, allocations: 44.58 kB / 383.9 MB, free: 38.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001868/0.2846, allocations: 47.91 kB / 383.9 MB, free: 38.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.2847, allocations: 154 kB / 384.1 MB, free: 38.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003637/0.2851, allocations: 450.1 kB / 384.5 MB, free: 38.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006264/0.2857, allocations: 0.7755 MB / 385.3 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.2857, allocations: 0.9062 kB / 385.3 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2857, allocations: 0 / 385.3 MB, free: 37.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.2858, allocations: 0 / 385.3 MB, free: 37.77 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.001676/0.2874, allocations: 1.13 MB / 386.4 MB, free: 36.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.2875, allocations: 9.062 kB / 386.4 MB, free: 36.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002002/0.2877, allocations: 123.8 kB / 386.5 MB, free: 36.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008564/0.2886, allocations: 0.6086 MB / 387.1 MB, free: 36.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.469e-05/0.2886, allocations: 78.03 kB / 387.2 MB, free: 36.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.2888, allocations: 108.7 kB / 387.3 MB, free: 36.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.2903, allocations: 1.025 MB / 388.3 MB, free: 35.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.392e-05/0.2904, allocations: 3.984 kB / 388.3 MB, free: 35.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.425e-05/0.2904, allocations: 48 kB / 388.4 MB, free: 35.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.435e-05/0.2905, allocations: 31.94 kB / 388.4 MB, free: 35.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009767/0.2915, allocations: 0.5539 MB / 389 MB, free: 34.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004093/0.2956, allocations: 5.52 MB / 394.5 MB, free: 28.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000569/0.2962, allocations: 240.9 kB / 394.7 MB, free: 28.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002661/0.2965, allocations: 165.9 kB / 394.9 MB, free: 28.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001947/0.2967, allocations: 89.05 kB / 395 MB, free: 28.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.2967, allocations: 42.73 kB / 395 MB, free: 28.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 3.727e-06/0.2967, allocations: 0 / 395 MB, free: 28.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.003647/0.3004, allocations: 1.759 MB / 396.8 MB, free: 26.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.3004, allocations: 85.05 kB / 396.9 MB, free: 26.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005583/0.301, allocations: 0.6333 MB / 397.5 MB, free: 25.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.301, allocations: 29.7 kB / 397.5 MB, free: 25.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/0.3013, allocations: 0.5986 MB / 398.1 MB, free: 24.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.39e-05/0.3014, allocations: 153.9 kB / 398.3 MB, free: 24.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-05/0.3014, allocations: 16 kB / 398.3 MB, free: 24.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.3015, allocations: 386.8 kB / 398.7 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.3018, allocations: 161.8 kB / 398.8 MB, free: 24.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.3022, allocations: 0.4972 MB / 399.3 MB, free: 23.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006739/0.3029, allocations: 0.7053 MB / 400 MB, free: 22.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3029, allocations: 4 kB / 400 MB, free: 22.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009519/0.3038, allocations: 0.7242 MB / 400.8 MB, free: 21.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.3039, allocations: 8 kB / 400.8 MB, free: 21.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.3039, allocations: 16.06 kB / 400.8 MB, free: 21.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.71e-05/0.3039, allocations: 16 kB / 400.8 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005705/0.3045, allocations: 199.6 kB / 401 MB, free: 21.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.285e-05/0.3045, allocations: 27.86 kB / 401 MB, free: 21.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.3049, allocations: 39.98 kB / 401.1 MB, free: 21.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.673e-05/0.3049, allocations: 44 kB / 401.1 MB, free: 21.62 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002712/0.3052, allocations: 229.5 kB / 401.3 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.473e-05/0.3053, allocations: 75.06 kB / 401.4 MB, free: 21.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.3054, allocations: 74.53 kB / 401.5 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.3054, allocations: 7.938 kB / 401.5 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.3055, allocations: 3.938 kB / 401.5 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.3055, allocations: 0 / 401.5 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001705/0.3072, allocations: 1.358 MB / 402.8 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3072, allocations: 0 / 402.8 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004233/0.3076, allocations: 107.9 kB / 402.9 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-06/0.3076, allocations: 8.156 kB / 403 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.3077, allocations: 12 kB / 403 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/0.3077, allocations: 11.92 kB / 403 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3077, allocations: 3.938 kB / 403 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008458/0.3085, allocations: 0.7187 MB / 403.7 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.597e-05/0.3087, allocations: 136.2 kB / 403.8 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.532e-05/0.3087, allocations: 16.03 kB / 403.9 MB, free: 18.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002744/0.309, allocations: 39.86 kB / 403.9 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.281e-05/0.3091, allocations: 23.97 kB / 403.9 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.231e-05/0.3091, allocations: 15.98 kB / 403.9 MB, free: 18.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003643/0.3095, allocations: 411 kB / 404.3 MB, free: 18.26 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3095, allocations: 0 / 404.3 MB, free: 18.26 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006448/0.3101, allocations: 140 kB / 404.5 MB, free: 18.12 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001251/0.3103, allocations: 111.1 kB / 404.6 MB, free: 18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007102/0.311, allocations: 452 kB / 405 MB, free: 17.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.311, allocations: 0 / 405 MB, free: 17.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002391/0.3113, allocations: 160.3 kB / 405.2 MB, free: 17.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006765/0.3119, allocations: 79.17 kB / 405.3 MB, free: 17.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002495/0.3144, allocations: 2.138 MB / 407.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.3149, allocations: 1.008 MB / 408.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.3151, allocations: 67.41 kB / 408.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of SimCode: time 7.62e-07/0.3151, allocations: 0 / 408.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of Templates: time 0.01281/0.3279, allocations: 9.059 MB / 417.5 MB, free: 4.98 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches