Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001845/0.001845, allocations: 114.9 kB / 17.74 MB, free: 5.328 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.00223/0.00223, allocations: 188.5 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.928/2.928, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 47.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6102/0.6125, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.00789/0.6205, allocations: 2.895 MB / 404.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002149/0.6227, allocations: 0.6699 MB / 405 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006075/0.6233, allocations: 7.938 kB / 405 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004785/0.6238, allocations: 67.31 kB / 405.1 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005841/0.6245, allocations: 79.27 kB / 405.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005303/0.6251, allocations: 99.81 kB / 405.2 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007311/0.6258, allocations: 378.4 kB / 405.6 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004782/0.6263, allocations: 149.4 kB / 405.7 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000367/0.6267, allocations: 143.5 kB / 405.9 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003154/0.627, allocations: 155.3 kB / 406 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.36e-05/0.6271, allocations: 32 kB / 406.1 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.814e-05/0.6272, allocations: 32 kB / 406.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.6273, allocations: 71.77 kB / 406.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000281/0.6276, allocations: 167.2 kB / 406.3 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006559/0.6283, allocations: 379.7 kB / 406.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.6283, allocations: 0 / 406.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.752e-06/0.6284, allocations: 3.984 kB / 406.7 MB, free: 3.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.492e-05/0.6284, allocations: 4 kB / 406.7 MB, free: 3.551 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001892/0.6303, allocations: 0.6082 MB / 407.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.39e-05/0.6304, allocations: 11.97 kB / 407.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001612/0.6306, allocations: 36.56 kB / 407.4 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000879/0.6314, allocations: 263.7 kB / 407.6 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.205e-05/0.6315, allocations: 29.03 kB / 407.7 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.725e-05/0.6316, allocations: 32.38 kB / 407.7 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008667/0.6325, allocations: 278.4 kB / 408 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.6325, allocations: 0 / 408 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.334e-05/0.6326, allocations: 16 kB / 408 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.6326, allocations: 8 kB / 408 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007088/0.6334, allocations: 198.5 kB / 408.2 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002646/0.636, allocations: 0.979 MB / 409.2 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005488/0.6366, allocations: 162 kB / 409.3 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003246/0.637, allocations: 80.81 kB / 409.4 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.296e-05/0.637, allocations: 4 kB / 409.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.049e-05/0.6371, allocations: 34.56 kB / 409.4 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 7.675e-06/0.6371, allocations: 0 / 409.4 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.001034/0.6382, allocations: 221.4 kB / 409.6 MB, free: 432 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/0.6382, allocations: 59.39 kB / 409.7 MB, free: 360 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003816/0.6386, allocations: 203 kB / 409.9 MB, free: 148 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.02e-05/0.6387, allocations: 33.64 kB / 409.9 MB, free: 108 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002425/0.639, allocations: 192.2 kB / 410.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.794e-05/0.6391, allocations: 71 kB / 410.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.6393, allocations: 49.7 kB / 410.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.6395, allocations: 326.8 kB / 410.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000279/0.6397, allocations: 59.95 kB / 410.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000339/0.6401, allocations: 118 kB / 410.7 MB, free: 15.26 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006163/0.6407, allocations: 189.8 kB / 410.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.6408, allocations: 4 kB / 410.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008947/0.6417, allocations: 241.1 kB / 411.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.087e-05/0.6417, allocations: 8 kB / 411.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.6417, allocations: 0 / 411.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.694e-05/0.6418, allocations: 4 kB / 411.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000492/0.6423, allocations: 68.02 kB / 411.2 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.6e-05/0.6423, allocations: 4 kB / 411.2 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002967/0.6426, allocations: 19.84 kB / 411.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.531e-05/0.6427, allocations: 8 kB / 411.3 MB, free: 14.69 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0002941/0.643, allocations: 153.6 kB / 411.4 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.935e-05/0.6431, allocations: 23.72 kB / 411.4 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006688/0.6438, allocations: 198.4 kB / 411.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.6438, allocations: 4 kB / 411.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.6438, allocations: 3.984 kB / 411.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.6438, allocations: 0 / 411.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006589/0.6445, allocations: 321.2 kB / 412 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.6445, allocations: 0 / 412 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004339/0.645, allocations: 47.95 kB / 412 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.103e-06/0.645, allocations: 7.938 kB / 412 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.8e-05/0.645, allocations: 4 kB / 412 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.6451, allocations: 0 / 412 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.6451, allocations: 0 / 412 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009579/0.646, allocations: 355.1 kB / 412.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.6462, allocations: 96.83 kB / 412.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.214e-05/0.6463, allocations: 8.047 kB / 412.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002977/0.6466, allocations: 8 kB / 412.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.288e-05/0.6467, allocations: 23.97 kB / 412.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.216e-05/0.6467, allocations: 4 kB / 412.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002543/0.647, allocations: 148.6 kB / 412.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.647, allocations: 0 / 412.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005912/0.6476, allocations: 75.69 kB / 412.7 MB, free: 13.15 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.0002152/0.6478, allocations: 107.2 kB / 412.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006476/0.6485, allocations: 167.8 kB / 413 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.6485, allocations: 0 / 413 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002365/0.6487, allocations: 78.41 kB / 413.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005201/0.6493, allocations: 31.92 kB / 413.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002401/0.6517, allocations: 0.8326 MB / 413.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000688/0.6524, allocations: 0.7672 MB / 414.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.6526, allocations: 27.42 kB / 414.7 MB, free: 11.08 MB / 334.1 MB Notification: Performance of SimCode: time 2.144e-06/0.6526, allocations: 3.938 kB / 414.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of Templates: time 0.008975/0.6616, allocations: 2.937 MB / 417.7 MB, free: 8.141 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches