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.0009306/0.0009306, allocations: 99.8 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001192/0.001193, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002482/0.0002487, allocations: 4 kB / 306.6 MB, free: 1.422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1139, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.001681/0.1156, allocations: 1.367 MB / 359.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.1167, allocations: 0.6938 MB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.722e-05/0.1167, allocations: 4 kB / 360.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.1169, allocations: 39.78 kB / 360.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001209/0.1171, allocations: 27.95 kB / 360.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007534/0.1178, allocations: 406.6 kB / 360.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001304/0.118, allocations: 79.84 kB / 360.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.909e-05/0.1181, allocations: 25.53 kB / 360.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.844e-05/0.1182, allocations: 51.7 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001835/0.1184, allocations: 79.66 kB / 360.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.138e-05/0.1184, allocations: 8 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001714/0.1186, allocations: 87.94 kB / 360.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.59e-05/0.1187, allocations: 35.89 kB / 360.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.572e-05/0.1187, allocations: 37.64 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001956/0.1189, allocations: 147.9 kB / 361.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.1189, allocations: 0 / 361.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1189, allocations: 0 / 361.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1189, allocations: 7.938 kB / 361.1 MB, free: 10.83 MB / 302.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.001141/0.1201, allocations: 0.5182 MB / 361.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.1201, allocations: 12.03 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007665/0.1209, allocations: 107.7 kB / 361.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.1211, allocations: 198.1 kB / 362 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.1211, allocations: 7.938 kB / 362 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.1211, allocations: 19.94 kB / 362 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003495/0.1215, allocations: 173.5 kB / 362.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.1215, allocations: 0 / 362.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.1215, allocations: 4 kB / 362.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.456e-05/0.1216, allocations: 7.984 kB / 362.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003962/0.122, allocations: 171.9 kB / 362.3 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009656/0.1229, allocations: 0.5702 MB / 362.9 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003974/0.1233, allocations: 170.6 kB / 363.1 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.1234, allocations: 12.16 kB / 363.1 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.1234, allocations: 38.48 kB / 363.1 MB, free: 8.676 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.1234, allocations: 0 / 363.1 MB, free: 8.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006464/0.1241, allocations: 322.5 kB / 363.4 MB, free: 8.336 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.1241, allocations: 51.41 kB / 363.5 MB, free: 8.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.1243, allocations: 206.2 kB / 363.7 MB, free: 8.059 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.1243, allocations: 33.64 kB / 363.7 MB, free: 8.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.626e-05/0.1244, allocations: 127.6 kB / 363.9 MB, free: 7.891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.826e-05/0.1244, allocations: 35.47 kB / 363.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.955e-06/0.1245, allocations: 0 / 363.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1246, allocations: 330.8 kB / 364.2 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.1247, allocations: 63.95 kB / 364.3 MB, free: 7.461 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.1249, allocations: 111.5 kB / 364.4 MB, free: 7.336 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001867/0.1251, allocations: 83.89 kB / 364.5 MB, free: 7.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1251, allocations: 3.938 kB / 364.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004347/0.1256, allocations: 217.4 kB / 364.7 MB, free: 7.031 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.1256, allocations: 7.953 kB / 364.7 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.1256, allocations: 4 kB / 364.7 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.1256, allocations: 0 / 364.7 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.1258, allocations: 43.91 kB / 364.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1258, allocations: 0 / 364.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.126, allocations: 27.83 kB / 364.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.126, allocations: 4 kB / 364.8 MB, free: 6.945 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.898e-05/0.1261, allocations: 129.9 kB / 364.9 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.555e-05/0.1261, allocations: 15.81 kB / 364.9 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004594/0.1266, allocations: 210.9 kB / 365.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.1266, allocations: 8 kB / 365.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1266, allocations: 0 / 365.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1266, allocations: 3.984 kB / 365.1 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000262/0.1269, allocations: 257.4 kB / 365.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.1269, allocations: 3.984 kB / 365.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/0.1271, allocations: 27.98 kB / 365.4 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.1271, allocations: 0 / 365.4 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.1271, allocations: 4 kB / 365.4 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1271, allocations: 3.953 kB / 365.4 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1271, allocations: 0 / 365.4 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004318/0.1276, allocations: 299 kB / 365.7 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.711e-05/0.1277, allocations: 112.8 kB / 365.8 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.1277, allocations: 4 kB / 365.8 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.1278, allocations: 12 kB / 365.8 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.118e-05/0.1279, allocations: 11.94 kB / 365.8 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.1279, allocations: 7.984 kB / 365.9 MB, free: 5.766 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001149/0.128, allocations: 147.2 kB / 366 MB, free: 5.621 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.128, allocations: 0 / 366 MB, free: 5.621 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002688/0.1283, allocations: 27.94 kB / 366 MB, free: 5.594 MB / 302.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 (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001412/0.1285, allocations: 107.2 kB / 366.1 MB, free: 5.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004014/0.1289, allocations: 164 kB / 366.3 MB, free: 5.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1289, allocations: 0 / 366.3 MB, free: 5.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.1291, allocations: 76.61 kB / 366.4 MB, free: 5.246 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.1293, allocations: 16.34 kB / 366.4 MB, free: 5.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005895/0.1299, allocations: 380.2 kB / 366.8 MB, free: 4.828 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/0.1302, allocations: 0.736 MB / 367.5 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.958e-05/0.1303, allocations: 29.41 kB / 367.5 MB, free: 4.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.693e-05/0.1303, allocations: 15.44 kB / 367.5 MB, free: 4.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1303, allocations: 0 / 367.5 MB, free: 4.02 MB / 302.1 MB Notification: Performance of Templates: time 0.003945/0.1343, allocations: 1.565 MB / 369.1 MB, free: 2.465 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/ShowTransferFunction/ShowTransferFunction.csv","../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:a[1],a[2],a[3],b[1],c,complexToPolar.useConjugateInput,const.k.im,const.k.re,const.y.im,const.y.re,d,logFrequencySweep.duration,logFrequencySweep.startTime,logFrequencySweep.wMax,logFrequencySweep.wMin,logFrequencySweep.y,m,time,transferFunction.a[1],transferFunction.a[2],transferFunction.a[3],transferFunction.aw[3].re,transferFunction.bSum.re,transferFunction.b[1],transferFunction.bw[1].re,transferFunction.u.im,transferFunction.u.re,transferFunction.useConjugateInput,transferFunction.y.im,transferFunction.y.re,wMax,wMin