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.001175/0.001175, allocations: 109.6 kB / 18.3 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 212.1 kB / 19.25 MB, free: 3.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.709/1.709, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 64.59 kB / 307.6 MB, free: 0.668 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1048, allocations: 50.53 MB / 358.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00402/0.1089, allocations: 2.215 MB / 360.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.1105, allocations: 0.744 MB / 361.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002598/0.1108, allocations: 7.938 kB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002215/0.111, allocations: 43.53 kB / 361.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002692/0.1113, allocations: 47.58 kB / 361.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004243/0.1118, allocations: 103.8 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003492/0.1121, allocations: 239.6 kB / 361.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.1124, allocations: 115.6 kB / 361.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002597/0.1127, allocations: 91.58 kB / 361.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001935/0.1129, allocations: 111.5 kB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.564e-05/0.1129, allocations: 20 kB / 361.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.113, allocations: 31.98 kB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.695e-05/0.1131, allocations: 59.83 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.1133, allocations: 107.3 kB / 362.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003241/0.1136, allocations: 239.4 kB / 362.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1136, allocations: 0 / 362.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1136, allocations: 0 / 362.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.384e-05/0.1136, allocations: 0 / 362.3 MB, free: 9.957 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.0009761/0.1146, allocations: 0.5457 MB / 362.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.1147, allocations: 12.03 kB / 362.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/0.1148, allocations: 36.5 kB / 362.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003085/0.1151, allocations: 255.5 kB / 363.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/0.1152, allocations: 16.81 kB / 363.1 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.942e-05/0.1152, allocations: 24.31 kB / 363.2 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005061/0.1158, allocations: 262.9 kB / 363.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.1158, allocations: 7.938 kB / 363.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.1158, allocations: 8 kB / 363.4 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.883e-05/0.1159, allocations: 12.44 kB / 363.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000451/0.1163, allocations: 189.6 kB / 363.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.1175, allocations: 0.8262 MB / 364.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003555/0.1179, allocations: 178.5 kB / 364.6 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000215/0.1181, allocations: 108.8 kB / 364.7 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.234e-05/0.1182, allocations: 85.09 kB / 364.8 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.1182, allocations: 42.88 kB / 364.9 MB, free: 7.168 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.414e-06/0.1183, allocations: 0 / 364.9 MB, free: 7.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001555/0.1198, allocations: 0.7278 MB / 365.6 MB, free: 6.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.1199, allocations: 59.39 kB / 365.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.1201, allocations: 209 kB / 365.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.1201, allocations: 37.7 kB / 365.9 MB, free: 6.062 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.245e-05/0.1202, allocations: 144.4 kB / 366 MB, free: 5.918 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.311e-05/0.1203, allocations: 86.8 kB / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.999e-05/0.1203, allocations: 45.7 kB / 366.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1205, allocations: 338.8 kB / 366.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.1207, allocations: 79.94 kB / 366.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.1209, allocations: 123.4 kB / 366.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004269/0.1213, allocations: 222.8 kB / 366.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1214, allocations: 0 / 366.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005488/0.1219, allocations: 273.2 kB / 367.2 MB, free: 4.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.1219, allocations: 8 kB / 367.2 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.122, allocations: 0 / 367.2 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.122, allocations: 4 kB / 367.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002949/0.1223, allocations: 63.95 kB / 367.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.1223, allocations: 0 / 367.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/0.1224, allocations: 19.97 kB / 367.3 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.1225, allocations: 12 kB / 367.3 MB, free: 4.625 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.0001239/0.1226, allocations: 149.7 kB / 367.4 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.387e-05/0.1227, allocations: 27.66 kB / 367.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006116/0.1233, allocations: 291.1 kB / 367.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.1233, allocations: 4 kB / 367.8 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1233, allocations: 0 / 367.8 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1233, allocations: 0 / 367.8 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.1244, allocations: 0.6905 MB / 368.4 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.1244, allocations: 0 / 368.4 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.1247, allocations: 59.91 kB / 368.5 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.1247, allocations: 0 / 368.5 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/0.1248, allocations: 11.94 kB / 368.5 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.772e-06/0.1248, allocations: 11.95 kB / 368.5 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1248, allocations: 0 / 368.5 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008174/0.1256, allocations: 484.4 kB / 369 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.1257, allocations: 112.8 kB / 369.1 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.719e-05/0.1258, allocations: 11.98 kB / 369.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.1259, allocations: 15.94 kB / 369.1 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.168e-05/0.126, allocations: 19.97 kB / 369.2 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.126, allocations: 8 kB / 369.2 MB, free: 2.641 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000131/0.1262, allocations: 160.5 kB / 369.3 MB, free: 2.484 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1262, allocations: 0 / 369.3 MB, free: 2.484 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003258/0.1265, allocations: 40 kB / 369.4 MB, free: 2.445 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.0001703/0.1267, allocations: 111.2 kB / 369.5 MB, free: 2.328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005745/0.1273, allocations: 255.7 kB / 369.7 MB, free: 2.078 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1273, allocations: 0 / 369.7 MB, free: 2.078 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002542/0.1275, allocations: 116.3 kB / 369.8 MB, free: 1.965 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.1279, allocations: 20.44 kB / 369.8 MB, free: 1.945 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.1291, allocations: 0.719 MB / 370.6 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.1294, allocations: 0.7639 MB / 371.3 MB, free: 408 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.802e-05/0.1295, allocations: 23.44 kB / 371.4 MB, free: 384 kB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1295, allocations: 0 / 371.4 MB, free: 384 kB / 302.1 MB Notification: Performance of Templates: time 0.1869/0.3164, allocations: 2.829 MB / 374.2 MB, free: 19.55 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