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.001229/0.001229, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001527/0.001527, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.818/1.818, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001725/0.001725, allocations: 55.91 kB / 328.6 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.157/0.1588, allocations: 46.61 MB / 375.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.3192/0.4781, allocations: 5.332 MB / 380.5 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003687/0.4818, allocations: 1.477 MB / 382 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006703/0.4825, allocations: 29.69 kB / 382 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005772/0.4832, allocations: 220.2 kB / 382.2 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006358/0.4838, allocations: 192.9 kB / 382.4 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009941/0.4848, allocations: 396.2 kB / 382.8 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00151/0.4863, allocations: 1.125 MB / 383.9 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007892/0.4871, allocations: 487.4 kB / 384.4 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006083/0.4878, allocations: 397.4 kB / 384.8 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004847/0.4883, allocations: 432 kB / 385.2 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001478/0.4884, allocations: 85.66 kB / 385.3 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002346/0.4887, allocations: 101.6 kB / 385.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001918/0.4889, allocations: 205.5 kB / 385.6 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004997/0.4894, allocations: 0.4991 MB / 386.1 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001675/0.491, allocations: 1.171 MB / 387.3 MB, free: 7.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.4911, allocations: 0.5625 kB / 387.3 MB, free: 7.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4911, allocations: 0 / 387.3 MB, free: 7.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.396e-05/0.4911, allocations: 1.781 kB / 387.3 MB, free: 7.41 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.002088/0.4932, allocations: 1.309 MB / 388.6 MB, free: 6.531 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.553e-05/0.4933, allocations: 17.39 kB / 388.6 MB, free: 6.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002078/0.4935, allocations: 123.8 kB / 388.7 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.4947, allocations: 0.6488 MB / 389.4 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.338e-05/0.4948, allocations: 82.91 kB / 389.4 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.4949, allocations: 100.9 kB / 389.5 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001893/0.4968, allocations: 1.03 MB / 390.6 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.641e-05/0.4969, allocations: 6.938 kB / 390.6 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.973e-05/0.497, allocations: 39.75 kB / 390.6 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.043e-05/0.497, allocations: 26.62 kB / 390.6 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/0.4983, allocations: 0.5555 MB / 391.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004812/0.5031, allocations: 5.49 MB / 396.7 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006099/0.5037, allocations: 230.3 kB / 396.9 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/0.5041, allocations: 161.2 kB / 397.1 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001808/0.5043, allocations: 92.08 kB / 397.2 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.901e-05/0.5044, allocations: 38.25 kB / 397.2 MB, free: 184 kB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 4.158e-06/0.5044, allocations: 4.641 kB / 397.2 MB, free: 180 kB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.004978/0.5094, allocations: 1.709 MB / 398.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.155e-05/0.5095, allocations: 85.67 kB / 399 MB, free: 15.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.5105, allocations: 0.6364 MB / 399.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.324e-05/0.5105, allocations: 30.83 kB / 399.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005233/0.511, allocations: 0.5986 MB / 400.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.5112, allocations: 145.5 kB / 400.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002104/0.5114, allocations: 138.8 kB / 400.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002272/0.5116, allocations: 389 kB / 400.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003495/0.512, allocations: 150.2 kB / 401.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006025/0.5126, allocations: 499.2 kB / 401.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009915/0.5136, allocations: 0.7038 MB / 402.2 MB, free: 12.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.5136, allocations: 7.406 kB / 402.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001343/0.515, allocations: 0.706 MB / 403 MB, free: 12.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.515, allocations: 10.19 kB / 403 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.329e-05/0.515, allocations: 12.12 kB / 403 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.141e-05/0.5151, allocations: 16.28 kB / 403 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007502/0.5159, allocations: 203.7 kB / 403.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.36e-05/0.5159, allocations: 27.19 kB / 403.2 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000449/0.5164, allocations: 34.28 kB / 403.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.389e-05/0.5164, allocations: 36.12 kB / 403.3 MB, free: 12.16 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.0004366/0.5169, allocations: 230.5 kB / 403.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.517, allocations: 78.25 kB / 403.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001444/0.5172, allocations: 73.5 kB / 403.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.5172, allocations: 4.562 kB / 403.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/0.5172, allocations: 10.08 kB / 403.7 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.5172, allocations: 1.828 kB / 403.7 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002344/0.5196, allocations: 1.318 MB / 405 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.5196, allocations: 9.094 kB / 405 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004918/0.5201, allocations: 101.5 kB / 405.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.5201, allocations: 3.156 kB / 405.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/0.5202, allocations: 15.88 kB / 405.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.5202, allocations: 8.594 kB / 405.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.5202, allocations: 1.375 kB / 405.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.5214, allocations: 0.6986 MB / 405.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.5215, allocations: 145.3 kB / 406 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.834e-05/0.5216, allocations: 8.562 kB / 406 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004404/0.5221, allocations: 21.38 kB / 406 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.5222, allocations: 30.53 kB / 406 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-05/0.5222, allocations: 15.48 kB / 406.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006375/0.5229, allocations: 419.4 kB / 406.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5229, allocations: 0 / 406.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009324/0.5238, allocations: 141.4 kB / 406.6 MB, free: 10.3 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.0002172/0.524, allocations: 114.7 kB / 406.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.5251, allocations: 449.7 kB / 407.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.5251, allocations: 0 / 407.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003389/0.5255, allocations: 152.9 kB / 407.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006098/0.5261, allocations: 71.67 kB / 407.4 MB, free: 9.969 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003267/0.5294, allocations: 1.653 MB / 409 MB, free: 8.914 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006919/0.5301, allocations: 1.002 MB / 410 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002918/0.5304, allocations: 91.95 kB / 410.1 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.5306, allocations: 63.8 kB / 410.2 MB, free: 8.016 MB / 334.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5306, allocations: 1.594 kB / 410.2 MB, free: 8.016 MB / 334.1 MB Notification: Performance of Templates: time 0.01251/0.5431, allocations: 5.088 MB / 415.3 MB, free: 5.512 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/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