Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.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.ComplexBlocks.Examples.ShowTransferFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|logFrequencySweep.y|const.y.re|const.y.im|transferFunction.y.re|transferFunction.y.im",fileNamePrefix="Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction") translateModel(Modelica.ComplexBlocks.Examples.ShowTransferFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|logFrequencySweep.y|const.y.re|const.y.im|transferFunction.y.re|transferFunction.y.im",fileNamePrefix="Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001876/0.001876, allocations: 110.6 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002392/0.002392, allocations: 213.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.464/2.464, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 63.89 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4324/0.4344, allocations: 50.54 MB / 409.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.004449/0.4389, allocations: 1.697 MB / 411.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.441, allocations: 0.7516 MB / 412.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.4411, allocations: 7.938 kB / 412.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003662/0.4415, allocations: 47.72 kB / 412.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002605/0.4418, allocations: 39.7 kB / 412.4 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001656/0.4435, allocations: 0.498 MB / 412.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003107/0.4438, allocations: 123.5 kB / 413.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.444, allocations: 25.55 kB / 413.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.4441, allocations: 63.7 kB / 413.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002947/0.4444, allocations: 87.67 kB / 413.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.293e-05/0.4445, allocations: 8 kB / 413.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003695/0.4449, allocations: 131.8 kB / 413.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.846e-05/0.445, allocations: 39.83 kB / 413.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.4451, allocations: 55.67 kB / 413.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004509/0.4456, allocations: 203.2 kB / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4456, allocations: 0 / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4456, allocations: 0 / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.4456, allocations: 0 / 413.7 MB, free: 13.85 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001932/0.4476, allocations: 0.539 MB / 414.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.4476, allocations: 8.031 kB / 414.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001186/0.4488, allocations: 96.64 kB / 414.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.4491, allocations: 208 kB / 414.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.08e-05/0.4492, allocations: 8.375 kB / 414.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.4492, allocations: 8.375 kB / 414.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005685/0.4498, allocations: 165.2 kB / 414.7 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.4498, allocations: 0 / 414.7 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.596e-05/0.4499, allocations: 3.984 kB / 414.7 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.448e-05/0.4499, allocations: 12 kB / 414.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006357/0.4506, allocations: 155.9 kB / 414.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.4521, allocations: 0.5663 MB / 415.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.4527, allocations: 138.7 kB / 415.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002823/0.453, allocations: 76.75 kB / 415.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.231e-05/0.4531, allocations: 0 / 415.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.4531, allocations: 30.75 kB / 415.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 3.887e-06/0.4531, allocations: 4 kB / 415.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0009601/0.4541, allocations: 209.7 kB / 415.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/0.4542, allocations: 59.34 kB / 415.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003193/0.4545, allocations: 207.3 kB / 416.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.4546, allocations: 29.8 kB / 416.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.4547, allocations: 132 kB / 416.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.783e-05/0.4548, allocations: 31.55 kB / 416.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.4549, allocations: 33.62 kB / 416.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.4551, allocations: 330.8 kB / 416.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/0.4554, allocations: 55.95 kB / 416.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002888/0.4557, allocations: 88.25 kB / 416.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005863/0.4563, allocations: 156.2 kB / 417 MB, free: 10.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.4563, allocations: 0 / 417 MB, free: 10.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007056/0.457, allocations: 201.2 kB / 417.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.457, allocations: 4 kB / 417.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.4571, allocations: 4.125 kB / 417.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-05/0.4571, allocations: 4 kB / 417.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002794/0.4574, allocations: 27.97 kB / 417.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.4574, allocations: 4 kB / 417.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.4576, allocations: 19.84 kB / 417.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.4577, allocations: 7.984 kB / 417.2 MB, free: 10.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (14): * Single equations (assignments): 14 * 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.0001616/0.4578, allocations: 125.8 kB / 417.4 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.053e-05/0.4579, allocations: 15.84 kB / 417.4 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007048/0.4586, allocations: 190.8 kB / 417.6 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.4587, allocations: 4 kB / 417.6 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4587, allocations: 0 / 417.6 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.4587, allocations: 0 / 417.6 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000468/0.4592, allocations: 249.5 kB / 417.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.4592, allocations: 0 / 417.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002449/0.4594, allocations: 31.91 kB / 417.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.4595, allocations: 0 / 417.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.4595, allocations: 4.094 kB / 417.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.4595, allocations: 11.94 kB / 417.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4595, allocations: 0 / 417.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006939/0.4602, allocations: 263.2 kB / 418.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.4604, allocations: 108.8 kB / 418.2 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.727e-05/0.4604, allocations: 3.984 kB / 418.2 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.4607, allocations: 11.98 kB / 418.2 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.187e-05/0.4608, allocations: 11.98 kB / 418.2 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.4608, allocations: 4 kB / 418.2 MB, free: 8.902 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002084/0.461, allocations: 152.2 kB / 418.4 MB, free: 8.754 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.461, allocations: 0 / 418.4 MB, free: 8.754 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005206/0.4615, allocations: 28 kB / 418.4 MB, free: 8.727 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (11): * Single equations (assignments): 11 * 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.0002222/0.4618, allocations: 111.2 kB / 418.5 MB, free: 8.609 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006239/0.4624, allocations: 139.8 kB / 418.7 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4624, allocations: 0 / 418.7 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.4627, allocations: 67.89 kB / 418.7 MB, free: 8.406 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005309/0.4633, allocations: 23 kB / 418.8 MB, free: 8.387 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009606/0.4643, allocations: 348.2 kB / 419.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004236/0.4647, allocations: 0.7201 MB / 419.8 MB, free: 7.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.4648, allocations: 19.42 kB / 419.8 MB, free: 7.25 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4648, allocations: 0 / 419.8 MB, free: 7.25 MB / 334.1 MB Notification: Performance of Templates: time 0.005926/0.4708, allocations: 2.032 MB / 421.9 MB, free: 5.227 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.makefile (rm -f Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; mkfifo Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe >> ../files/Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.sim & ./Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/ShowTransferFunction/ShowTransferFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,logFrequencySweep.y,const.y.re,const.y.im,transferFunction.y.re,transferFunction.y.im Variables in the result:const.y.im,const.y.re,logFrequencySweep.y,time,transferFunction.y.im,transferFunction.y.re