Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.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.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_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007678/0.0007678, allocations: 96.42 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009831/0.0009833, allocations: 207.6 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002362/0.0002362, allocations: 4 kB / 308.4 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1066, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002454/0.1091, allocations: 1.894 MB / 361.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.1105, allocations: 0.7323 MB / 362.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001986/0.1107, allocations: 7.938 kB / 362.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001746/0.1109, allocations: 31.72 kB / 362.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000195/0.1111, allocations: 31.72 kB / 362.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002953/0.1114, allocations: 91.84 kB / 362.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002901/0.1117, allocations: 227.6 kB / 362.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002464/0.112, allocations: 115.6 kB / 363 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.1122, allocations: 63.66 kB / 363.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.1123, allocations: 91.42 kB / 363.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.768e-05/0.1124, allocations: 8 kB / 363.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.262e-05/0.1124, allocations: 19.98 kB / 363.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.138e-05/0.1125, allocations: 39.83 kB / 363.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.542e-05/0.1126, allocations: 113.1 kB / 363.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002028/0.1128, allocations: 167.9 kB / 363.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1128, allocations: 4 kB / 363.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1129, allocations: 0 / 363.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.1129, allocations: 0 / 363.5 MB, free: 9.66 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008047/0.1137, allocations: 0.5028 MB / 364 MB, free: 9.105 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.1137, allocations: 8.031 kB / 364 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.1139, allocations: 40.55 kB / 364.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003209/0.1142, allocations: 259.5 kB / 364.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.1142, allocations: 16.81 kB / 364.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.933e-05/0.1143, allocations: 24.36 kB / 364.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004826/0.1148, allocations: 259 kB / 364.6 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.1148, allocations: 0 / 364.6 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.338e-05/0.1148, allocations: 12 kB / 364.6 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.703e-05/0.1149, allocations: 12.38 kB / 364.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00046/0.1153, allocations: 201.6 kB / 364.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.1165, allocations: 0.8302 MB / 365.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003535/0.1169, allocations: 182.5 kB / 365.8 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.1171, allocations: 114.1 kB / 366 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001018/0.1172, allocations: 89.09 kB / 366 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.1172, allocations: 38.88 kB / 366.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.342e-06/0.1173, allocations: 0 / 366.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.00152/0.1188, allocations: 0.7525 MB / 366.8 MB, free: 6.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.1188, allocations: 59.34 kB / 366.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.119, allocations: 213 kB / 367.1 MB, free: 5.801 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.1191, allocations: 33.64 kB / 367.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.305e-05/0.1192, allocations: 156.2 kB / 367.3 MB, free: 5.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.098e-05/0.1193, allocations: 78.83 kB / 367.4 MB, free: 5.527 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.362e-05/0.1193, allocations: 29.7 kB / 367.4 MB, free: 5.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.1194, allocations: 330.8 kB / 367.7 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000217/0.1196, allocations: 95.94 kB / 367.8 MB, free: 5.066 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002188/0.1199, allocations: 123.4 kB / 367.9 MB, free: 4.934 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004344/0.1203, allocations: 234.7 kB / 368.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.582e-06/0.1203, allocations: 0 / 368.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005488/0.1209, allocations: 285.2 kB / 368.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.1209, allocations: 4 kB / 368.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.1209, allocations: 4 kB / 368.4 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.1209, allocations: 0 / 368.4 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002801/0.1212, allocations: 63.89 kB / 368.5 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.1212, allocations: 4.062 kB / 368.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/0.1214, allocations: 23.97 kB / 368.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.1214, allocations: 12 kB / 368.6 MB, free: 4.301 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001401/0.1216, allocations: 149.6 kB / 368.7 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.658e-05/0.1216, allocations: 19.72 kB / 368.7 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006153/0.1222, allocations: 307.1 kB / 369 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.311e-06/0.1223, allocations: 7.984 kB / 369 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1223, allocations: 64 / 369 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.1223, allocations: 4 kB / 369 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.1233, allocations: 0.6961 MB / 369.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1234, allocations: 0 / 369.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002897/0.1237, allocations: 63.94 kB / 369.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.1237, allocations: 4 kB / 369.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.1237, allocations: 4 kB / 369.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.832e-06/0.1237, allocations: 11.92 kB / 369.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1237, allocations: 0 / 369.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008023/0.1245, allocations: 498.5 kB / 370.3 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.341e-05/0.1246, allocations: 112.9 kB / 370.4 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.1247, allocations: 7.984 kB / 370.4 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.1248, allocations: 15.94 kB / 370.4 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.212e-05/0.1249, allocations: 27.91 kB / 370.5 MB, free: 2.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.1249, allocations: 4 kB / 370.5 MB, free: 2.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001268/0.1251, allocations: 160.5 kB / 370.6 MB, free: 2.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1251, allocations: 0 / 370.6 MB, free: 2.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00031/0.1254, allocations: 52 kB / 370.7 MB, free: 2.078 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 (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.0001459/0.1255, allocations: 99.25 kB / 370.8 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000516/0.1261, allocations: 239.9 kB / 371 MB, free: 1.738 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1261, allocations: 3.938 kB / 371 MB, free: 1.734 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002415/0.1263, allocations: 123.9 kB / 371.1 MB, free: 1.613 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.1267, allocations: 30.84 kB / 371.2 MB, free: 1.586 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.1279, allocations: 0.8768 MB / 372 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.167/0.2948, allocations: 0.7603 MB / 372.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.295, allocations: 25.81 kB / 372.8 MB, free: 18.92 MB / 302.1 MB Notification: Performance of SimCode: time 1.313e-06/0.295, allocations: 0 / 372.8 MB, free: 18.92 MB / 302.1 MB Notification: Performance of Templates: time 0.008029/0.3031, allocations: 2.787 MB / 375.6 MB, free: 18.82 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches