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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 240.9 MB, free: 10.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 106 kB / 291.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000948/0.0009482, allocations: 39.94 kB / 350 MB, free: 56 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2381, allocations: 49.44 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002589/0.2408, allocations: 2.264 MB / 401.7 MB, free: 31.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008563/0.2416, allocations: 0.6685 MB / 402.4 MB, free: 30.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.2418, allocations: 0 / 402.4 MB, free: 30.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001585/0.2419, allocations: 39.66 kB / 402.4 MB, free: 30.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001514/0.2421, allocations: 39.7 kB / 402.5 MB, free: 30.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001995/0.2423, allocations: 83.91 kB / 402.6 MB, free: 30.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001853/0.2425, allocations: 227.7 kB / 402.8 MB, free: 30.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.2427, allocations: 112.2 kB / 402.9 MB, free: 29.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.2428, allocations: 79.64 kB / 403 MB, free: 29.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.243, allocations: 107.4 kB / 403.1 MB, free: 29.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.228e-05/0.243, allocations: 12 kB / 403.1 MB, free: 29.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.095e-05/0.2431, allocations: 27.92 kB / 403.1 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.894e-05/0.2432, allocations: 51.77 kB / 403.2 MB, free: 29.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.927e-05/0.2433, allocations: 107.3 kB / 403.3 MB, free: 29.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001853/0.2435, allocations: 224.7 kB / 403.5 MB, free: 29.31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.2435, allocations: 0 / 403.5 MB, free: 29.31 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2435, allocations: 0 / 403.5 MB, free: 29.31 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.2435, allocations: 0 / 403.5 MB, free: 29.31 MB / 298.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.0007078/0.2442, allocations: 0.5418 MB / 404 MB, free: 28.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.2442, allocations: 8.031 kB / 404 MB, free: 28.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.329e-05/0.2443, allocations: 32.56 kB / 404.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/0.2445, allocations: 252.4 kB / 404.3 MB, free: 28.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.2446, allocations: 16.81 kB / 404.3 MB, free: 28.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.924e-05/0.2446, allocations: 20.12 kB / 404.3 MB, free: 28.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003741/0.245, allocations: 258.7 kB / 404.6 MB, free: 28.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.245, allocations: 0 / 404.6 MB, free: 28.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.245, allocations: 11.98 kB / 404.6 MB, free: 28.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.2451, allocations: 12.44 kB / 404.6 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003626/0.2454, allocations: 197.5 kB / 404.8 MB, free: 27.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008666/0.2463, allocations: 0.8146 MB / 405.6 MB, free: 27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002861/0.2466, allocations: 183.3 kB / 405.8 MB, free: 26.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.2468, allocations: 113.2 kB / 405.9 MB, free: 26.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001018/0.2469, allocations: 89.03 kB / 406 MB, free: 26.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.741e-05/0.2469, allocations: 38.56 kB / 406 MB, free: 26.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.402e-06/0.2469, allocations: 0 / 406 MB, free: 26.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001174/0.2481, allocations: 0.724 MB / 406.8 MB, free: 25.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.473e-05/0.2481, allocations: 59.33 kB / 406.8 MB, free: 25.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/0.2483, allocations: 213 kB / 407 MB, free: 25.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.2483, allocations: 29.7 kB / 407.1 MB, free: 25.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.493e-05/0.2484, allocations: 152.4 kB / 407.2 MB, free: 25.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.446e-05/0.2484, allocations: 86.75 kB / 407.3 MB, free: 25.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.147e-05/0.2485, allocations: 45.7 kB / 407.3 MB, free: 25.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.844e-05/0.2486, allocations: 338.8 kB / 407.7 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.2487, allocations: 87.94 kB / 407.8 MB, free: 24.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.2489, allocations: 115.4 kB / 407.9 MB, free: 24.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003357/0.2493, allocations: 220.8 kB / 408.1 MB, free: 24.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.2493, allocations: 0 / 408.1 MB, free: 24.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004219/0.2497, allocations: 273.2 kB / 408.3 MB, free: 24.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.2497, allocations: 8.062 kB / 408.4 MB, free: 24.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2498, allocations: 4 kB / 408.4 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.2498, allocations: 0 / 408.4 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.25, allocations: 59.89 kB / 408.4 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.25, allocations: 4 kB / 408.4 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/0.2502, allocations: 23.91 kB / 408.4 MB, free: 24.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.2502, allocations: 11.94 kB / 408.5 MB, free: 24 MB / 298.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 () * 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.0001013/0.2503, allocations: 149.7 kB / 408.6 MB, free: 23.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.952e-05/0.2504, allocations: 23.72 kB / 408.6 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005154/0.2509, allocations: 300.7 kB / 408.9 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2509, allocations: 0 / 408.9 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2509, allocations: 0 / 408.9 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.2509, allocations: 4 kB / 408.9 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008328/0.2518, allocations: 0.6866 MB / 409.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.2518, allocations: 0 / 409.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002973/0.2521, allocations: 59.91 kB / 409.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.2521, allocations: 0 / 409.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.2521, allocations: 11.94 kB / 409.7 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.2521, allocations: 3.984 kB / 409.7 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.2521, allocations: 4.031 kB / 409.7 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003443/0.2556, allocations: 2.523 MB / 412.2 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.591e-05/0.2557, allocations: 116.9 kB / 412.3 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.873e-05/0.2557, allocations: 11.94 kB / 412.3 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.2559, allocations: 11.98 kB / 412.4 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.605e-05/0.256, allocations: 15.98 kB / 412.4 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.256, allocations: 12 kB / 412.4 MB, free: 19.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.062e-05/0.2561, allocations: 156.5 kB / 412.5 MB, free: 19.69 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2561, allocations: 0 / 412.5 MB, free: 19.69 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003835/0.2565, allocations: 68 kB / 412.6 MB, free: 19.62 MB / 298.7 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.0001324/0.2566, allocations: 107.2 kB / 412.7 MB, free: 19.51 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004184/0.257, allocations: 227 kB / 412.9 MB, free: 19.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2571, allocations: 0 / 412.9 MB, free: 19.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.2572, allocations: 124.3 kB / 413 MB, free: 19.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.2576, allocations: 24.42 kB / 413.1 MB, free: 19.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009842/0.2586, allocations: 1.019 MB / 414.1 MB, free: 18.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/0.2587, allocations: 0.772 MB / 414.9 MB, free: 17.29 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.2589, allocations: 50.91 kB / 414.9 MB, free: 17.24 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.397e-05/0.259, allocations: 31.42 kB / 414.9 MB, free: 17.21 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.259, allocations: 0 / 414.9 MB, free: 17.21 MB / 298.7 MB Notification: Performance of Templates: time 0.004714/0.2637, allocations: 2.519 MB / 417.5 MB, free: 14.7 MB / 298.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@2/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