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.001495/0.001495, allocations: 111.1 kB / 17.74 MB, free: 5.324 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.001576/0.001576, allocations: 188.2 kB / 18.67 MB, free: 4.398 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.603/1.603, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 51.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.361/0.3622, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00385/0.3662, allocations: 2.208 MB / 403.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.3676, allocations: 0.701 MB / 404.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001424/0.3677, allocations: 4 kB / 404.3 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002043/0.3679, allocations: 47.47 kB / 404.4 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000202/0.3682, allocations: 43.64 kB / 404.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003014/0.3685, allocations: 107.8 kB / 404.5 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003208/0.3688, allocations: 231.7 kB / 404.7 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000251/0.3691, allocations: 119.6 kB / 404.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.3693, allocations: 87.58 kB / 404.9 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.3694, allocations: 111.5 kB / 405 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.858e-05/0.3695, allocations: 16 kB / 405.1 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.063e-05/0.3696, allocations: 28 kB / 405.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.457e-05/0.3697, allocations: 63.77 kB / 405.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.3698, allocations: 107.3 kB / 405.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003619/0.3702, allocations: 248.1 kB / 405.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.3702, allocations: 4 kB / 405.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3702, allocations: 0 / 405.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.3702, allocations: 0 / 405.5 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.001013/0.3712, allocations: 0.5457 MB / 406 MB, free: 4.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.3713, allocations: 11.89 kB / 406.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.936e-05/0.3713, allocations: 32.56 kB / 406.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003198/0.3717, allocations: 249.1 kB / 406.3 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.012e-05/0.3717, allocations: 16.81 kB / 406.3 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.25e-05/0.3718, allocations: 31.92 kB / 406.4 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005311/0.3723, allocations: 258.6 kB / 406.6 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.3723, allocations: 0 / 406.6 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.3724, allocations: 4 kB / 406.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.257e-05/0.3724, allocations: 12.44 kB / 406.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004517/0.3729, allocations: 197.5 kB / 406.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.3741, allocations: 0.8223 MB / 407.7 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003899/0.3745, allocations: 186.4 kB / 407.8 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/0.3747, allocations: 105.2 kB / 407.9 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001315/0.3749, allocations: 89.05 kB / 408 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.3749, allocations: 30.56 kB / 408.1 MB, free: 1.988 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.433e-06/0.3749, allocations: 8 kB / 408.1 MB, free: 1.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001546/0.3765, allocations: 0.7159 MB / 408.8 MB, free: 1.211 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/0.3765, allocations: 51.41 kB / 408.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.3767, allocations: 217 kB / 409.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.3768, allocations: 29.7 kB / 409.1 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.3769, allocations: 156.3 kB / 409.2 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.271e-05/0.377, allocations: 86.8 kB / 409.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.901e-05/0.377, allocations: 45.69 kB / 409.4 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.3772, allocations: 338.8 kB / 409.7 MB, free: 264 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.3774, allocations: 83.95 kB / 409.8 MB, free: 180 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.3777, allocations: 127.4 kB / 409.9 MB, free: 40 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004341/0.3781, allocations: 210.3 kB / 410.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3781, allocations: 0 / 410.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005388/0.3787, allocations: 285.1 kB / 410.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.3787, allocations: 4 kB / 410.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3787, allocations: 4 kB / 410.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.3787, allocations: 0 / 410.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000284/0.379, allocations: 59.89 kB / 410.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.379, allocations: 4 kB / 410.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.3792, allocations: 23.98 kB / 410.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.3792, allocations: 8 kB / 410.5 MB, free: 15.44 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.0001492/0.3794, allocations: 145.8 kB / 410.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.952e-05/0.3794, allocations: 23.72 kB / 410.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006307/0.3801, allocations: 299.8 kB / 410.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3801, allocations: 0 / 410.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3801, allocations: 0 / 410.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.3801, allocations: 15.86 kB / 411 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.3812, allocations: 0.6713 MB / 411.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3812, allocations: 0 / 411.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002959/0.3815, allocations: 67.83 kB / 411.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.3815, allocations: 3.938 kB / 411.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.3815, allocations: 8 kB / 411.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3815, allocations: 0 / 411.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3815, allocations: 4.031 kB / 411.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008098/0.3824, allocations: 485.3 kB / 412.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.3825, allocations: 116.9 kB / 412.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.3825, allocations: 3.938 kB / 412.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.3827, allocations: 19.98 kB / 412.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-05/0.3828, allocations: 19.97 kB / 412.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.301e-05/0.3828, allocations: 4 kB / 412.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001323/0.3829, allocations: 156.5 kB / 412.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3829, allocations: 0 / 412.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003129/0.3832, allocations: 48 kB / 412.5 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.000173/0.3834, allocations: 115.1 kB / 412.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005126/0.3839, allocations: 220.5 kB / 412.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.384, allocations: 4 kB / 412.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002496/0.3842, allocations: 123.8 kB / 413 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.0003688/0.3846, allocations: 24.38 kB / 413 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0012/0.3858, allocations: 0.7192 MB / 413.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004358/0.3863, allocations: 0.7675 MB / 414.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.935e-05/0.3863, allocations: 27.44 kB / 414.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3864, allocations: 4 kB / 414.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of Templates: time 0.005471/0.3918, allocations: 2.873 MB / 417.4 MB, free: 8.316 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/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_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches