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.0009983/0.0009983, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001088/0.001088, allocations: 155 kB / 25.61 MB, free: 8.582 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.9784/0.9784, allocations: 177 MB / 205.9 MB, free: 4.465 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.313e-06/1.313e-06, allocations: 0 / 274.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.328e-05/1.459e-05, allocations: 5.156 kB / 274.1 MB, free: 4.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002274/0.002289, allocations: 2.17 MB / 276.3 MB, free: 2.129 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.003313, allocations: 0.7318 MB / 277 MB, free: 1.395 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.003437, allocations: 7.938 kB / 277 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.003599, allocations: 39.53 kB / 277.1 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001667/0.003765, allocations: 52.77 kB / 277.1 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.003996, allocations: 103.8 kB / 277.2 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002096/0.004206, allocations: 247.5 kB / 277.5 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.004356, allocations: 72 kB / 277.5 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001813/0.004537, allocations: 135.6 kB / 277.7 MB, free: 0.75 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.004644, allocations: 83.75 kB / 277.7 MB, free: 0.668 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/0.00467, allocations: 16 kB / 277.8 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.91e-05/0.004739, allocations: 35.98 kB / 277.8 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.633e-05/0.004795, allocations: 59.75 kB / 277.8 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.36e-05/0.004849, allocations: 63.77 kB / 277.9 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002087/0.005057, allocations: 195.2 kB / 278.1 MB, free: 312 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.005059, allocations: 4 kB / 278.1 MB, free: 308 kB / 250.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.00506, allocations: 0 / 278.1 MB, free: 308 kB / 250.7 MB Notification: Performance of Transformations before backend: time 3.666e-06/0.005063, allocations: 0 / 278.1 MB, free: 308 kB / 250.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.0005437/0.005607, allocations: 0.5545 MB / 278.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.005637, allocations: 12.03 kB / 278.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.005752, allocations: 48.75 kB / 278.7 MB, free: 15.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.005937, allocations: 200.1 kB / 278.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.005957, allocations: 16.88 kB / 278.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.176e-05/0.005989, allocations: 28.3 kB / 279 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/0.006211, allocations: 205.3 kB / 279.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.006221, allocations: 192 / 279.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.006238, allocations: 16.36 kB / 279.2 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.00626, allocations: 12.44 kB / 279.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.006373, allocations: 77.36 kB / 279.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009274/0.0073, allocations: 0.7733 MB / 280 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.00745, allocations: 110.9 kB / 280.1 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.296e-05/0.007503, allocations: 43.67 kB / 280.2 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.508e-05/0.007548, allocations: 11.98 kB / 280.2 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.919e-05/0.007567, allocations: 37.39 kB / 280.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.032e-06/0.007568, allocations: 3.938 kB / 280.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005462/0.008114, allocations: 418.1 kB / 280.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.008142, allocations: 51.41 kB / 280.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.008261, allocations: 242.7 kB / 280.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.008279, allocations: 29.7 kB / 281 MB, free: 13.22 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.351e-05/0.008373, allocations: 207 kB / 281.2 MB, free: 13.01 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.834e-05/0.008421, allocations: 79.28 kB / 281.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.346e-05/0.008485, allocations: 59.33 kB / 281.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.008623, allocations: 0.504 MB / 281.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.11e-05/0.008664, allocations: 27.97 kB / 281.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.988e-05/0.008734, allocations: 82.62 kB / 281.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001175/0.008851, allocations: 113.6 kB / 282 MB, free: 12.1 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.008852, allocations: 4 kB / 282 MB, free: 12.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001784/0.009031, allocations: 173.4 kB / 282.2 MB, free: 11.92 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.009041, allocations: 7.938 kB / 282.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.765e-06/0.009044, allocations: 0 / 282.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.753e-06/0.009051, allocations: 4 kB / 282.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.009189, allocations: 55.91 kB / 282.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.336e-06/0.009192, allocations: 4 kB / 282.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.18e-05/0.009244, allocations: 11.98 kB / 282.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.009252, allocations: 4 kB / 282.3 MB, free: 11.83 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.372e-05/0.009346, allocations: 172.6 kB / 282.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.752e-05/0.009383, allocations: 31.8 kB / 282.5 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002018/0.009585, allocations: 183 kB / 282.7 MB, free: 11.44 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.009587, allocations: 0 / 282.7 MB, free: 11.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.82e-07/0.009588, allocations: 4 kB / 282.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.009591, allocations: 3.984 kB / 282.7 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004389/0.01003, allocations: 0.5031 MB / 283.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.01003, allocations: 64 / 283.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001358/0.01017, allocations: 52.02 kB / 283.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.01017, allocations: 4 kB / 283.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.01018, allocations: 7.984 kB / 283.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.01019, allocations: 7.938 kB / 283.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.01019, allocations: 0 / 283.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002785/0.01046, allocations: 377.3 kB / 283.6 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.063e-05/0.01051, allocations: 31.83 kB / 283.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.01052, allocations: 8 kB / 283.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.285e-05/0.01059, allocations: 8 kB / 283.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.881e-05/0.01061, allocations: 19.95 kB / 283.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.01062, allocations: 12 kB / 283.7 MB, free: 10.35 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.469e-05/0.01069, allocations: 173.3 kB / 283.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01069, allocations: 0 / 283.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000196/0.01088, allocations: 40 kB / 283.9 MB, free: 10.14 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 8.497e-05/0.01097, allocations: 107.1 kB / 284 MB, free: 10.03 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001409/0.01111, allocations: 124.2 kB / 284.1 MB, free: 9.902 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.01111, allocations: 4 kB / 284.1 MB, free: 9.898 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.92e-05/0.01118, allocations: 71.58 kB / 284.2 MB, free: 9.824 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.01139, allocations: 40.05 kB / 284.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007086/0.0121, allocations: 0.5606 MB / 284.8 MB, free: 9.195 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.75e-05/0.01215, allocations: 100.2 kB / 284.9 MB, free: 9.078 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.292e-05/0.01222, allocations: 29.92 kB / 284.9 MB, free: 9.047 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.273e-05/0.01231, allocations: 98.19 kB / 285 MB, free: 8.949 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01231, allocations: 0 / 285 MB, free: 8.949 MB / 266.7 MB Notification: Performance of Templates: time 0.004066/0.01638, allocations: 2.067 MB / 287.1 MB, free: 6.906 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: 2.986259905155748]