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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001237/0.001237, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 225.6 MB / 234.8 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008336/0.0008337, allocations: 95.52 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.678e-05/1.675e-05, allocations: 4 kB / 343.7 MB, free: 8.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1104, allocations: 51.48 MB / 395.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.358/0.4684, allocations: 78.54 MB / 473.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.4687, allocations: 67.42 kB / 473.8 MB, free: 13.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01229/0.481, allocations: 4.488 MB / 478.3 MB, free: 10.72 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.481, allocations: 4 kB / 478.3 MB, free: 10.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.846e-05/0.481, allocations: 8 kB / 478.3 MB, free: 10.71 MB / 346.7 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.0005907/0.4816, allocations: 0.5057 MB / 478.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.4817, allocations: 12.03 kB / 478.8 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.4818, allocations: 28.59 kB / 478.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.4821, allocations: 256.3 kB / 479.1 MB, free: 9.922 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.4821, allocations: 11.94 kB / 479.1 MB, free: 9.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.4821, allocations: 12 kB / 479.1 MB, free: 9.898 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002363/0.4824, allocations: 137.9 kB / 479.2 MB, free: 9.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002796/0.4827, allocations: 207.9 kB / 479.4 MB, free: 9.672 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.4827, allocations: 3.906 kB / 479.4 MB, free: 9.668 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.4827, allocations: 7.938 kB / 479.4 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.448e-05/0.4828, allocations: 13.8 kB / 479.5 MB, free: 9.648 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000948/0.4837, allocations: 0.757 MB / 480.2 MB, free: 9.027 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.4839, allocations: 170 kB / 480.4 MB, free: 8.898 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.484, allocations: 88.14 kB / 480.5 MB, free: 8.836 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.45e-05/0.4841, allocations: 88.16 kB / 480.6 MB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.443e-05/0.4842, allocations: 34.56 kB / 480.6 MB, free: 8.691 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.482e-06/0.4842, allocations: 0 / 480.6 MB, free: 8.691 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003289/0.4845, allocations: 201.1 kB / 480.8 MB, free: 8.531 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.951e-05/0.4845, allocations: 51.41 kB / 480.8 MB, free: 8.469 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.4846, allocations: 162.7 kB / 481 MB, free: 8.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.4847, allocations: 25.7 kB / 481 MB, free: 8.289 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.291e-05/0.4847, allocations: 148 kB / 481.2 MB, free: 8.164 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.476e-05/0.4848, allocations: 84.31 kB / 481.2 MB, free: 8.094 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.094e-05/0.4848, allocations: 0 / 481.2 MB, free: 8.094 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.047e-05/0.4849, allocations: 336.8 kB / 481.6 MB, free: 7.766 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.273e-05/0.485, allocations: 63.36 kB / 481.6 MB, free: 7.727 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.4851, allocations: 101.6 kB / 481.7 MB, free: 7.637 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001231/0.4852, allocations: 84.39 kB / 481.8 MB, free: 7.582 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.4852, allocations: 0 / 481.8 MB, free: 7.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002844/0.4855, allocations: 222.7 kB / 482 MB, free: 7.406 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.4855, allocations: 11.95 kB / 482 MB, free: 7.395 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.4856, allocations: 0 / 482 MB, free: 7.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.4856, allocations: 7.938 kB / 482.1 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.4858, allocations: 63.33 kB / 482.1 MB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.4858, allocations: 0 / 482.1 MB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.486, allocations: 31.72 kB / 482.1 MB, free: 7.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.486, allocations: 15.88 kB / 482.2 MB, free: 7.285 MB / 346.7 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 () * 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 6.218e-05/0.4861, allocations: 101 kB / 482.3 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.4861, allocations: 19.81 kB / 482.3 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003695/0.4865, allocations: 259.2 kB / 482.5 MB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.4865, allocations: 0 / 482.5 MB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4865, allocations: 0 / 482.5 MB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.4865, allocations: 3.984 kB / 482.5 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006294/0.4872, allocations: 0.5955 MB / 483.1 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.4872, allocations: 0 / 483.1 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002688/0.4875, allocations: 55.86 kB / 483.2 MB, free: 6.363 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.4875, allocations: 8 kB / 483.2 MB, free: 6.355 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.4875, allocations: 7.234 kB / 483.2 MB, free: 6.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.4875, allocations: 4 kB / 483.2 MB, free: 6.348 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4875, allocations: 3.984 kB / 483.2 MB, free: 6.344 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004163/0.4879, allocations: 426.3 kB / 483.6 MB, free: 5.996 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.194e-05/0.488, allocations: 116.7 kB / 483.7 MB, free: 5.867 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.107e-05/0.4881, allocations: 3.953 kB / 483.7 MB, free: 5.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.4882, allocations: 17.86 kB / 483.8 MB, free: 5.848 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.4883, allocations: 19.78 kB / 483.8 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.4883, allocations: 6.938 kB / 483.8 MB, free: 5.828 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.571e-05/0.4884, allocations: 131 kB / 483.9 MB, free: 5.719 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4884, allocations: 0 / 483.9 MB, free: 5.719 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002806/0.4886, allocations: 59.78 kB / 484 MB, free: 5.66 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * 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.0001468/0.4888, allocations: 111.2 kB / 484.1 MB, free: 5.539 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002551/0.4891, allocations: 187.7 kB / 484.3 MB, free: 5.406 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.4891, allocations: 0 / 484.3 MB, free: 5.406 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.4892, allocations: 101.6 kB / 484.4 MB, free: 5.332 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.4894, allocations: 13.2 kB / 484.4 MB, free: 5.324 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000786/0.4902, allocations: 0.5736 MB / 484.9 MB, free: 4.781 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001679/0.4904, allocations: 0.7633 MB / 485.7 MB, free: 3.992 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001276/0.4905, allocations: 54.03 kB / 485.8 MB, free: 3.941 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.768e-05/0.4906, allocations: 26.67 kB / 485.8 MB, free: 3.918 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4906, allocations: 1.875 kB / 485.8 MB, free: 3.918 MB / 346.7 MB Notification: Performance of Templates: time 0.003752/0.4943, allocations: 1.598 MB / 487.4 MB, free: 2.367 MB / 346.7 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","../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches