Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001054/0.001054, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001191/0.001191, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002124/0.002124, allocations: 64.08 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2914, allocations: 50.55 MB / 409.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance): time 0.004815/0.2963, allocations: 3.688 MB / 412.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002149/0.2985, allocations: 1.491 MB / 414.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000149/0.2986, allocations: 8 kB / 414.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001622/0.3003, allocations: 0.7503 MB / 415.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007841/0.3011, allocations: 390 kB / 415.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009377/0.302, allocations: 0.555 MB / 416.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004158/0.3024, allocations: 454.1 kB / 416.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000542/0.303, allocations: 393.7 kB / 416.9 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002704/0.3033, allocations: 211.2 kB / 417.2 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002759/0.3036, allocations: 274.9 kB / 417.4 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.167e-05/0.3036, allocations: 40 kB / 417.5 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003426/0.304, allocations: 211.8 kB / 417.7 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.425e-05/0.304, allocations: 103.7 kB / 417.8 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001765/0.3042, allocations: 234.8 kB / 418 MB, free: 8.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006628/0.3049, allocations: 0.6904 MB / 418.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3049, allocations: 0 / 418.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3049, allocations: 0 / 418.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.3049, allocations: 0 / 418.7 MB, free: 8.094 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.002009/0.307, allocations: 0.9015 MB / 419.6 MB, free: 7.145 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.307, allocations: 12.03 kB / 419.6 MB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003579/0.3106, allocations: 495.9 kB / 420.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004398/0.311, allocations: 303.6 kB / 420.4 MB, free: 6.312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.3111, allocations: 41.69 kB / 420.4 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.982e-05/0.3112, allocations: 52.38 kB / 420.5 MB, free: 6.223 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008911/0.3121, allocations: 0.5142 MB / 421 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.3121, allocations: 0 / 421 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.599e-05/0.3122, allocations: 27.98 kB / 421 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.3122, allocations: 12 kB / 421 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009627/0.3132, allocations: 0.5673 MB / 421.6 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002695/0.3159, allocations: 1.929 MB / 423.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/0.3179, allocations: 2.18 MB / 425.7 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000337/0.3183, allocations: 218.1 kB / 425.9 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001404/0.3184, allocations: 174.6 kB / 426.1 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.3185, allocations: 35 kB / 426.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 3.366e-06/0.3185, allocations: 0 / 426.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.001901/0.3204, allocations: 0.7971 MB / 426.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.3205, allocations: 63.78 kB / 427 MB, free: 15.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.3206, allocations: 186.3 kB / 427.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.318e-05/0.3207, allocations: 33.7 kB / 427.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.3208, allocations: 216.5 kB / 427.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.3209, allocations: 161.7 kB / 427.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.3211, allocations: 86.16 kB / 427.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3212, allocations: 338.8 kB / 428 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002835/0.3215, allocations: 149 kB / 428.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003496/0.3219, allocations: 232.8 kB / 428.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000623/0.3225, allocations: 399.5 kB / 428.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.3225, allocations: 3.984 kB / 428.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009417/0.3234, allocations: 0.5317 MB / 429.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.3235, allocations: 4 kB / 429.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.3235, allocations: 4 kB / 429.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003351/0.3238, allocations: 92.73 kB / 429.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003557/0.3242, allocations: 91.89 kB / 429.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001874/0.3261, allocations: 2.041 MB / 431.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.3263, allocations: 47.53 kB / 431.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-05/0.3264, allocations: 19.98 kB / 431.6 MB, free: 10.26 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001806/0.3266, allocations: 173.9 kB / 431.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.3266, allocations: 23.72 kB / 431.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001027/0.3277, allocations: 0.5511 MB / 432.3 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.3277, allocations: 4 kB / 432.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.594e-06/0.3277, allocations: 0 / 432.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.3277, allocations: 4 kB / 432.3 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.3292, allocations: 1.123 MB / 433.4 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3293, allocations: 7.875 kB / 433.5 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003142/0.3296, allocations: 75.89 kB / 433.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002611/0.3299, allocations: 96.73 kB / 433.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.3299, allocations: 4 kB / 433.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001841/0.3317, allocations: 2.033 MB / 435.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3318, allocations: 0 / 435.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.333, allocations: 0.7932 MB / 436.5 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.936e-05/0.3331, allocations: 112.7 kB / 436.6 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.265e-05/0.3332, allocations: 12 kB / 436.6 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.3334, allocations: 24.05 kB / 436.6 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.573e-05/0.3335, allocations: 32.39 kB / 436.6 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.529e-05/0.3335, allocations: 12 kB / 436.6 MB, free: 4.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001114/0.3336, allocations: 131.2 kB / 436.8 MB, free: 4.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3337, allocations: 0 / 436.8 MB, free: 4.805 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000534/0.3342, allocations: 151.8 kB / 436.9 MB, free: 4.656 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * 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 (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002466/0.3345, allocations: 139.2 kB / 437.1 MB, free: 4.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009962/0.3355, allocations: 0.5698 MB / 437.6 MB, free: 3.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3355, allocations: 0 / 437.6 MB, free: 3.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005654/0.336, allocations: 381.4 kB / 438 MB, free: 3.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003471/0.3364, allocations: 28 kB / 438 MB, free: 3.516 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.3377, allocations: 0.7993 MB / 438.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/0.338, allocations: 0.8084 MB / 439.6 MB, free: 1.855 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001726/0.3382, allocations: 42.95 kB / 439.7 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.3383, allocations: 39.42 kB / 439.7 MB, free: 1.773 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3383, allocations: 4 kB / 439.7 MB, free: 1.77 MB / 350.1 MB Notification: Performance of Templates: time 0.008289/0.3466, allocations: 4.4 MB / 444.1 MB, free: 13.38 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches