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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=40000,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=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001202/0.001202, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001187, allocations: 69 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1314, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004803/0.1363, allocations: 2.207 MB / 361.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001986/0.1383, allocations: 0.7478 MB / 361.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003841/0.1387, allocations: 4 kB / 361.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002945/0.139, allocations: 47.47 kB / 361.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000366/0.1394, allocations: 47.64 kB / 361.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004973/0.1399, allocations: 107.7 kB / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004723/0.1404, allocations: 239.6 kB / 362.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003378/0.1408, allocations: 119.6 kB / 362.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003352/0.1411, allocations: 91.58 kB / 362.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002171/0.1413, allocations: 107.5 kB / 362.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.982e-05/0.1414, allocations: 20 kB / 362.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.1415, allocations: 31.98 kB / 362.6 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.1417, allocations: 63.75 kB / 362.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001495/0.1418, allocations: 107.3 kB / 362.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000425/0.1423, allocations: 247 kB / 363.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1423, allocations: 0 / 363.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1423, allocations: 0 / 363.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.1423, allocations: 4 kB / 363.1 MB, free: 9.145 MB / 302.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.001144/0.1435, allocations: 0.5379 MB / 363.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.1435, allocations: 16.03 kB / 363.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.1437, allocations: 36.55 kB / 363.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.1441, allocations: 263.4 kB / 363.9 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.1442, allocations: 16.81 kB / 363.9 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.112e-05/0.1442, allocations: 20.38 kB / 363.9 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005315/0.1448, allocations: 254.9 kB / 364.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.1448, allocations: 12 kB / 364.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.1448, allocations: 4 kB / 364.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.189e-05/0.1449, allocations: 16.42 kB / 364.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004333/0.1453, allocations: 193.5 kB / 364.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.1467, allocations: 0.8185 MB / 365.2 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/0.147, allocations: 178.4 kB / 365.4 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.1473, allocations: 112.4 kB / 365.5 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000125/0.1474, allocations: 85.11 kB / 365.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.1474, allocations: 46.86 kB / 365.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.383e-06/0.1474, allocations: 0 / 365.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001715/0.1492, allocations: 0.7178 MB / 366.4 MB, free: 5.586 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.1492, allocations: 55.41 kB / 366.4 MB, free: 5.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002304/0.1495, allocations: 217 kB / 366.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.1495, allocations: 29.7 kB / 366.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.1496, allocations: 148.4 kB / 366.8 MB, free: 5.113 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.331e-05/0.1497, allocations: 82.8 kB / 366.9 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.819e-05/0.1498, allocations: 49.7 kB / 366.9 MB, free: 4.977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1499, allocations: 334.8 kB / 367.3 MB, free: 4.641 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.1501, allocations: 83.94 kB / 367.3 MB, free: 4.559 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.1504, allocations: 127.3 kB / 367.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004187/0.1508, allocations: 214.3 kB / 367.7 MB, free: 4.203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1508, allocations: 3.938 kB / 367.7 MB, free: 4.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005171/0.1513, allocations: 281.1 kB / 367.9 MB, free: 3.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.1514, allocations: 4 kB / 368 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.1514, allocations: 4 kB / 368 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.1514, allocations: 0 / 368 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.1517, allocations: 63.83 kB / 368 MB, free: 3.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.1517, allocations: 4.062 kB / 368 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.1518, allocations: 19.98 kB / 368 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.1519, allocations: 11.98 kB / 368.1 MB, free: 3.812 MB / 302.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.0001533/0.152, allocations: 141.7 kB / 368.2 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.828e-05/0.1521, allocations: 23.72 kB / 368.2 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005949/0.1527, allocations: 291.1 kB / 368.5 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1527, allocations: 8 kB / 368.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1527, allocations: 0 / 368.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.1527, allocations: 0 / 368.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001022/0.1538, allocations: 0.6948 MB / 369.2 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1538, allocations: 0 / 369.2 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/0.1541, allocations: 51.97 kB / 369.3 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.1541, allocations: 8.031 kB / 369.3 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.1541, allocations: 12.05 kB / 369.3 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.1541, allocations: 7.938 kB / 369.3 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.1541, allocations: 0 / 369.3 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007489/0.1549, allocations: 485.2 kB / 369.8 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.155, allocations: 116.9 kB / 369.9 MB, free: 1.887 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.489e-05/0.155, allocations: 8 kB / 369.9 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.1552, allocations: 15.92 kB / 369.9 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.142e-05/0.1553, allocations: 23.97 kB / 369.9 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.1553, allocations: 4 kB / 369.9 MB, free: 1.836 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000137/0.1554, allocations: 160.5 kB / 370.1 MB, free: 1.676 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1554, allocations: 0 / 370.1 MB, free: 1.676 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003015/0.1557, allocations: 44 kB / 370.1 MB, free: 1.633 MB / 302.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.0001807/0.1559, allocations: 111.2 kB / 370.2 MB, free: 1.516 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004965/0.1564, allocations: 219.8 kB / 370.4 MB, free: 1.301 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1564, allocations: 3.938 kB / 370.4 MB, free: 1.297 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002164/0.1567, allocations: 116.3 kB / 370.6 MB, free: 1.184 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.157, allocations: 31.27 kB / 370.6 MB, free: 1.156 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.1583, allocations: 0.6703 MB / 371.3 MB, free: 468 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2499/0.4082, allocations: 0.7658 MB / 372 MB, free: 19.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002141/0.4085, allocations: 49.48 kB / 372.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.529e-05/0.4086, allocations: 24.73 kB / 372.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4086, allocations: 0 / 372.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of Templates: time 0.006607/0.4152, allocations: 1.976 MB / 374.1 MB, free: 19.77 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches