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.001598/0.001598, allocations: 112.8 kB / 17.07 MB, free: 5.988 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.001659/0.00166, allocations: 195 kB / 18 MB, free: 5.074 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.516/1.516, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001902, allocations: 55.86 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.398/0.3999, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004269/0.4043, allocations: 2.223 MB / 402.9 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.4059, allocations: 0.6894 MB / 403.6 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001741/0.4061, allocations: 7.938 kB / 403.6 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002757/0.4064, allocations: 43.53 kB / 403.7 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002642/0.4067, allocations: 47.58 kB / 403.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.4071, allocations: 99.77 kB / 403.8 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003823/0.4075, allocations: 239.7 kB / 404.1 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003176/0.4078, allocations: 119.5 kB / 404.2 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.408, allocations: 83.7 kB / 404.3 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.4082, allocations: 115.4 kB / 404.4 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.776e-05/0.4082, allocations: 16 kB / 404.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001/0.4083, allocations: 27.98 kB / 404.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.712e-05/0.4084, allocations: 59.77 kB / 404.5 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000116/0.4085, allocations: 107.3 kB / 404.6 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003531/0.4089, allocations: 242.8 kB / 404.8 MB, free: 4.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.4089, allocations: 4 kB / 404.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4089, allocations: 0 / 404.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.794e-06/0.4089, allocations: 0 / 404.8 MB, free: 4.773 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.0009449/0.4099, allocations: 0.5493 MB / 405.4 MB, free: 4.176 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.4099, allocations: 11.89 kB / 405.4 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.408e-05/0.41, allocations: 28.75 kB / 405.4 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.4103, allocations: 265.1 kB / 405.7 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.4104, allocations: 12.81 kB / 405.7 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.958e-05/0.4104, allocations: 35.89 kB / 405.7 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004792/0.4109, allocations: 250.7 kB / 406 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.63e-05/0.411, allocations: 0 / 406 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/0.411, allocations: 15.98 kB / 406 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.733e-05/0.411, allocations: 8.438 kB / 406 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004401/0.4115, allocations: 197.5 kB / 406.2 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.4126, allocations: 0.8147 MB / 407 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000374/0.413, allocations: 188.2 kB / 407.2 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000219/0.4132, allocations: 109.2 kB / 407.3 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.4133, allocations: 89.03 kB / 407.4 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.4134, allocations: 30.56 kB / 407.4 MB, free: 1.996 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.252e-06/0.4134, allocations: 0 / 407.4 MB, free: 1.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001487/0.4149, allocations: 0.7267 MB / 408.1 MB, free: 1.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.068e-05/0.415, allocations: 55.41 kB / 408.2 MB, free: 1.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.4152, allocations: 220.9 kB / 408.4 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.4152, allocations: 29.7 kB / 408.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.4153, allocations: 156.5 kB / 408.6 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.18e-05/0.4154, allocations: 87.22 kB / 408.7 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.387e-05/0.4155, allocations: 49.7 kB / 408.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.4156, allocations: 334.8 kB / 409 MB, free: 260 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.4158, allocations: 83.94 kB / 409.1 MB, free: 176 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.416, allocations: 127.4 kB / 409.2 MB, free: 36 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004087/0.4165, allocations: 218.5 kB / 409.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.4165, allocations: 0 / 409.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004864/0.417, allocations: 277.4 kB / 409.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.417, allocations: 8 kB / 409.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.417, allocations: 0 / 409.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.417, allocations: 4 kB / 409.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.4173, allocations: 67.88 kB / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.4173, allocations: 0 / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001217/0.4174, allocations: 19.92 kB / 409.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/0.4175, allocations: 8 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.00012/0.4176, allocations: 141.8 kB / 410 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.621e-05/0.4176, allocations: 27.86 kB / 410 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005599/0.4182, allocations: 295.8 kB / 410.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.4182, allocations: 4 kB / 410.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4182, allocations: 0 / 410.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.4183, allocations: 7.922 kB / 410.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.4193, allocations: 0.683 MB / 411 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.4193, allocations: 0 / 411 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/0.4195, allocations: 51.91 kB / 411 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/0.4196, allocations: 11.92 kB / 411 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.4196, allocations: 4 kB / 411 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.4196, allocations: 4 kB / 411 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4196, allocations: 0 / 411 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007833/0.4204, allocations: 485.5 kB / 411.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.87e-05/0.4205, allocations: 117 kB / 411.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.442e-05/0.4205, allocations: 11.94 kB / 411.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.4207, allocations: 11.98 kB / 411.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.196e-05/0.4208, allocations: 11.98 kB / 411.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.834e-05/0.4208, allocations: 23.92 kB / 411.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001257/0.4209, allocations: 152.5 kB / 411.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4209, allocations: 0 / 411.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002856/0.4212, allocations: 51.94 kB / 411.9 MB, free: 13.25 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.0001788/0.4214, allocations: 107.2 kB / 412 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006449/0.422, allocations: 224.6 kB / 412.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4221, allocations: 3.938 kB / 412.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.4224, allocations: 123.9 kB / 412.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005113/0.4229, allocations: 27.47 kB / 412.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.4241, allocations: 0.7009 MB / 413.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.4245, allocations: 0.7675 MB / 413.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001182/0.4246, allocations: 49.91 kB / 413.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.493e-05/0.4247, allocations: 31.42 kB / 413.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4247, allocations: 0 / 413.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of Templates: time 0.005884/0.4306, allocations: 2.067 MB / 416 MB, free: 9.098 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