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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 183.2 kB / 8.133 MB, free: 2.051 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.228/1.228, allocations: 221.4 MB / 229.9 MB, free: 3.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009889/0.0009889, allocations: 95.53 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.624e-06/7.644e-06, allocations: 4 kB / 336.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2182, allocations: 50.39 MB / 386.9 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08763/0.3059, allocations: 77.66 MB / 464.6 MB, free: 9.227 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.3062, allocations: 67.91 kB / 464.6 MB, free: 9.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01274/0.319, allocations: 4.048 MB / 468.7 MB, free: 5.133 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.012e-05/0.319, allocations: 8 kB / 468.7 MB, free: 5.125 MB / 346.7 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.000691/0.3197, allocations: 0.502 MB / 469.2 MB, free: 4.578 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.3198, allocations: 12.03 kB / 469.2 MB, free: 4.566 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.883e-05/0.3198, allocations: 23.72 kB / 469.2 MB, free: 4.543 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003134/0.3202, allocations: 262.9 kB / 469.5 MB, free: 4.246 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.3202, allocations: 4 kB / 469.5 MB, free: 4.242 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.884e-05/0.3202, allocations: 12 kB / 469.5 MB, free: 4.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002822/0.3205, allocations: 143.1 kB / 469.6 MB, free: 4.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.3209, allocations: 213.8 kB / 469.8 MB, free: 3.867 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.3209, allocations: 4 kB / 469.8 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.95e-05/0.3209, allocations: 0 / 469.8 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.3209, allocations: 16.34 kB / 469.9 MB, free: 3.848 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.3221, allocations: 0.7654 MB / 470.6 MB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000213/0.3223, allocations: 141.6 kB / 470.8 MB, free: 2.891 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.3224, allocations: 86.47 kB / 470.8 MB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001081/0.3225, allocations: 85.11 kB / 470.9 MB, free: 2.703 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.3226, allocations: 34.56 kB / 471 MB, free: 2.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.463e-06/0.3226, allocations: 3.938 kB / 471 MB, free: 2.656 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004029/0.323, allocations: 197.6 kB / 471.2 MB, free: 2.457 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.73e-05/0.323, allocations: 55.41 kB / 471.2 MB, free: 2.391 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.3232, allocations: 159 kB / 471.4 MB, free: 2.223 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.3232, allocations: 25.7 kB / 471.4 MB, free: 2.191 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.615e-05/0.3233, allocations: 132.2 kB / 471.5 MB, free: 2.059 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.421e-05/0.3234, allocations: 94.69 kB / 471.6 MB, free: 1.965 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.18e-05/0.3234, allocations: 0 / 471.6 MB, free: 1.965 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.3235, allocations: 326.8 kB / 471.9 MB, free: 1.637 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.3236, allocations: 67.98 kB / 472 MB, free: 1.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.3238, allocations: 99.59 kB / 472.1 MB, free: 1.457 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001541/0.324, allocations: 80.89 kB / 472.2 MB, free: 1.379 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.324, allocations: 4 kB / 472.2 MB, free: 1.375 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003988/0.3244, allocations: 235 kB / 472.4 MB, free: 1.145 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.3244, allocations: 8.656 kB / 472.4 MB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.3244, allocations: 0 / 472.4 MB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.3244, allocations: 4 kB / 472.4 MB, free: 1.133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003165/0.3248, allocations: 60.78 kB / 472.5 MB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.3248, allocations: 3.984 kB / 472.5 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.3249, allocations: 24.81 kB / 472.5 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.488e-05/0.325, allocations: 15.89 kB / 472.5 MB, free: 1.031 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.813e-05/0.3251, allocations: 112.4 kB / 472.6 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.958e-05/0.3251, allocations: 19.81 kB / 472.7 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004588/0.3256, allocations: 243 kB / 472.9 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.3256, allocations: 4 kB / 472.9 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.3256, allocations: 0.9375 kB / 472.9 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3256, allocations: 3.938 kB / 472.9 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008364/0.3265, allocations: 0.6014 MB / 473.5 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3265, allocations: 0 / 473.5 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003486/0.3269, allocations: 64.83 kB / 473.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.3269, allocations: 4 kB / 473.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.3269, allocations: 0 / 473.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.3269, allocations: 0.5625 kB / 473.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3269, allocations: 0 / 473.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000553/0.3275, allocations: 451.4 kB / 474 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.3276, allocations: 113.6 kB / 474.1 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.3276, allocations: 7.984 kB / 474.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.3278, allocations: 11.94 kB / 474.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.903e-05/0.3279, allocations: 19.97 kB / 474.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.3279, allocations: 7.938 kB / 474.2 MB, free: 15.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001038/0.328, allocations: 129.5 kB / 474.3 MB, free: 15.19 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003083/0.3283, allocations: 55.84 kB / 474.4 MB, free: 15.13 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001787/0.3285, allocations: 115.2 kB / 474.5 MB, free: 15.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002986/0.3288, allocations: 184.1 kB / 474.6 MB, free: 14.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.3288, allocations: 0 / 474.6 MB, free: 14.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.329, allocations: 99.91 kB / 474.7 MB, free: 14.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.3292, allocations: 23.44 kB / 474.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.3303, allocations: 0.5629 MB / 475.3 MB, free: 14.13 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004584/0.3308, allocations: 0.794 MB / 476.1 MB, free: 13.31 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3308, allocations: 0 / 476.1 MB, free: 13.31 MB / 362.7 MB Notification: Performance of Templates: time 0.004817/0.3356, allocations: 1.906 MB / 478 MB, free: 11.43 MB / 362.7 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches