Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.00136, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.593/1.593, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 61.17 kB / 307.9 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1086, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003775/0.1124, allocations: 2.215 MB / 360.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.1138, allocations: 0.7478 MB / 361.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.1139, allocations: 7.938 kB / 361.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001969/0.1141, allocations: 43.53 kB / 361.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000181/0.1143, allocations: 43.58 kB / 361.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.1146, allocations: 103.8 kB / 361.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002961/0.1149, allocations: 235.7 kB / 361.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002508/0.1152, allocations: 123.6 kB / 361.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/0.1154, allocations: 91.58 kB / 362 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.1156, allocations: 107.4 kB / 362.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.754e-05/0.1156, allocations: 20 kB / 362.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.968e-05/0.1157, allocations: 35.98 kB / 362.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.961e-05/0.1158, allocations: 51.83 kB / 362.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.116, allocations: 111.3 kB / 362.3 MB, free: 10 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003046/0.1163, allocations: 235.4 kB / 362.6 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1163, allocations: 4 kB / 362.6 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1163, allocations: 0 / 362.6 MB, free: 9.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.1163, allocations: 4 kB / 362.6 MB, free: 9.766 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.0009623/0.1173, allocations: 0.5495 MB / 363.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.1173, allocations: 8.031 kB / 363.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.1175, allocations: 32.56 kB / 363.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003495/0.1179, allocations: 263.8 kB / 363.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.878e-05/0.1179, allocations: 12.81 kB / 363.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.473e-05/0.118, allocations: 28.38 kB / 363.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005024/0.1185, allocations: 258.9 kB / 363.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.1185, allocations: 0 / 363.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.52e-05/0.1185, allocations: 12 kB / 363.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.967e-05/0.1186, allocations: 12.44 kB / 363.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004694/0.119, allocations: 193.5 kB / 363.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.1203, allocations: 0.8262 MB / 364.8 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003797/0.1207, allocations: 182.4 kB / 364.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.1209, allocations: 111.4 kB / 365 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001198/0.121, allocations: 81.11 kB / 365.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.1211, allocations: 42.88 kB / 365.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.1211, allocations: 0 / 365.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001534/0.1226, allocations: 0.7249 MB / 365.9 MB, free: 6.199 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.1227, allocations: 55.41 kB / 365.9 MB, free: 6.133 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.1229, allocations: 209 kB / 366.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.123, allocations: 29.7 kB / 366.2 MB, free: 5.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.1231, allocations: 148.4 kB / 366.3 MB, free: 5.734 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.52e-05/0.1231, allocations: 86.8 kB / 366.4 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.794e-05/0.1232, allocations: 45.7 kB / 366.4 MB, free: 5.598 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1234, allocations: 342.8 kB / 366.8 MB, free: 5.254 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/0.1236, allocations: 83.88 kB / 366.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.1238, allocations: 119.4 kB / 367 MB, free: 5.043 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004374/0.1243, allocations: 225.8 kB / 367.2 MB, free: 4.812 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1243, allocations: 4 kB / 367.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005372/0.1248, allocations: 268.4 kB / 367.5 MB, free: 4.543 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.1249, allocations: 11.98 kB / 367.5 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1249, allocations: 3.984 kB / 367.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.1249, allocations: 0 / 367.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002768/0.1252, allocations: 67.95 kB / 367.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.1252, allocations: 4 kB / 367.6 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001278/0.1253, allocations: 15.98 kB / 367.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.1254, allocations: 8 kB / 367.6 MB, free: 4.434 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.0001428/0.1255, allocations: 145.7 kB / 367.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.521e-05/0.1256, allocations: 23.66 kB / 367.7 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006296/0.1262, allocations: 295.2 kB / 368 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1262, allocations: 4 kB / 368 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1262, allocations: 0 / 368 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.822e-06/0.1262, allocations: 3.938 kB / 368 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.1273, allocations: 0.6944 MB / 368.7 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1274, allocations: 0 / 368.7 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002793/0.1276, allocations: 55.97 kB / 368.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1277, allocations: 0 / 368.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.1277, allocations: 7.984 kB / 368.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1277, allocations: 7.875 kB / 368.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1277, allocations: 0 / 368.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008452/0.1285, allocations: 488.4 kB / 369.3 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.1287, allocations: 116.9 kB / 369.4 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.1287, allocations: 4 kB / 369.4 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.1289, allocations: 19.92 kB / 369.4 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.763e-05/0.1289, allocations: 15.98 kB / 369.4 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.129, allocations: 4 kB / 369.4 MB, free: 2.461 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001506/0.1291, allocations: 160.5 kB / 369.6 MB, free: 2.305 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1291, allocations: 0 / 369.6 MB, free: 2.305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003032/0.1294, allocations: 48 kB / 369.6 MB, free: 2.258 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.0001689/0.1296, allocations: 103.2 kB / 369.7 MB, free: 2.148 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005879/0.1302, allocations: 255.9 kB / 370 MB, free: 1.898 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.1302, allocations: 4.125 kB / 370 MB, free: 1.895 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002507/0.1305, allocations: 120.3 kB / 370.1 MB, free: 1.777 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.1308, allocations: 26.44 kB / 370.1 MB, free: 1.754 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.1321, allocations: 0.7186 MB / 370.9 MB, free: 1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004191/0.1325, allocations: 0.7639 MB / 371.6 MB, free: 212 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.428e-05/0.1326, allocations: 27.44 kB / 371.6 MB, free: 184 kB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1326, allocations: 0 / 371.6 MB, free: 184 kB / 302.1 MB Notification: Performance of Templates: time 0.1553/0.2879, allocations: 2.822 MB / 374.5 MB, free: 19.54 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches