Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 110.3 kB / 17.06 MB, free: 6.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001533/0.001534, allocations: 191 kB / 18 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009355/0.0009355, allocations: 47.94 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3868, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003853/0.3907, allocations: 2.215 MB / 402.9 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.392, allocations: 0.6894 MB / 403.6 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.3922, allocations: 4 kB / 403.6 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002271/0.3924, allocations: 51.45 kB / 403.7 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002214/0.3926, allocations: 43.66 kB / 403.7 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002845/0.3929, allocations: 95.77 kB / 403.8 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003011/0.3932, allocations: 251.6 kB / 404.1 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000262/0.3935, allocations: 111.6 kB / 404.2 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.3937, allocations: 91.64 kB / 404.3 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/0.3938, allocations: 107.5 kB / 404.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.576e-05/0.3939, allocations: 20 kB / 404.4 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.641e-05/0.394, allocations: 28 kB / 404.4 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.745e-05/0.3941, allocations: 59.75 kB / 404.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.3942, allocations: 107.3 kB / 404.6 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.3945, allocations: 246.7 kB / 404.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.3945, allocations: 0 / 404.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3945, allocations: 0 / 404.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.3945, allocations: 4 kB / 404.8 MB, free: 4.754 MB / 318.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.000941/0.3955, allocations: 0.5471 MB / 405.4 MB, free: 4.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3955, allocations: 15.89 kB / 405.4 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.771e-05/0.3956, allocations: 28.56 kB / 405.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003058/0.3959, allocations: 245.1 kB / 405.6 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.3959, allocations: 16.8 kB / 405.7 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.056e-05/0.396, allocations: 27.94 kB / 405.7 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005025/0.3965, allocations: 254.6 kB / 405.9 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.3965, allocations: 0 / 405.9 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.3966, allocations: 15.98 kB / 405.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.029e-05/0.3966, allocations: 12.38 kB / 406 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004544/0.3971, allocations: 205.5 kB / 406.2 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.3982, allocations: 0.8107 MB / 407 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003584/0.3986, allocations: 186.4 kB / 407.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002217/0.3988, allocations: 106.5 kB / 407.3 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.399, allocations: 89.03 kB / 407.3 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.399, allocations: 42.55 kB / 407.4 MB, free: 1.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.323e-06/0.399, allocations: 3.938 kB / 407.4 MB, free: 1.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001478/0.4005, allocations: 0.7146 MB / 408.1 MB, free: 1.207 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.4005, allocations: 55.41 kB / 408.2 MB, free: 1.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.4008, allocations: 213 kB / 408.4 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.4008, allocations: 33.7 kB / 408.4 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.4009, allocations: 152.3 kB / 408.6 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.198e-05/0.401, allocations: 82.81 kB / 408.6 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.591e-05/0.4011, allocations: 45.7 kB / 408.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.4012, allocations: 338.8 kB / 409 MB, free: 264 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001951/0.4014, allocations: 79.95 kB / 409.1 MB, free: 184 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.4016, allocations: 135.3 kB / 409.2 MB, free: 36 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004268/0.4021, allocations: 210.2 kB / 409.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.4021, allocations: 3.938 kB / 409.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005208/0.4026, allocations: 273.2 kB / 409.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.4026, allocations: 8 kB / 409.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.4027, allocations: 0 / 409.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.4027, allocations: 4 kB / 409.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002888/0.403, allocations: 67.95 kB / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.403, allocations: 0 / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001301/0.4031, allocations: 19.92 kB / 409.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.83e-05/0.4032, allocations: 11.98 kB / 409.8 MB, free: 15.43 MB / 334.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.0001299/0.4033, allocations: 141.8 kB / 409.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.793e-05/0.4034, allocations: 23.72 kB / 410 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006054/0.404, allocations: 295.8 kB / 410.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.404, allocations: 4 kB / 410.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.404, allocations: 3.938 kB / 410.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.404, allocations: 3.938 kB / 410.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.405, allocations: 0.6868 MB / 411 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.405, allocations: 0 / 411 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.4053, allocations: 51.97 kB / 411 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.4053, allocations: 3.938 kB / 411 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.4054, allocations: 8 kB / 411 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.4054, allocations: 0 / 411 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4054, allocations: 0 / 411 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007813/0.4062, allocations: 489.3 kB / 411.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.963e-05/0.4063, allocations: 116.9 kB / 411.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.4063, allocations: 11.94 kB / 411.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.4065, allocations: 11.98 kB / 411.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.914e-05/0.4066, allocations: 23.97 kB / 411.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.4066, allocations: 8 kB / 411.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001345/0.4067, allocations: 156.5 kB / 411.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4067, allocations: 0 / 411.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002972/0.407, allocations: 47.94 kB / 411.9 MB, free: 13.26 MB / 334.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.00017/0.4072, allocations: 115.1 kB / 412 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005056/0.4077, allocations: 224.6 kB / 412.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4077, allocations: 3.938 kB / 412.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.408, allocations: 115.9 kB / 412.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.4083, allocations: 38.86 kB / 412.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.4095, allocations: 0.6862 MB / 413 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.4099, allocations: 0.7753 MB / 413.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.41, allocations: 45.91 kB / 413.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.166e-05/0.4101, allocations: 23.44 kB / 413.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4101, allocations: 0 / 413.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of Templates: time 0.006046/0.4161, allocations: 2.078 MB / 416 MB, free: 9.105 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches