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.0007139/0.0007139, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009924/0.001706, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006626/0.0006626, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00086/0.001523, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9258/0.9258, allocations: 177.5 MB / 190 MB, free: 4.777 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1118/1.038, allocations: 53.87 MB / 243.9 MB, free: 14.84 MB / 250.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.643e-06/1.643e-06, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.064e-05/2.228e-05, allocations: 2.312 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002754/0.002776, allocations: 2.239 MB / 247.4 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008455/0.003621, allocations: 0.7435 MB / 248.2 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.003728, allocations: 7.938 kB / 248.2 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.003846, allocations: 63.39 kB / 248.3 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.003948, allocations: 35.66 kB / 248.3 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.004144, allocations: 111.5 kB / 248.4 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.004362, allocations: 231.7 kB / 248.6 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.004531, allocations: 82.61 kB / 248.7 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002412/0.004772, allocations: 139.7 kB / 248.8 MB, free: 9.887 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.004929, allocations: 87.69 kB / 248.9 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.383e-05/0.004962, allocations: 24 kB / 249 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.005075, allocations: 39.92 kB / 249 MB, free: 9.738 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.221e-05/0.005137, allocations: 47.75 kB / 249 MB, free: 9.691 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.355e-05/0.00519, allocations: 51.88 kB / 249.1 MB, free: 9.641 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002324/0.005423, allocations: 167.3 kB / 249.3 MB, free: 9.477 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.252e-05/0.005435, allocations: 0 / 249.3 MB, free: 9.477 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.005436, allocations: 0 / 249.3 MB, free: 9.477 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.005448, allocations: 0 / 249.3 MB, free: 9.477 MB / 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.0005936/0.006042, allocations: 499.7 kB / 249.7 MB, free: 8.965 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.006074, allocations: 8.031 kB / 249.8 MB, free: 8.957 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.006239, allocations: 118 kB / 249.9 MB, free: 8.824 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.006423, allocations: 181.3 kB / 250 MB, free: 8.621 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.006443, allocations: 16.88 kB / 250.1 MB, free: 8.605 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.318e-05/0.006477, allocations: 20.38 kB / 250.1 MB, free: 8.586 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.006711, allocations: 207.7 kB / 250.3 MB, free: 8.367 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.006723, allocations: 192 / 250.3 MB, free: 8.367 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.006738, allocations: 8.375 kB / 250.3 MB, free: 8.359 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.694e-05/0.006765, allocations: 24.36 kB / 250.3 MB, free: 8.336 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001034/0.006868, allocations: 73.45 kB / 250.4 MB, free: 8.262 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005634/0.007431, allocations: 0.5518 MB / 250.9 MB, free: 7.688 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.007553, allocations: 89.34 kB / 251 MB, free: 7.59 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.421e-05/0.007597, allocations: 40.84 kB / 251.1 MB, free: 7.547 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.725e-05/0.007685, allocations: 23.98 kB / 251.1 MB, free: 7.523 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.007705, allocations: 34.55 kB / 251.1 MB, free: 7.48 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.183e-06/0.007706, allocations: 0 / 251.1 MB, free: 7.48 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005583/0.008264, allocations: 386.5 kB / 251.5 MB, free: 7.07 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/0.00829, allocations: 55.34 kB / 251.6 MB, free: 7.004 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.637e-05/0.008386, allocations: 183.5 kB / 251.7 MB, free: 6.809 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.008403, allocations: 33.7 kB / 251.8 MB, free: 6.77 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.918e-05/0.008462, allocations: 144.3 kB / 251.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.33e-05/0.008506, allocations: 83.3 kB / 252 MB, free: 6.543 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/0.008555, allocations: 49.64 kB / 252 MB, free: 6.488 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.546e-05/0.008641, allocations: 342.7 kB / 252.4 MB, free: 6.145 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.248e-05/0.008673, allocations: 27.98 kB / 252.4 MB, free: 6.117 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.991e-05/0.008723, allocations: 51.41 kB / 252.5 MB, free: 6.055 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.008832, allocations: 110 kB / 252.6 MB, free: 5.934 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.008834, allocations: 0 / 252.6 MB, free: 5.934 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001334/0.008967, allocations: 138.6 kB / 252.7 MB, free: 5.793 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.008979, allocations: 4 kB / 252.7 MB, free: 5.789 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.008984, allocations: 0 / 252.7 MB, free: 5.789 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.008996, allocations: 8.062 kB / 252.7 MB, free: 5.781 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.00915, allocations: 59.89 kB / 252.8 MB, free: 5.723 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.009155, allocations: 4 kB / 252.8 MB, free: 5.719 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.33e-05/0.009199, allocations: 8 kB / 252.8 MB, free: 5.711 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.009209, allocations: 8 kB / 252.8 MB, free: 5.703 MB / 250.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 7.408e-05/0.009283, allocations: 128.5 kB / 252.9 MB, free: 5.566 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.00931, allocations: 19.98 kB / 252.9 MB, free: 5.547 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.00948, allocations: 154.2 kB / 253.1 MB, free: 5.395 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.009482, allocations: 4 kB / 253.1 MB, free: 5.391 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.009483, allocations: 4 kB / 253.1 MB, free: 5.387 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.009488, allocations: 3.984 kB / 253.1 MB, free: 5.383 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006576/0.01015, allocations: 436.5 kB / 253.5 MB, free: 4.93 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.01015, allocations: 0 / 253.5 MB, free: 4.93 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.01029, allocations: 55.91 kB / 253.6 MB, free: 4.875 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.498e-05/0.01033, allocations: 31.84 kB / 253.6 MB, free: 4.844 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.01033, allocations: 0 / 253.6 MB, free: 4.844 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.01034, allocations: 4 kB / 253.6 MB, free: 4.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.01034, allocations: 4 kB / 253.6 MB, free: 4.836 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.01035, allocations: 7.969 kB / 253.6 MB, free: 4.828 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000218/0.01056, allocations: 285.7 kB / 253.9 MB, free: 4.523 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.01058, allocations: 11.94 kB / 253.9 MB, free: 4.512 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.69e-05/0.01064, allocations: 4 kB / 253.9 MB, free: 4.508 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.938e-05/0.01068, allocations: 23.95 kB / 253.9 MB, free: 4.484 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.714e-06/0.01069, allocations: 7.938 kB / 253.9 MB, free: 4.477 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.776e-05/0.01073, allocations: 55.05 kB / 254 MB, free: 4.422 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01073, allocations: 0 / 254 MB, free: 4.422 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001586/0.01089, allocations: 44 kB / 254 MB, free: 4.379 MB / 250.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.0001054/0.011, allocations: 100.3 kB / 254.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.01113, allocations: 111.9 kB / 254.2 MB, free: 4.16 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.01114, allocations: 4 kB / 254.3 MB, free: 4.156 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.47e-05/0.01123, allocations: 88.67 kB / 254.3 MB, free: 4.066 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.01143, allocations: 103.2 kB / 254.4 MB, free: 3.953 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.01265, allocations: 484.5 kB / 254.9 MB, free: 3.449 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.686e-05/0.01271, allocations: 88.3 kB / 255 MB, free: 3.344 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.684e-05/0.01277, allocations: 29.92 kB / 255 MB, free: 3.316 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.969e-05/0.01285, allocations: 75.38 kB / 255.1 MB, free: 3.242 MB / 250.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01285, allocations: 0 / 255.1 MB, free: 3.242 MB / 250.7 MB Notification: Performance of Templates: time 0.003593/0.01644, allocations: 1.905 MB / 257 MB, free: 1.363 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.564983094111085]