Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.00141/0.00141, allocations: 110 kB / 18.35 MB, free: 4.84 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.001256/0.001256, allocations: 183.1 kB / 19.29 MB, free: 3.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 48.31 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1031, allocations: 46.61 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.2413/0.3445, allocations: 5.336 MB / 381.1 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003215/0.3477, allocations: 1.47 MB / 382.6 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00066/0.3484, allocations: 29.09 kB / 382.6 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005367/0.349, allocations: 220.8 kB / 382.8 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006398/0.3497, allocations: 195.6 kB / 383 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.3508, allocations: 396.2 kB / 383.4 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001522/0.3523, allocations: 1.125 MB / 384.5 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00081/0.3531, allocations: 490 kB / 385 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006424/0.3538, allocations: 399 kB / 385.4 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005424/0.3543, allocations: 432 kB / 385.8 MB, free: 8.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001505/0.3545, allocations: 83.56 kB / 385.9 MB, free: 8.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002358/0.3547, allocations: 97.16 kB / 386 MB, free: 8.371 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.3549, allocations: 209.2 kB / 386.2 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004221/0.3554, allocations: 0.4962 MB / 386.7 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001543/0.3569, allocations: 1.151 MB / 387.8 MB, free: 7.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3569, allocations: 4 kB / 387.9 MB, free: 7.426 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3569, allocations: 1.5 kB / 387.9 MB, free: 7.426 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.554e-05/0.357, allocations: 0.6094 kB / 387.9 MB, free: 7.426 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.00218/0.3592, allocations: 1.302 MB / 389.2 MB, free: 6.555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.3592, allocations: 13.8 kB / 389.2 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002122/0.3594, allocations: 124 kB / 389.3 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.3606, allocations: 0.6521 MB / 389.9 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.756e-05/0.3607, allocations: 86.31 kB / 390 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/0.3608, allocations: 101.4 kB / 390.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001709/0.3625, allocations: 1.025 MB / 391.2 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.572e-05/0.3626, allocations: 11.91 kB / 391.2 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.596e-05/0.3627, allocations: 43.91 kB / 391.2 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.292e-05/0.3627, allocations: 26.34 kB / 391.2 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.3639, allocations: 0.5511 MB / 391.8 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004973/0.3689, allocations: 5.493 MB / 397.3 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006483/0.3696, allocations: 234.6 kB / 397.5 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003402/0.3699, allocations: 162.8 kB / 397.7 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001601/0.3701, allocations: 89.28 kB / 397.8 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.3701, allocations: 40.12 kB / 397.8 MB, free: 200 kB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 3.196e-06/0.3701, allocations: 1.531 kB / 397.8 MB, free: 200 kB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.0047/0.3748, allocations: 1.706 MB / 399.5 MB, free: 15.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.969e-05/0.3749, allocations: 86.05 kB / 399.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000994/0.3759, allocations: 0.6403 MB / 400.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.868e-05/0.376, allocations: 30.83 kB / 400.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004856/0.3765, allocations: 0.5988 MB / 400.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.3766, allocations: 149.3 kB / 401 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002232/0.3769, allocations: 134.7 kB / 401.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002677/0.3772, allocations: 384.7 kB / 401.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003544/0.3775, allocations: 150.7 kB / 401.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006506/0.3782, allocations: 0.4908 MB / 402.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.3792, allocations: 0.7047 MB / 402.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.3792, allocations: 4.219 kB / 402.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001414/0.3806, allocations: 0.7108 MB / 403.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.732e-05/0.3807, allocations: 9.031 kB / 403.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/0.3807, allocations: 16.27 kB / 403.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.413e-05/0.3808, allocations: 21.25 kB / 403.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007515/0.3815, allocations: 190.7 kB / 403.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.783e-05/0.3816, allocations: 27.05 kB / 403.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004647/0.382, allocations: 37.19 kB / 403.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.469e-05/0.3821, allocations: 41.61 kB / 403.9 MB, free: 12.18 MB / 334.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.0004034/0.3825, allocations: 226.1 kB / 404.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.3827, allocations: 81.81 kB / 404.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.3828, allocations: 74.77 kB / 404.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.3828, allocations: 4.531 kB / 404.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/0.3829, allocations: 4.641 kB / 404.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.3829, allocations: 3.047 kB / 404.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002601/0.3855, allocations: 1.317 MB / 405.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.3855, allocations: 2.75 kB / 405.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005138/0.386, allocations: 99.67 kB / 405.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.237e-06/0.386, allocations: 7.156 kB / 405.7 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.424e-05/0.3861, allocations: 20.59 kB / 405.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.153e-06/0.3861, allocations: 4.844 kB / 405.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3861, allocations: 2.656 kB / 405.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.3873, allocations: 0.703 MB / 406.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001718/0.3874, allocations: 142.3 kB / 406.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.491e-05/0.3875, allocations: 12.56 kB / 406.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002998/0.3878, allocations: 24.48 kB / 406.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.3879, allocations: 28.22 kB / 406.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.088e-05/0.388, allocations: 13.62 kB / 406.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006091/0.3886, allocations: 428.3 kB / 407.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3886, allocations: 0 / 407.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001056/0.3897, allocations: 136.8 kB / 407.2 MB, free: 10.33 MB / 334.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.0001778/0.3898, allocations: 115.1 kB / 407.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.3909, allocations: 436.8 kB / 407.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.3909, allocations: 1.188 kB / 407.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003139/0.3912, allocations: 156.8 kB / 407.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006317/0.3918, allocations: 76.78 kB / 408 MB, free: 9.992 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003286/0.3951, allocations: 1.683 MB / 409.7 MB, free: 8.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006508/0.3958, allocations: 1.005 MB / 410.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002133/0.396, allocations: 68.94 kB / 410.7 MB, free: 8.086 MB / 334.1 MB Notification: Performance of SimCode: time 1.162e-06/0.396, allocations: 0 / 410.7 MB, free: 8.086 MB / 334.1 MB Notification: Performance of Templates: time 0.02042/0.4165, allocations: 9.225 MB / 420 MB, free: 1.891 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches