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.001112/0.001112, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001563/0.001563, allocations: 161.4 kB / 24.91 MB, free: 8.719 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.052/1.052, allocations: 177 MB / 205.2 MB, free: 5.023 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.813e-06/1.813e-06, allocations: 0 / 273.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.907e-05/3.088e-05, allocations: 5.266 kB / 273.4 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004027/0.004058, allocations: 2.176 MB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001793/0.005851, allocations: 0.7435 MB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002618/0.006113, allocations: 11.88 kB / 276.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002207/0.006334, allocations: 51.52 kB / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002317/0.006566, allocations: 39.59 kB / 276.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000408/0.006974, allocations: 111.6 kB / 276.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003669/0.00734, allocations: 235.7 kB / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.007525, allocations: 78.61 kB / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002508/0.007776, allocations: 143.6 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.007911, allocations: 79.75 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.1e-05/0.007942, allocations: 24 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.786e-05/0.00803, allocations: 31.98 kB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.724e-05/0.008097, allocations: 59.75 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.896e-05/0.008166, allocations: 67.77 kB / 277.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002959/0.008462, allocations: 187.2 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.008465, allocations: 0 / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.008467, allocations: 3.938 kB / 277.4 MB, free: 13.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.008471, allocations: 0 / 277.4 MB, free: 13.01 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.0005866/0.009058, allocations: 456.1 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.009096, allocations: 11.98 kB / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.009245, allocations: 36.91 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002359/0.009481, allocations: 181.4 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.009508, allocations: 16.88 kB / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.009549, allocations: 20.38 kB / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002884/0.009837, allocations: 211.6 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.009847, allocations: 4.125 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.009865, allocations: 8.375 kB / 278.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.067e-05/0.009896, allocations: 12.44 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001342/0.01003, allocations: 77.39 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007568/0.01079, allocations: 0.548 MB / 279 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001637/0.01095, allocations: 93.33 kB / 279 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.073e-05/0.01101, allocations: 40.84 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.994e-05/0.01111, allocations: 19.98 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.01113, allocations: 38.5 kB / 279.1 MB, free: 11.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.754e-06/0.01114, allocations: 0 / 279.1 MB, free: 11.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007091/0.01184, allocations: 374.6 kB / 279.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.01188, allocations: 59.41 kB / 279.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.01201, allocations: 179.5 kB / 279.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.01203, allocations: 33.7 kB / 279.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.332e-05/0.01212, allocations: 140.4 kB / 279.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.741e-05/0.01217, allocations: 83.25 kB / 280 MB, free: 10.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.608e-05/0.01225, allocations: 49.64 kB / 280 MB, free: 10.17 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.523e-05/0.01234, allocations: 346.7 kB / 280.4 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.897e-05/0.01239, allocations: 23.98 kB / 280.4 MB, free: 9.797 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.979e-05/0.01246, allocations: 59.39 kB / 280.5 MB, free: 9.727 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.0126, allocations: 109.7 kB / 280.6 MB, free: 9.609 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.01261, allocations: 0 / 280.6 MB, free: 9.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002038/0.01281, allocations: 133.4 kB / 280.7 MB, free: 9.473 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.01283, allocations: 8 kB / 280.7 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.01283, allocations: 0 / 280.7 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.01285, allocations: 8.062 kB / 280.7 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.01304, allocations: 51.91 kB / 280.8 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.01304, allocations: 0 / 280.8 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.63e-05/0.01311, allocations: 11.98 kB / 280.8 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.01312, allocations: 8 kB / 280.8 MB, free: 9.387 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.0001424/0.01326, allocations: 128.5 kB / 280.9 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.29e-05/0.01331, allocations: 15.98 kB / 280.9 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002516/0.01356, allocations: 150.4 kB / 281.1 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.01356, allocations: 4 kB / 281.1 MB, free: 9.078 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.01357, allocations: 4 kB / 281.1 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.01357, allocations: 0 / 281.1 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005753/0.01415, allocations: 432.4 kB / 281.5 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.01415, allocations: 4.062 kB / 281.5 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/0.01434, allocations: 55.91 kB / 281.6 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.01435, allocations: 0 / 281.6 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.01436, allocations: 3.984 kB / 281.6 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.01437, allocations: 4 kB / 281.6 MB, free: 8.559 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.01437, allocations: 0 / 281.6 MB, free: 8.559 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002999/0.01467, allocations: 297 kB / 281.9 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.01471, allocations: 27.84 kB / 281.9 MB, free: 8.219 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.01473, allocations: 8 kB / 281.9 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.079e-05/0.01479, allocations: 11.98 kB / 281.9 MB, free: 8.199 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.01483, allocations: 15.97 kB / 281.9 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.01484, allocations: 7.938 kB / 281.9 MB, free: 8.176 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.311e-05/0.01488, allocations: 59.02 kB / 282 MB, free: 8.117 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01488, allocations: 0 / 282 MB, free: 8.117 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001845/0.01506, allocations: 51.94 kB / 282 MB, free: 8.066 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.0001333/0.0152, allocations: 88.36 kB / 282.1 MB, free: 7.969 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001456/0.01534, allocations: 104.7 kB / 282.2 MB, free: 7.863 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.01535, allocations: 4 kB / 282.2 MB, free: 7.859 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.113e-05/0.01541, allocations: 68.7 kB / 282.3 MB, free: 7.789 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.01559, allocations: 19.98 kB / 282.3 MB, free: 7.77 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008368/0.01643, allocations: 0.5119 MB / 282.8 MB, free: 7.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000723/0.01715, allocations: 96.3 kB / 282.9 MB, free: 7.117 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001403/0.01729, allocations: 25.92 kB / 283 MB, free: 7.094 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.01742, allocations: 75.38 kB / 283 MB, free: 7.02 MB / 266.7 MB Notification: Performance of SimCode: time 1.713e-06/0.01742, allocations: 0 / 283 MB, free: 7.02 MB / 266.7 MB Notification: Performance of Templates: time 0.004413/0.02183, allocations: 1.965 MB / 285 MB, free: 5.082 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.1662518503144383]