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.001796/0.001796, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.002323/0.002323, allocations: 204.7 kB / 23.72 MB, free: 4.391 MB / 14.72 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.523/1.523, allocations: 230.5 MB / 257.4 MB, free: 7.766 MB / 206.1 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 0.002076/0.002076, allocations: 67.91 kB / 378.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3245, allocations: 53.41 MB / 431.6 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00522/0.3297, allocations: 2.113 MB / 433.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.3315, allocations: 0.7049 MB / 434.5 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.3316, allocations: 7.938 kB / 434.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002057/0.3318, allocations: 51.45 kB / 434.5 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002055/0.332, allocations: 43.64 kB / 434.6 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003294/0.3324, allocations: 103.8 kB / 434.7 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003131/0.3327, allocations: 231.7 kB / 434.9 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002291/0.3329, allocations: 79.8 kB / 435 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.3331, allocations: 103.6 kB / 435.1 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.3333, allocations: 99.45 kB / 435.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.028e-05/0.3333, allocations: 20 kB / 435.2 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.375e-05/0.3334, allocations: 31.98 kB / 435.2 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.612e-05/0.3335, allocations: 67.72 kB / 435.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.668e-05/0.3336, allocations: 83.52 kB / 435.4 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003615/0.334, allocations: 249.3 kB / 435.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.334, allocations: 0 / 435.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.334, allocations: 0 / 435.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.334, allocations: 0 / 435.6 MB, free: 2.547 MB / 334.1 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.0009836/0.335, allocations: 493.3 kB / 436.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.335, allocations: 15.98 kB / 436.1 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.3352, allocations: 28.8 kB / 436.1 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.3355, allocations: 194.7 kB / 436.3 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.892e-05/0.3356, allocations: 20.75 kB / 436.3 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.239e-05/0.3356, allocations: 20.38 kB / 436.4 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000515/0.3361, allocations: 259 kB / 436.6 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.3361, allocations: 4 kB / 436.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.299e-05/0.3362, allocations: 8 kB / 436.6 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.653e-05/0.3362, allocations: 12.44 kB / 436.6 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004839/0.3367, allocations: 197.5 kB / 436.8 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.3379, allocations: 0.6897 MB / 437.5 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000397/0.3383, allocations: 181.6 kB / 437.7 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.3385, allocations: 108.2 kB / 437.8 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.894e-05/0.3385, allocations: 4 kB / 437.8 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.3386, allocations: 34.94 kB / 437.8 MB, free: 196 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.743e-06/0.3386, allocations: 0 / 437.8 MB, free: 196 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001551/0.3401, allocations: 0.6637 MB / 438.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/0.3402, allocations: 51.41 kB / 438.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002179/0.3404, allocations: 191.8 kB / 438.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.3404, allocations: 29.7 kB / 438.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/0.3406, allocations: 156.4 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.3407, allocations: 87.22 kB / 439 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.3408, allocations: 49.7 kB / 439.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000218/0.341, allocations: 330.8 kB / 439.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/0.3413, allocations: 75.95 kB / 439.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002616/0.3415, allocations: 132 kB / 439.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004734/0.342, allocations: 222.7 kB / 439.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.342, allocations: 4 kB / 439.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005741/0.3426, allocations: 273.3 kB / 440.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.3426, allocations: 4 kB / 440.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.3426, allocations: 4 kB / 440.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.915e-05/0.3426, allocations: 4.062 kB / 440.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.343, allocations: 59.89 kB / 440.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.343, allocations: 4 kB / 440.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/0.3431, allocations: 15.98 kB / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.996e-05/0.3431, allocations: 11.98 kB / 440.2 MB, free: 13.74 MB / 350.1 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.0001884/0.3433, allocations: 141.7 kB / 440.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.988e-05/0.3434, allocations: 19.86 kB / 440.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007326/0.3441, allocations: 299 kB / 440.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3441, allocations: 4 kB / 440.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3441, allocations: 0 / 440.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.456e-05/0.3441, allocations: 3.984 kB / 440.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001223/0.3454, allocations: 0.5928 MB / 441.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3454, allocations: 0 / 441.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/0.3457, allocations: 55.95 kB / 441.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.3457, allocations: 4.031 kB / 441.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.3457, allocations: 8 kB / 441.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.76e-06/0.3457, allocations: 4.062 kB / 441.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3457, allocations: 3.938 kB / 441.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00092/0.3466, allocations: 486.5 kB / 441.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.619e-05/0.3467, allocations: 39.89 kB / 441.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.635e-05/0.3467, allocations: 4 kB / 441.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.3469, allocations: 15.98 kB / 441.8 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.822e-05/0.347, allocations: 23.91 kB / 441.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.347, allocations: 8 kB / 441.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.3471, allocations: 141.5 kB / 442 MB, free: 11.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3471, allocations: 0 / 442 MB, free: 11.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.3474, allocations: 47.94 kB / 442 MB, free: 11.79 MB / 350.1 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.0001747/0.3476, allocations: 107.2 kB / 442.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005282/0.3481, allocations: 220 kB / 442.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3481, allocations: 0 / 442.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002376/0.3484, allocations: 115.8 kB / 442.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003438/0.3487, allocations: 23.78 kB / 442.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.35, allocations: 0.6894 MB / 443.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001847/0.3501, allocations: 158.8 kB / 443.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001386/0.3503, allocations: 49.89 kB / 443.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.22e-05/0.3504, allocations: 19.44 kB / 443.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3504, allocations: 0 / 443.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of Templates: time 0.006968/0.3573, allocations: 2.041 MB / 445.4 MB, free: 8.328 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] 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: 5.081673504784703]