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.0007821/0.0007821, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001088/0.00187, allocations: 449.7 kB / 10.37 MB, free: 324 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.001168/0.001168, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001271/0.002438, allocations: 463.6 kB / 11.72 MB, free: 2.453 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 1.018/1.018, allocations: 177.4 MB / 189.9 MB, free: 4.828 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09492/1.113, allocations: 53.87 MB / 243.7 MB, free: 14.9 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.343e-06/1.343e-06, allocations: 0 / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.071e-05/2.205e-05, allocations: 6.312 kB / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003183/0.003205, allocations: 2.232 MB / 247.2 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.004534, allocations: 0.7513 MB / 248 MB, free: 10.64 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.004678, allocations: 7.938 kB / 248 MB, free: 10.63 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.004793, allocations: 55.45 kB / 248.1 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000122/0.004915, allocations: 43.59 kB / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.005187, allocations: 107.6 kB / 248.2 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002684/0.005456, allocations: 235.6 kB / 248.4 MB, free: 10.2 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.005614, allocations: 82.61 kB / 248.5 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002231/0.005837, allocations: 143.7 kB / 248.7 MB, free: 9.977 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.005956, allocations: 79.77 kB / 248.7 MB, free: 9.898 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.97e-05/0.005986, allocations: 16 kB / 248.8 MB, free: 9.883 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.006088, allocations: 47.84 kB / 248.8 MB, free: 9.836 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.243e-05/0.006141, allocations: 43.81 kB / 248.8 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.514e-05/0.006206, allocations: 55.81 kB / 248.9 MB, free: 9.738 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000228/0.006434, allocations: 163.3 kB / 249.1 MB, free: 9.578 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.006443, allocations: 0 / 249.1 MB, free: 9.578 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.006444, allocations: 0 / 249.1 MB, free: 9.578 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.006454, allocations: 0 / 249.1 MB, free: 9.578 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.0005772/0.007031, allocations: 495.7 kB / 249.5 MB, free: 9.07 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.00707, allocations: 8.031 kB / 249.5 MB, free: 9.062 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.007239, allocations: 122 kB / 249.7 MB, free: 8.926 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002307/0.00747, allocations: 181.3 kB / 249.8 MB, free: 8.723 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/0.007497, allocations: 16.88 kB / 249.9 MB, free: 8.707 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.63e-05/0.007533, allocations: 24.36 kB / 249.9 MB, free: 8.684 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/0.007822, allocations: 199.7 kB / 250.1 MB, free: 8.465 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.007835, allocations: 192 / 250.1 MB, free: 8.465 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.938e-05/0.007855, allocations: 12.38 kB / 250.1 MB, free: 8.453 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.067e-05/0.007885, allocations: 16.38 kB / 250.1 MB, free: 8.438 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001355/0.008021, allocations: 73.44 kB / 250.2 MB, free: 8.371 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007948/0.008816, allocations: 0.5558 MB / 250.7 MB, free: 7.789 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.008996, allocations: 97.33 kB / 250.8 MB, free: 7.684 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.029e-05/0.009056, allocations: 40.83 kB / 250.9 MB, free: 7.641 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001104/0.009166, allocations: 20 kB / 250.9 MB, free: 7.621 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.009193, allocations: 38.48 kB / 250.9 MB, free: 7.574 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.643e-06/0.009194, allocations: 0 / 250.9 MB, free: 7.574 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007032/0.009898, allocations: 380.9 kB / 251.3 MB, free: 7.168 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/0.009936, allocations: 55.41 kB / 251.4 MB, free: 7.102 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.01008, allocations: 187.5 kB / 251.5 MB, free: 6.902 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.0101, allocations: 29.7 kB / 251.6 MB, free: 6.867 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.672e-05/0.01019, allocations: 140.3 kB / 251.7 MB, free: 6.727 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.634e-05/0.01024, allocations: 83.3 kB / 251.8 MB, free: 6.645 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-05/0.01032, allocations: 53.64 kB / 251.8 MB, free: 6.586 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.01044, allocations: 338.7 kB / 252.2 MB, free: 6.246 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.972e-05/0.01049, allocations: 23.98 kB / 252.2 MB, free: 6.223 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.987e-05/0.01056, allocations: 59.41 kB / 252.2 MB, free: 6.152 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.0107, allocations: 106.1 kB / 252.4 MB, free: 6.035 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.0107, allocations: 0 / 252.4 MB, free: 6.035 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001933/0.01089, allocations: 138.6 kB / 252.5 MB, free: 5.895 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.01091, allocations: 4 kB / 252.5 MB, free: 5.891 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.01091, allocations: 0 / 252.5 MB, free: 5.891 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.01092, allocations: 4 kB / 252.5 MB, free: 5.887 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.01113, allocations: 63.89 kB / 252.6 MB, free: 5.824 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.01113, allocations: 4.062 kB / 252.6 MB, free: 5.82 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.141e-05/0.01119, allocations: 8 kB / 252.6 MB, free: 5.812 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.01121, allocations: 8 kB / 252.6 MB, free: 5.805 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 0.000104/0.01131, allocations: 128.5 kB / 252.7 MB, free: 5.668 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.81e-05/0.01135, allocations: 19.97 kB / 252.7 MB, free: 5.648 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002514/0.0116, allocations: 158.2 kB / 252.9 MB, free: 5.492 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.0116, allocations: 4 kB / 252.9 MB, free: 5.488 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.01161, allocations: 0 / 252.9 MB, free: 5.488 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.01161, allocations: 0 / 252.9 MB, free: 5.488 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005367/0.01215, allocations: 440.6 kB / 253.3 MB, free: 5.031 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.01215, allocations: 0 / 253.3 MB, free: 5.031 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001974/0.01235, allocations: 55.91 kB / 253.4 MB, free: 4.977 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.071e-05/0.0124, allocations: 31.84 kB / 253.4 MB, free: 4.945 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.0124, allocations: 0 / 253.4 MB, free: 4.945 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.01242, allocations: 8.062 kB / 253.4 MB, free: 4.938 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.01242, allocations: 4 kB / 253.4 MB, free: 4.934 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.01242, allocations: 3.938 kB / 253.4 MB, free: 4.93 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002955/0.01272, allocations: 292.6 kB / 253.7 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.01274, allocations: 4 kB / 253.7 MB, free: 4.617 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.057e-05/0.01283, allocations: 8 kB / 253.7 MB, free: 4.609 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.889e-05/0.01288, allocations: 19.95 kB / 253.7 MB, free: 4.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.0129, allocations: 7.938 kB / 253.7 MB, free: 4.582 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.299e-05/0.01295, allocations: 59.03 kB / 253.8 MB, free: 4.523 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01295, allocations: 0 / 253.8 MB, free: 4.523 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002544/0.01321, allocations: 44 kB / 253.8 MB, free: 4.48 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.000156/0.01336, allocations: 92.28 kB / 253.9 MB, free: 4.379 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002002/0.01356, allocations: 115.7 kB / 254 MB, free: 4.266 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/0.01357, allocations: 4 kB / 254 MB, free: 4.262 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.604e-05/0.01366, allocations: 69.16 kB / 254.1 MB, free: 4.191 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.01392, allocations: 42.73 kB / 254.2 MB, free: 4.152 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.01561, allocations: 486 kB / 254.6 MB, free: 3.648 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.007e-05/0.01568, allocations: 92.3 kB / 254.7 MB, free: 3.539 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.489e-05/0.01577, allocations: 29.92 kB / 254.7 MB, free: 3.512 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.01587, allocations: 83.36 kB / 254.8 MB, free: 3.43 MB / 250.7 MB Notification: Performance of SimCode: time 4.1e-07/0.01587, allocations: 0 / 254.8 MB, free: 3.43 MB / 250.7 MB Notification: Performance of Templates: time 0.004766/0.02064, allocations: 1.949 MB / 256.8 MB, free: 1.504 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6672094529494643]