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.001406/0.001406, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.9 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 59.73 kB / 306.9 MB, free: 1.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09802/0.09933, allocations: 50.54 MB / 357.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003544/0.1029, allocations: 2.26 MB / 359.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.1043, allocations: 0.7401 MB / 360.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002052/0.1046, allocations: 7.938 kB / 360.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002745/0.1049, allocations: 27.72 kB / 360.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003264/0.1053, allocations: 43.7 kB / 360.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003238/0.1056, allocations: 87.86 kB / 360.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002892/0.1059, allocations: 223.6 kB / 360.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000236/0.1061, allocations: 107.6 kB / 360.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002204/0.1064, allocations: 91.56 kB / 361 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.1066, allocations: 103.5 kB / 361.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.417e-05/0.1067, allocations: 12 kB / 361.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.1068, allocations: 23.98 kB / 361.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.1069, allocations: 55.83 kB / 361.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.1071, allocations: 103.3 kB / 361.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002261/0.1073, allocations: 164 kB / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1073, allocations: 0 / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1073, allocations: 0 / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.1073, allocations: 0 / 361.5 MB, free: 10.45 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.0009866/0.1083, allocations: 0.5495 MB / 362 MB, free: 9.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.1084, allocations: 12.03 kB / 362 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.1085, allocations: 32.56 kB / 362.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.1088, allocations: 255.5 kB / 362.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.1089, allocations: 24.75 kB / 362.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.479e-05/0.1089, allocations: 20.38 kB / 362.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005567/0.1095, allocations: 258.9 kB / 362.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.1095, allocations: 0 / 362.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.421e-05/0.1095, allocations: 12 kB / 362.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.81e-05/0.1096, allocations: 16.42 kB / 362.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004751/0.1101, allocations: 185.6 kB / 362.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.1113, allocations: 0.8262 MB / 363.6 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000376/0.1117, allocations: 186.5 kB / 363.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002539/0.112, allocations: 108.8 kB / 363.9 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.801e-05/0.1121, allocations: 85.09 kB / 364 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.1121, allocations: 38.81 kB / 364 MB, free: 7.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.303e-06/0.1121, allocations: 0 / 364 MB, free: 7.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001496/0.1136, allocations: 0.7207 MB / 364.8 MB, free: 6.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.1137, allocations: 59.41 kB / 364.8 MB, free: 6.816 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/0.1139, allocations: 217 kB / 365 MB, free: 6.594 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.1139, allocations: 33.7 kB / 365.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.387e-05/0.114, allocations: 148.4 kB / 365.2 MB, free: 6.406 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.041e-05/0.1141, allocations: 82.8 kB / 365.3 MB, free: 6.324 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.1142, allocations: 49.7 kB / 365.3 MB, free: 6.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1144, allocations: 330.8 kB / 365.7 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003534/0.1148, allocations: 87.88 kB / 365.7 MB, free: 5.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002836/0.1151, allocations: 123.4 kB / 365.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004055/0.1155, allocations: 226.4 kB / 366.1 MB, free: 5.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.1155, allocations: 0 / 366.1 MB, free: 5.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005966/0.1161, allocations: 273.2 kB / 366.4 MB, free: 5.215 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1161, allocations: 4 kB / 366.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1161, allocations: 0 / 366.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.1162, allocations: 7.938 kB / 366.4 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002864/0.1165, allocations: 59.95 kB / 366.4 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.1165, allocations: 0 / 366.4 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001396/0.1166, allocations: 19.97 kB / 366.4 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.1166, allocations: 11.94 kB / 366.5 MB, free: 5.113 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.0001298/0.1168, allocations: 145.8 kB / 366.6 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.897e-05/0.1168, allocations: 27.7 kB / 366.6 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005845/0.1174, allocations: 295.8 kB / 366.9 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1174, allocations: 4 kB / 366.9 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1174, allocations: 0 / 366.9 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1175, allocations: 0 / 366.9 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001191/0.1187, allocations: 0.6864 MB / 367.6 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.1187, allocations: 4 kB / 367.6 MB, free: 3.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.119, allocations: 51.91 kB / 367.7 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.119, allocations: 3.938 kB / 367.7 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.119, allocations: 8 kB / 367.7 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.119, allocations: 7.969 kB / 367.7 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.119, allocations: 4 kB / 367.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007834/0.1198, allocations: 489.2 kB / 368.2 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.1199, allocations: 112.9 kB / 368.3 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.339e-05/0.12, allocations: 12 kB / 368.3 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.1201, allocations: 15.92 kB / 368.3 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.922e-05/0.1202, allocations: 16.16 kB / 368.3 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.1202, allocations: 16 kB / 368.3 MB, free: 3.129 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001296/0.1204, allocations: 156.5 kB / 368.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1204, allocations: 0 / 368.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000316/0.1207, allocations: 48 kB / 368.5 MB, free: 2.93 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.0001726/0.1209, allocations: 115.1 kB / 368.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000484/0.1214, allocations: 212.5 kB / 368.9 MB, free: 2.602 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1214, allocations: 4 kB / 368.9 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.1216, allocations: 123.8 kB / 369 MB, free: 2.477 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.122, allocations: 24.42 kB / 369 MB, free: 2.453 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/0.1231, allocations: 0.8023 MB / 369.8 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.1234, allocations: 0.7681 MB / 370.6 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.021e-05/0.1235, allocations: 31.42 kB / 370.6 MB, free: 0.793 MB / 302.1 MB Notification: Performance of SimCode: time 1.794e-06/0.1235, allocations: 0 / 370.6 MB, free: 0.793 MB / 302.1 MB Notification: Performance of Templates: time 0.1552/0.2788, allocations: 2.807 MB / 373.4 MB, free: 19.36 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