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.001147/0.001147, allocations: 81.91 kB / 21.42 MB, free: 3.07 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.001376/0.001376, allocations: 167 kB / 24.82 MB, free: 9.273 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 1.053/1.053, allocations: 177 MB / 205.1 MB, free: 5.48 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 2.184e-06/2.184e-06, allocations: 0 / 273.3 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.363e-05/2.581e-05, allocations: 5.266 kB / 273.3 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003686/0.003712, allocations: 2.17 MB / 275.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.005052, allocations: 0.7281 MB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.0052, allocations: 11.88 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001967/0.005396, allocations: 47.52 kB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002072/0.005603, allocations: 43.59 kB / 276.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003069/0.00591, allocations: 107.6 kB / 276.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.006209, allocations: 235.7 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002404/0.006449, allocations: 79.98 kB / 276.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002937/0.006743, allocations: 147.5 kB / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.006891, allocations: 79.75 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.295e-05/0.006934, allocations: 20 kB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001208/0.007055, allocations: 31.98 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.039e-05/0.007146, allocations: 59.77 kB / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.114e-05/0.007227, allocations: 67.75 kB / 277.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000356/0.007583, allocations: 187.2 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.007585, allocations: 0 / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.007587, allocations: 0 / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.007595, allocations: 0 / 277.3 MB, free: 13.21 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.0007497/0.008344, allocations: 0.5662 MB / 277.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.226e-05/0.008406, allocations: 15.92 kB / 277.9 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.008583, allocations: 56.73 kB / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002702/0.008853, allocations: 188.2 kB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.003e-05/0.008883, allocations: 12.88 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.721e-05/0.00893, allocations: 28.36 kB / 278.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.009248, allocations: 201.4 kB / 278.4 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.009267, allocations: 12.05 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.009287, allocations: 12.38 kB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.261e-05/0.00933, allocations: 16.44 kB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001642/0.009494, allocations: 73.42 kB / 278.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009712/0.01047, allocations: 0.7693 MB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001805/0.01065, allocations: 106.1 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.799e-05/0.01072, allocations: 55.64 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.386e-05/0.01079, allocations: 4 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.01082, allocations: 41.39 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.933e-06/0.01082, allocations: 3.938 kB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007553/0.01158, allocations: 409.3 kB / 279.9 MB, free: 10.49 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.01162, allocations: 55.41 kB / 279.9 MB, free: 10.42 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.01182, allocations: 242.7 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.01184, allocations: 33.7 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.01197, allocations: 195.1 kB / 280.4 MB, free: 9.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.956e-05/0.01204, allocations: 91.25 kB / 280.5 MB, free: 9.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.641e-05/0.01213, allocations: 55.34 kB / 280.5 MB, free: 9.777 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.01231, allocations: 0.5079 MB / 281 MB, free: 9.258 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.252e-05/0.01237, allocations: 31.97 kB / 281 MB, free: 9.227 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.359e-05/0.01246, allocations: 66.7 kB / 281.1 MB, free: 9.145 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.01264, allocations: 118.6 kB / 281.2 MB, free: 9.012 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.01264, allocations: 0 / 281.2 MB, free: 9.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002849/0.01292, allocations: 174.3 kB / 281.4 MB, free: 8.836 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.01294, allocations: 15.98 kB / 281.4 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.01295, allocations: 0 / 281.4 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.01297, allocations: 4 kB / 281.4 MB, free: 8.816 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.01317, allocations: 51.97 kB / 281.5 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.932e-06/0.01318, allocations: 3.938 kB / 281.5 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.363e-05/0.01325, allocations: 8 kB / 281.5 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.01327, allocations: 8 kB / 281.5 MB, free: 8.746 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.0001303/0.0134, allocations: 168.6 kB / 281.7 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.785e-05/0.01345, allocations: 31.8 kB / 281.7 MB, free: 8.539 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003068/0.01376, allocations: 198.8 kB / 281.9 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.01377, allocations: 4 kB / 281.9 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.01377, allocations: 0 / 281.9 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.01377, allocations: 0 / 281.9 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006344/0.01441, allocations: 0.4979 MB / 282.4 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.01441, allocations: 0 / 282.4 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.0146, allocations: 51.91 kB / 282.4 MB, free: 7.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.0146, allocations: 0 / 282.4 MB, free: 7.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.01462, allocations: 8 kB / 282.4 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.197e-06/0.01462, allocations: 8.031 kB / 282.4 MB, free: 7.734 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01462, allocations: 0 / 282.4 MB, free: 7.734 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004065/0.01503, allocations: 389.2 kB / 282.8 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.595e-05/0.01509, allocations: 27.84 kB / 282.9 MB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.223e-05/0.01512, allocations: 11.98 kB / 282.9 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.515e-05/0.01521, allocations: 12.12 kB / 282.9 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.735e-05/0.01527, allocations: 15.97 kB / 282.9 MB, free: 7.262 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.01529, allocations: 7.984 kB / 282.9 MB, free: 7.254 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001198/0.01541, allocations: 173.4 kB / 283.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01541, allocations: 0 / 283.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003072/0.01571, allocations: 44 kB / 283.1 MB, free: 7.043 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.0001609/0.01587, allocations: 115.1 kB / 283.2 MB, free: 6.922 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002191/0.01609, allocations: 111.5 kB / 283.3 MB, free: 6.809 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.01609, allocations: 0 / 283.3 MB, free: 6.809 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.0162, allocations: 79.52 kB / 283.4 MB, free: 6.727 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.01652, allocations: 31.86 kB / 283.4 MB, free: 6.695 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.01755, allocations: 0.5723 MB / 284 MB, free: 6.094 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.132e-05/0.01762, allocations: 92.3 kB / 284.1 MB, free: 5.984 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.607e-05/0.01771, allocations: 29.92 kB / 284.1 MB, free: 5.953 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.01782, allocations: 94.2 kB / 284.2 MB, free: 5.859 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01782, allocations: 4 kB / 284.2 MB, free: 5.855 MB / 266.7 MB Notification: Performance of Templates: time 0.005626/0.02345, allocations: 2.012 MB / 286.2 MB, free: 3.871 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.0198665051721036]