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.001187/0.001187, allocations: 108.8 kB / 17.06 MB, free: 6.023 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.001322/0.001323, allocations: 191 kB / 18 MB, free: 5.109 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.386/1.387, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009812/0.0009812, allocations: 59.89 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3471, allocations: 49.42 MB / 400.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003958/0.3511, allocations: 2.21 MB / 402.9 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.3526, allocations: 0.6971 MB / 403.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.3528, allocations: 7.938 kB / 403.6 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.353, allocations: 43.53 kB / 403.7 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001922/0.3532, allocations: 47.59 kB / 403.7 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002876/0.3535, allocations: 103.7 kB / 403.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000275/0.3538, allocations: 243.7 kB / 404 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002342/0.354, allocations: 107.6 kB / 404.2 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.3542, allocations: 91.58 kB / 404.2 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001512/0.3543, allocations: 111.5 kB / 404.4 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.3544, allocations: 20 kB / 404.4 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.274e-05/0.3545, allocations: 27.98 kB / 404.4 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.95e-05/0.3546, allocations: 59.77 kB / 404.5 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.416e-05/0.3547, allocations: 103.3 kB / 404.6 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002967/0.355, allocations: 248.1 kB / 404.8 MB, free: 4.797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.355, allocations: 3.938 kB / 404.8 MB, free: 4.793 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.355, allocations: 0 / 404.8 MB, free: 4.793 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.355, allocations: 4 kB / 404.8 MB, free: 4.789 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.000993/0.356, allocations: 0.5418 MB / 405.4 MB, free: 4.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3561, allocations: 15.89 kB / 405.4 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.914e-05/0.3561, allocations: 28.56 kB / 405.4 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003052/0.3564, allocations: 257 kB / 405.6 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.3565, allocations: 16.81 kB / 405.7 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.737e-05/0.3565, allocations: 23.94 kB / 405.7 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004787/0.357, allocations: 258.6 kB / 405.9 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.3571, allocations: 0 / 405.9 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.316e-05/0.3571, allocations: 11.94 kB / 405.9 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.83e-05/0.3571, allocations: 16.42 kB / 406 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004299/0.3575, allocations: 193.6 kB / 406.2 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.3587, allocations: 0.8184 MB / 407 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00036/0.359, allocations: 182.5 kB / 407.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002057/0.3592, allocations: 105.2 kB / 407.3 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001071/0.3594, allocations: 93.02 kB / 407.3 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.3594, allocations: 34.56 kB / 407.4 MB, free: 2.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.353e-06/0.3594, allocations: 0 / 407.4 MB, free: 2.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001466/0.3609, allocations: 0.7315 MB / 408.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.3609, allocations: 55.41 kB / 408.2 MB, free: 1.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002082/0.3611, allocations: 209 kB / 408.4 MB, free: 0.957 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.3612, allocations: 33.7 kB / 408.4 MB, free: 0.918 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.3613, allocations: 152.3 kB / 408.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.389e-05/0.3614, allocations: 82.81 kB / 408.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.984e-05/0.3615, allocations: 45.7 kB / 408.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3616, allocations: 338.8 kB / 409 MB, free: 300 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/0.3618, allocations: 83.94 kB / 409.1 MB, free: 216 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.362, allocations: 127.4 kB / 409.2 MB, free: 76 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004214/0.3625, allocations: 218.1 kB / 409.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.3625, allocations: 0 / 409.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005045/0.363, allocations: 269.2 kB / 409.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.363, allocations: 8 kB / 409.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.363, allocations: 0 / 409.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.3631, allocations: 7.984 kB / 409.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.3633, allocations: 63.97 kB / 409.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.3634, allocations: 7.969 kB / 409.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.3635, allocations: 19.92 kB / 409.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.3635, allocations: 8 kB / 409.8 MB, free: 15.47 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.0001458/0.3637, allocations: 145.8 kB / 409.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.976e-05/0.3637, allocations: 23.72 kB / 410 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005886/0.3643, allocations: 299.7 kB / 410.3 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3644, allocations: 4 kB / 410.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3644, allocations: 0 / 410.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3644, allocations: 3.938 kB / 410.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.3654, allocations: 0.683 MB / 411 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3654, allocations: 0 / 411 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002617/0.3657, allocations: 59.84 kB / 411 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.3657, allocations: 3.938 kB / 411 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.179e-05/0.3657, allocations: 11.98 kB / 411 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.3657, allocations: 0 / 411 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3657, allocations: 0 / 411 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000728/0.3665, allocations: 485.4 kB / 411.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.3666, allocations: 116.9 kB / 411.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.3666, allocations: 11.94 kB / 411.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.3668, allocations: 15.92 kB / 411.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.946e-05/0.3668, allocations: 15.98 kB / 411.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.3669, allocations: 12 kB / 411.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001192/0.367, allocations: 156.5 kB / 411.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.367, allocations: 0 / 411.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.3673, allocations: 44 kB / 411.9 MB, free: 13.29 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.0001657/0.3675, allocations: 107.2 kB / 412 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004681/0.3679, allocations: 228.4 kB / 412.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.368, allocations: 0 / 412.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002258/0.3682, allocations: 119.8 kB / 412.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003276/0.3685, allocations: 32.36 kB / 412.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.3696, allocations: 0.6863 MB / 413 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.3701, allocations: 0.7753 MB / 413.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001189/0.3702, allocations: 45.91 kB / 413.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.28e-05/0.3703, allocations: 23.44 kB / 413.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of SimCode: time 1.704e-06/0.3703, allocations: 0 / 413.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of Templates: time 0.005562/0.3758, allocations: 2.08 MB / 415.9 MB, free: 9.145 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