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.001148/0.001148, allocations: 98.67 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001755/0.001755, allocations: 192.2 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002404/0.0002405, allocations: 8 kB / 307.1 MB, free: 1.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09169/0.09194, allocations: 51.52 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.0023/0.09429, allocations: 1.84 MB / 360.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001223/0.09554, allocations: 0.6859 MB / 361.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.09572, allocations: 4 kB / 361.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.0959, allocations: 35.66 kB / 361.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001922/0.0961, allocations: 35.77 kB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003579/0.09647, allocations: 71.86 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000281/0.09677, allocations: 207.8 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.09699, allocations: 85.84 kB / 361.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.09719, allocations: 75.64 kB / 361.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.09734, allocations: 87.53 kB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.09737, allocations: 8 kB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.26e-05/0.09746, allocations: 20 kB / 361.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.448e-05/0.09752, allocations: 35.84 kB / 361.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.125e-05/0.09758, allocations: 61.52 kB / 361.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002235/0.09781, allocations: 167.9 kB / 362 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.09782, allocations: 0 / 362 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.09783, allocations: 0 / 362 MB, free: 10.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.09785, allocations: 0 / 362 MB, free: 10.21 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.000788/0.09864, allocations: 0.5066 MB / 362.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.09868, allocations: 8.031 kB / 362.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.09882, allocations: 35.61 kB / 362.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.0991, allocations: 242.4 kB / 362.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.09914, allocations: 20.38 kB / 362.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.265e-05/0.09919, allocations: 24 kB / 362.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004666/0.09966, allocations: 266.5 kB / 363.1 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.09969, allocations: 7.844 kB / 363.1 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.09972, allocations: 8 kB / 363.1 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.686e-05/0.09975, allocations: 12.44 kB / 363.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004407/0.1002, allocations: 205.5 kB / 363.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.1013, allocations: 0.8187 MB / 364.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003409/0.1017, allocations: 199 kB / 364.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002162/0.1019, allocations: 109.9 kB / 364.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.931e-05/0.102, allocations: 89.28 kB / 364.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.102, allocations: 34.75 kB / 364.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.473e-06/0.102, allocations: 0 / 364.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001486/0.1035, allocations: 0.7513 MB / 365.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.1036, allocations: 51.41 kB / 365.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.1038, allocations: 217 kB / 365.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.1038, allocations: 25.7 kB / 365.6 MB, free: 6.328 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.905e-05/0.1039, allocations: 160.3 kB / 365.8 MB, free: 6.168 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.502e-05/0.104, allocations: 74.83 kB / 365.8 MB, free: 6.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.303e-05/0.104, allocations: 4 kB / 365.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1042, allocations: 338.8 kB / 366.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.1044, allocations: 87.94 kB / 366.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002103/0.1046, allocations: 127.4 kB / 366.4 MB, free: 5.527 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002117/0.1048, allocations: 106.9 kB / 366.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1048, allocations: 0 / 366.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005234/0.1053, allocations: 285.2 kB / 366.8 MB, free: 5.141 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.1054, allocations: 4 kB / 366.8 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.1054, allocations: 4 kB / 366.8 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.1054, allocations: 0 / 366.8 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.1057, allocations: 71.95 kB / 366.9 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.1057, allocations: 0 / 366.9 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.1059, allocations: 19.98 kB / 366.9 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.1059, allocations: 7.938 kB / 366.9 MB, free: 5.035 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.0001375/0.106, allocations: 149.7 kB / 367 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.825e-05/0.1061, allocations: 19.72 kB / 367 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005693/0.1067, allocations: 303.2 kB / 367.3 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1067, allocations: 7.938 kB / 367.3 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1067, allocations: 4.062 kB / 367.4 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1067, allocations: 3.984 kB / 367.4 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009738/0.1077, allocations: 0.6922 MB / 368 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.1077, allocations: 0 / 368 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002661/0.108, allocations: 59.94 kB / 368.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.108, allocations: 7.984 kB / 368.1 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.108, allocations: 8 kB / 368.1 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.108, allocations: 0 / 368.1 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.108, allocations: 3.938 kB / 368.1 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007732/0.1088, allocations: 0.4976 MB / 368.6 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.445e-05/0.1089, allocations: 116.9 kB / 368.7 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/0.1089, allocations: 4 kB / 368.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.1091, allocations: 19.98 kB / 368.8 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.188e-05/0.1092, allocations: 11.98 kB / 368.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.1092, allocations: 19.94 kB / 368.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001227/0.1093, allocations: 152.5 kB / 368.9 MB, free: 2.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.563e-06/0.1093, allocations: 0 / 368.9 MB, free: 2.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.1096, allocations: 47.94 kB / 369 MB, free: 2.812 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.0001627/0.1098, allocations: 103.2 kB / 369.1 MB, free: 2.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004786/0.1103, allocations: 232 kB / 369.3 MB, free: 2.477 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1103, allocations: 0 / 369.3 MB, free: 2.477 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002266/0.1105, allocations: 128 kB / 369.4 MB, free: 2.352 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.1109, allocations: 30.95 kB / 369.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.1121, allocations: 0.8205 MB / 370.3 MB, free: 1.473 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/0.1125, allocations: 0.772 MB / 371.1 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001355/0.1126, allocations: 41.92 kB / 371.1 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.255e-05/0.1127, allocations: 23.42 kB / 371.1 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of SimCode: time 4.6e-07/0.1127, allocations: 4 kB / 371.1 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of Templates: time 0.191/0.3037, allocations: 1.744 MB / 372.9 MB, free: 18.76 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches