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.001072/0.001072, allocations: 108.7 kB / 17.74 MB, free: 5.336 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.001139/0.001139, allocations: 190.9 kB / 18.68 MB, free: 4.41 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.374/1.374, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001099, allocations: 47.94 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2611, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003939/0.2651, allocations: 2.202 MB / 403.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.2663, allocations: 0.7049 MB / 404.3 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.2664, allocations: 4 kB / 404.3 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001689/0.2666, allocations: 43.47 kB / 404.4 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.2668, allocations: 47.64 kB / 404.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002728/0.2671, allocations: 99.77 kB / 404.5 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002651/0.2674, allocations: 239.7 kB / 404.7 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002324/0.2676, allocations: 111.6 kB / 404.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.2678, allocations: 99.56 kB / 404.9 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.2679, allocations: 107.5 kB / 405 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.681e-05/0.268, allocations: 16 kB / 405.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.053e-05/0.2681, allocations: 31.98 kB / 405.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.42e-05/0.2681, allocations: 51.78 kB / 405.1 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.2683, allocations: 115.3 kB / 405.3 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002954/0.2686, allocations: 244.1 kB / 405.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2686, allocations: 3.984 kB / 405.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2686, allocations: 3.938 kB / 405.5 MB, free: 4.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.2686, allocations: 4 kB / 405.5 MB, free: 4.746 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.0008744/0.2695, allocations: 0.5418 MB / 406.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.2695, allocations: 11.89 kB / 406.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.672e-05/0.2696, allocations: 28.56 kB / 406.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.2699, allocations: 257.1 kB / 406.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.2699, allocations: 12.81 kB / 406.4 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.845e-05/0.27, allocations: 27.94 kB / 406.4 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004692/0.2705, allocations: 258.6 kB / 406.6 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.2705, allocations: 0 / 406.6 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.437e-05/0.2705, allocations: 12 kB / 406.6 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.662e-05/0.2705, allocations: 8.438 kB / 406.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000444/0.271, allocations: 201.5 kB / 406.9 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.2721, allocations: 0.8145 MB / 407.7 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003387/0.2725, allocations: 190.4 kB / 407.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002158/0.2727, allocations: 109.2 kB / 408 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.332e-05/0.2728, allocations: 85.05 kB / 408 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.2728, allocations: 30.56 kB / 408.1 MB, free: 1.984 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.2728, allocations: 0 / 408.1 MB, free: 1.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001427/0.2743, allocations: 0.7273 MB / 408.8 MB, free: 1.207 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.976e-05/0.2743, allocations: 55.41 kB / 408.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.2745, allocations: 209 kB / 409.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.2745, allocations: 33.7 kB / 409.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.435e-05/0.2746, allocations: 160.2 kB / 409.2 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.061e-05/0.2747, allocations: 78.81 kB / 409.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.533e-05/0.2748, allocations: 53.69 kB / 409.4 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.2749, allocations: 330.8 kB / 409.7 MB, free: 264 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.2751, allocations: 83.94 kB / 409.8 MB, free: 180 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.2753, allocations: 131.4 kB / 409.9 MB, free: 36 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004177/0.2758, allocations: 214.5 kB / 410.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.2758, allocations: 0 / 410.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005145/0.2763, allocations: 281.1 kB / 410.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2763, allocations: 4 kB / 410.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.2763, allocations: 0 / 410.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.2763, allocations: 4 kB / 410.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002886/0.2766, allocations: 67.95 kB / 410.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.2767, allocations: 0 / 410.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.2768, allocations: 15.98 kB / 410.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.914e-05/0.2768, allocations: 11.94 kB / 410.5 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.0001277/0.2769, allocations: 145.8 kB / 410.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.815e-05/0.277, allocations: 23.72 kB / 410.7 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005822/0.2776, allocations: 291.8 kB / 410.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.2776, allocations: 3.938 kB / 410.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2776, allocations: 3.984 kB / 411 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.2777, allocations: 112.8 kB / 411.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.662e-05/0.2778, allocations: 11.94 kB / 411.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.2779, allocations: 23.97 kB / 411.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.096e-05/0.278, allocations: 11.98 kB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007545/0.2788, allocations: 372.6 kB / 411.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008096/0.2796, allocations: 0.5652 MB / 412 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002209/0.2798, allocations: 120.7 kB / 412.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001163/0.2799, allocations: 160.5 kB / 412.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of Backend: time 3.3e-07/0.28, allocations: 0 / 412.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006227/0.2806, allocations: 214.3 kB / 412.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of SimCode: time 0.0011/0.2817, allocations: 1.073 MB / 413.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of Templates: time 0.005301/0.287, allocations: 2.406 MB / 416 MB, free: 9.816 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