Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009503/0.0009503, allocations: 99.81 kB / 16.3 MB, free: 5.555 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.001002/0.001002, allocations: 183.1 kB / 17.2 MB, free: 5.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 223.2 MB / 241.1 MB, free: 360 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002572/0.0002572, allocations: 4 kB / 300.7 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1066, allocations: 50.42 MB / 351.1 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002433/0.109, allocations: 1.801 MB / 352.9 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.1102, allocations: 0.6548 MB / 353.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.1103, allocations: 4 kB / 353.6 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.1105, allocations: 15.8 kB / 353.6 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001907/0.1107, allocations: 55.78 kB / 353.7 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002062/0.1109, allocations: 71.86 kB / 353.7 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002532/0.1111, allocations: 152.1 kB / 353.9 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.1113, allocations: 85.89 kB / 354 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.1115, allocations: 71.64 kB / 354 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.1116, allocations: 83.55 kB / 354.1 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.123e-05/0.1117, allocations: 4 kB / 354.1 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.325e-05/0.1117, allocations: 15.98 kB / 354.1 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.51e-05/0.1118, allocations: 35.86 kB / 354.2 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.758e-05/0.1118, allocations: 57.56 kB / 354.2 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002017/0.1121, allocations: 163.9 kB / 354.4 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1121, allocations: 4 kB / 354.4 MB, free: 0.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1121, allocations: 4 kB / 354.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.1121, allocations: 0 / 354.4 MB, free: 0.7461 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008344/0.1129, allocations: 0.5026 MB / 354.9 MB, free: 200 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.113, allocations: 8.031 kB / 354.9 MB, free: 192 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.59e-05/0.1131, allocations: 35.58 kB / 354.9 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.1134, allocations: 246.6 kB / 355.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.1134, allocations: 12.44 kB / 355.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.758e-05/0.1135, allocations: 24 kB / 355.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004846/0.114, allocations: 254.7 kB / 355.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.114, allocations: 0 / 355.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.133e-05/0.114, allocations: 15.98 kB / 355.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.872e-05/0.1141, allocations: 16.38 kB / 355.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004742/0.1146, allocations: 205.6 kB / 355.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.1158, allocations: 0.8265 MB / 356.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003495/0.1161, allocations: 190 kB / 356.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.993e-05/0.1162, allocations: 85.28 kB / 356.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.1163, allocations: 38.75 kB / 356.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.543e-06/0.1163, allocations: 0 / 356.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001488/0.1178, allocations: 0.7487 MB / 357.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.1178, allocations: 55.34 kB / 357.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001904/0.118, allocations: 213 kB / 357.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.1181, allocations: 33.7 kB / 357.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.714e-05/0.1182, allocations: 156.3 kB / 358 MB, free: 12.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.916e-05/0.1182, allocations: 74.83 kB / 358.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.796e-05/0.1183, allocations: 8 kB / 358.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1184, allocations: 334.8 kB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.1186, allocations: 83.94 kB / 358.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.1188, allocations: 131.3 kB / 358.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002154/0.119, allocations: 101.5 kB / 358.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.119, allocations: 0 / 358.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005228/0.1196, allocations: 298.9 kB / 359 MB, free: 11.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.1196, allocations: 4 kB / 359 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1196, allocations: 0 / 359 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.1196, allocations: 4 kB / 359 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/0.12, allocations: 72 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.12, allocations: 7.922 kB / 359.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/0.1201, allocations: 15.98 kB / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.1201, allocations: 8 kB / 359.1 MB, free: 11.69 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 0.0001185/0.1203, allocations: 137.8 kB / 359.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.014e-05/0.1203, allocations: 27.67 kB / 359.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005956/0.1209, allocations: 312 kB / 359.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1209, allocations: 0 / 359.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.121, allocations: 0 / 359.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.121, allocations: 7.984 kB / 359.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.122, allocations: 0.6904 MB / 360.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.122, allocations: 0 / 360.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002794/0.1223, allocations: 63.92 kB / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.1223, allocations: 4 kB / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.499e-05/0.1224, allocations: 4 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.1224, allocations: 4 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1224, allocations: 0 / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008008/0.1232, allocations: 0.5137 MB / 360.9 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.925e-05/0.1233, allocations: 116.9 kB / 361 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.362e-05/0.1233, allocations: 4 kB / 361 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.1235, allocations: 19.98 kB / 361 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.548e-05/0.1236, allocations: 15.97 kB / 361.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.1236, allocations: 12 kB / 361.1 MB, free: 9.652 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001307/0.1237, allocations: 152.5 kB / 361.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1237, allocations: 0 / 361.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003058/0.124, allocations: 44 kB / 361.3 MB, free: 9.461 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,der1.u) * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001738/0.1242, allocations: 119.1 kB / 361.4 MB, free: 9.336 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004859/0.1247, allocations: 220.7 kB / 361.6 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1247, allocations: 0 / 361.6 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002359/0.125, allocations: 136 kB / 361.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.1253, allocations: 24.45 kB / 361.7 MB, free: 8.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.1265, allocations: 0.83 MB / 362.6 MB, free: 8.105 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.1269, allocations: 0.7719 MB / 363.3 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000125/0.127, allocations: 45.91 kB / 363.4 MB, free: 7.262 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.085e-05/0.1271, allocations: 19.44 kB / 363.4 MB, free: 7.242 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1271, allocations: 4 kB / 363.4 MB, free: 7.238 MB / 302.1 MB Notification: Performance of Templates: time 0.004868/0.132, allocations: 1.784 MB / 365.2 MB, free: 5.457 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches