Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 83.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 162.4 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9993/0.9993, allocations: 177 MB / 205.2 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder") translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 273 MB, free: 1.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.583e-05/2.748e-05, allocations: 2.312 kB / 273 MB, free: 1.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.006086/0.006113, allocations: 2.194 MB / 275.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.007482, allocations: 0.7204 MB / 275.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.007657, allocations: 11.88 kB / 275.9 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001824/0.00784, allocations: 43.52 kB / 276 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002152/0.008055, allocations: 47.58 kB / 276 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003301/0.008385, allocations: 103.7 kB / 276.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002951/0.00868, allocations: 235.7 kB / 276.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.008882, allocations: 83.97 kB / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002552/0.009138, allocations: 139.6 kB / 276.6 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.009276, allocations: 87.69 kB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.253e-05/0.009308, allocations: 16 kB / 276.7 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.65e-05/0.009395, allocations: 35.98 kB / 276.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.613e-05/0.009461, allocations: 55.77 kB / 276.7 MB, free: 14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.357e-05/0.009535, allocations: 67.81 kB / 276.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.009795, allocations: 191.2 kB / 277 MB, free: 13.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.009798, allocations: 4 kB / 277 MB, free: 13.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.009799, allocations: 0 / 277 MB, free: 13.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.009804, allocations: 0 / 277 MB, free: 13.74 MB / 266.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.0006216/0.01043, allocations: 0.5778 MB / 277.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.01047, allocations: 11.98 kB / 277.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.0106, allocations: 48.69 kB / 277.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.01082, allocations: 192.2 kB / 277.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.01085, allocations: 16.88 kB / 277.8 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.531e-05/0.01089, allocations: 28.36 kB / 277.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.01117, allocations: 217.4 kB / 278.1 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.01119, allocations: 8.125 kB / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.0112, allocations: 8.375 kB / 278.1 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.153e-05/0.01123, allocations: 16.44 kB / 278.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001531/0.01139, allocations: 86.92 kB / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007694/0.01216, allocations: 0.8117 MB / 279 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001822/0.01234, allocations: 118.1 kB / 279.1 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.299e-05/0.01241, allocations: 59.66 kB / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.754e-05/0.01247, allocations: 11.98 kB / 279.2 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.01249, allocations: 37.39 kB / 279.2 MB, free: 11.35 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.864e-06/0.01249, allocations: 0 / 279.2 MB, free: 11.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006941/0.01319, allocations: 473 kB / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/0.01322, allocations: 55.41 kB / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.01336, allocations: 242.8 kB / 280 MB, free: 10.53 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.01337, allocations: 25.7 kB / 280 MB, free: 10.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.915e-05/0.01346, allocations: 207.1 kB / 280.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.487e-05/0.0135, allocations: 75.34 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.232e-05/0.01357, allocations: 71.3 kB / 280.4 MB, free: 10.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.01369, allocations: 0.5 MB / 280.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.666e-05/0.01376, allocations: 39.97 kB / 280.9 MB, free: 9.586 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.111e-05/0.01384, allocations: 74.72 kB / 281 MB, free: 9.496 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.014, allocations: 130.7 kB / 281.1 MB, free: 9.352 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.014, allocations: 3.938 kB / 281.1 MB, free: 9.348 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002289/0.01423, allocations: 186.3 kB / 281.3 MB, free: 9.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.01424, allocations: 11.94 kB / 281.3 MB, free: 9.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.01425, allocations: 4.062 kB / 281.3 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.01426, allocations: 4 kB / 281.3 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.01444, allocations: 56.02 kB / 281.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.01445, allocations: 11.94 kB / 281.4 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.703e-05/0.01451, allocations: 8 kB / 281.4 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.01452, allocations: 11.98 kB / 281.4 MB, free: 9.055 MB / 266.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 9.916e-05/0.01462, allocations: 164.6 kB / 281.5 MB, free: 8.883 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.129e-05/0.01466, allocations: 35.8 kB / 281.6 MB, free: 8.848 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002809/0.01494, allocations: 206.9 kB / 281.8 MB, free: 8.641 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.01495, allocations: 4 kB / 281.8 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.01495, allocations: 0 / 281.8 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.01496, allocations: 3.984 kB / 281.8 MB, free: 8.633 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005624/0.01552, allocations: 0.5482 MB / 282.3 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.01552, allocations: 0 / 282.3 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.01568, allocations: 51.91 kB / 282.4 MB, free: 7.988 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.01569, allocations: 7.984 kB / 282.4 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.0157, allocations: 4 kB / 282.4 MB, free: 7.977 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.0157, allocations: 4 kB / 282.4 MB, free: 7.973 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.01571, allocations: 4.031 kB / 282.4 MB, free: 7.969 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003707/0.01608, allocations: 405.2 kB / 282.8 MB, free: 7.547 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.927e-05/0.01613, allocations: 39.83 kB / 282.8 MB, free: 7.508 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.354e-05/0.01615, allocations: 4 kB / 282.8 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.1e-05/0.01622, allocations: 11.98 kB / 282.9 MB, free: 7.492 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.01627, allocations: 15.97 kB / 282.9 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.01628, allocations: 12 kB / 282.9 MB, free: 7.465 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.89e-05/0.01636, allocations: 169.4 kB / 283.1 MB, free: 7.301 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01636, allocations: 4 kB / 283.1 MB, free: 7.297 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002085/0.01657, allocations: 51.94 kB / 283.1 MB, free: 7.246 MB / 266.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.0001402/0.01671, allocations: 111.1 kB / 283.2 MB, free: 7.129 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002092/0.01692, allocations: 135.5 kB / 283.3 MB, free: 6.992 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.01692, allocations: 0 / 283.3 MB, free: 6.992 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.82e-05/0.01701, allocations: 87.52 kB / 283.4 MB, free: 6.902 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.01724, allocations: 27.52 kB / 283.5 MB, free: 6.879 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009216/0.01816, allocations: 0.5763 MB / 284 MB, free: 6.273 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.026e-05/0.01822, allocations: 96.28 kB / 284.1 MB, free: 6.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.141e-05/0.01831, allocations: 37.92 kB / 284.2 MB, free: 6.121 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.221e-05/0.01836, allocations: 24.48 kB / 284.2 MB, free: 6.098 MB / 266.7 MB Notification: Performance of SimCode: time 1.282e-06/0.01836, allocations: 0 / 284.2 MB, free: 6.098 MB / 266.7 MB Notification: Performance of Templates: time 0.004048/0.02241, allocations: 1.874 MB / 286.1 MB, free: 4.234 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1323700910434127]