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.00201/0.00201, allocations: 103.5 kB / 20.97 MB, free: 3.453 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.002328/0.002328, allocations: 156.8 kB / 24.27 MB, free: 160 kB / 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 1.564/1.564, allocations: 177 MB / 204.4 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 178] 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.363e-06/1.363e-06, allocations: 0 / 272.2 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.985e-05/3.121e-05, allocations: 2.312 kB / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003996/0.004027, allocations: 2.147 MB / 274.3 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.005546, allocations: 0.7204 MB / 275.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.005666, allocations: 11.88 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001923/0.005859, allocations: 43.52 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002061/0.006065, allocations: 51.53 kB / 275.2 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.0064, allocations: 107.7 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003563/0.006756, allocations: 235.7 kB / 275.5 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.007002, allocations: 79.98 kB / 275.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003159/0.007318, allocations: 135.6 kB / 275.7 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001796/0.007498, allocations: 87.69 kB / 275.8 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001338/0.007632, allocations: 16 kB / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.00774, allocations: 39.92 kB / 275.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.158e-05/0.007832, allocations: 55.77 kB / 275.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.239e-05/0.007924, allocations: 67.81 kB / 276 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004021/0.008326, allocations: 259 kB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.00833, allocations: 0 / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.008331, allocations: 0 / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.008337, allocations: 0 / 276.2 MB, free: 13.78 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.001008/0.009344, allocations: 0.5815 MB / 276.8 MB, free: 13.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.009385, allocations: 11.98 kB / 276.8 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.009565, allocations: 44.75 kB / 276.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.009904, allocations: 204.1 kB / 277.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.45e-05/0.009939, allocations: 24.88 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.817e-05/0.009997, allocations: 24.31 kB / 277.1 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004936/0.01049, allocations: 236.7 kB / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.01051, allocations: 192 / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/0.01053, allocations: 8.375 kB / 277.4 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.1e-05/0.01056, allocations: 12.44 kB / 277.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003974/0.01096, allocations: 145.8 kB / 277.5 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.01236, allocations: 0.8547 MB / 278.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/0.01272, allocations: 150.9 kB / 278.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001874/0.0129, allocations: 71.66 kB / 278.6 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.151e-05/0.01299, allocations: 15.97 kB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.668e-05/0.01304, allocations: 37.39 kB / 278.6 MB, free: 11.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.242e-06/0.01304, allocations: 0 / 278.6 MB, free: 11.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.001424/0.01447, allocations: 0.5539 MB / 279.2 MB, free: 10.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.01453, allocations: 55.41 kB / 279.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003061/0.01483, allocations: 266.8 kB / 279.5 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.855e-05/0.01486, allocations: 25.7 kB / 279.5 MB, free: 10.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.01506, allocations: 211.1 kB / 279.7 MB, free: 10.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.01516, allocations: 91.28 kB / 279.8 MB, free: 9.957 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.01528, allocations: 55.36 kB / 279.9 MB, free: 9.895 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003112/0.01559, allocations: 0.5118 MB / 280.4 MB, free: 9.371 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.01576, allocations: 63.97 kB / 280.5 MB, free: 9.309 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/0.016, allocations: 118.6 kB / 280.6 MB, free: 9.176 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003765/0.01637, allocations: 174.6 kB / 280.7 MB, free: 8.988 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.01638, allocations: 3.938 kB / 280.7 MB, free: 8.984 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005176/0.01689, allocations: 234.3 kB / 281 MB, free: 8.75 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.01692, allocations: 8 kB / 281 MB, free: 8.742 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/0.01693, allocations: 0 / 281 MB, free: 8.742 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.01695, allocations: 4.062 kB / 281 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002972/0.01725, allocations: 63.89 kB / 281 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.01726, allocations: 4 kB / 281 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.01737, allocations: 11.98 kB / 281.1 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.0174, allocations: 8 kB / 281.1 MB, free: 8.652 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 0.0001933/0.01759, allocations: 180.5 kB / 281.2 MB, free: 8.465 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.943e-05/0.01766, allocations: 31.8 kB / 281.3 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006073/0.01827, allocations: 243 kB / 281.5 MB, free: 8.191 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.01827, allocations: 11.98 kB / 281.5 MB, free: 8.18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.01828, allocations: 4.062 kB / 281.5 MB, free: 8.176 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.01829, allocations: 0 / 281.5 MB, free: 8.176 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.01941, allocations: 0.6184 MB / 282.1 MB, free: 7.512 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.01942, allocations: 0 / 282.1 MB, free: 7.512 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002816/0.0197, allocations: 47.97 kB / 282.2 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.0197, allocations: 0 / 282.2 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.01973, allocations: 8 kB / 282.2 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.01973, allocations: 4.031 kB / 282.2 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.01973, allocations: 7.938 kB / 282.2 MB, free: 7.445 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007992/0.02053, allocations: 473.9 kB / 282.7 MB, free: 6.953 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.51e-05/0.02063, allocations: 31.83 kB / 282.7 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.509e-05/0.02066, allocations: 8 kB / 282.7 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.02081, allocations: 11.98 kB / 282.7 MB, free: 6.902 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.777e-05/0.02089, allocations: 19.97 kB / 282.7 MB, free: 6.883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.02091, allocations: 4 kB / 282.7 MB, free: 6.879 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002946/0.0212, allocations: 193.4 kB / 282.9 MB, free: 6.691 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0212, allocations: 4 kB / 282.9 MB, free: 6.688 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003144/0.02152, allocations: 40 kB / 283 MB, free: 6.648 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.0002162/0.02173, allocations: 119 kB / 283.1 MB, free: 6.523 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004897/0.02222, allocations: 191.4 kB / 283.3 MB, free: 6.332 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.02222, allocations: 0 / 283.3 MB, free: 6.332 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002242/0.02245, allocations: 99.58 kB / 283.4 MB, free: 6.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.0228, allocations: 26.98 kB / 283.4 MB, free: 6.207 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.02396, allocations: 0.5995 MB / 284 MB, free: 5.578 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/0.02415, allocations: 150.8 kB / 284.2 MB, free: 5.41 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.02427, allocations: 33.92 kB / 284.2 MB, free: 5.379 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.533e-05/0.02435, allocations: 28.48 kB / 284.2 MB, free: 5.352 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.02435, allocations: 0 / 284.2 MB, free: 5.352 MB / 266.7 MB Notification: Performance of Templates: time 0.007056/0.0314, allocations: 1.872 MB / 286.1 MB, free: 3.48 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.766244973987341]