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.001331/0.001331, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001338, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 67.83 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1282, allocations: 50.54 MB / 357.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004475/0.1327, allocations: 2.217 MB / 359.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001685/0.1344, allocations: 0.7478 MB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.1346, allocations: 7.938 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002202/0.1348, allocations: 47.52 kB / 360.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001891/0.135, allocations: 43.59 kB / 360.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003061/0.1354, allocations: 103.8 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003097/0.1357, allocations: 235.6 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002638/0.1359, allocations: 119.6 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002171/0.1362, allocations: 91.59 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.1364, allocations: 107.5 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.794e-05/0.1364, allocations: 20 kB / 361.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.1365, allocations: 31.98 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.678e-05/0.1366, allocations: 63.83 kB / 361.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.1367, allocations: 107.3 kB / 361.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003178/0.1371, allocations: 239.4 kB / 361.7 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.398e-06/0.1371, allocations: 3.984 kB / 361.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1371, allocations: 0 / 361.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.1371, allocations: 0 / 361.7 MB, free: 9.844 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.0009694/0.1381, allocations: 0.5379 MB / 362.2 MB, free: 9.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.1381, allocations: 12.03 kB / 362.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.1383, allocations: 36.55 kB / 362.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003344/0.1386, allocations: 259.5 kB / 362.5 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/0.1387, allocations: 12.81 kB / 362.5 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.077e-05/0.1387, allocations: 28.31 kB / 362.6 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005127/0.1392, allocations: 255 kB / 362.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.1393, allocations: 4 kB / 362.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.1393, allocations: 15.94 kB / 362.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.678e-05/0.1394, allocations: 12.44 kB / 362.8 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004688/0.1398, allocations: 189.5 kB / 363 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.1411, allocations: 0.834 MB / 363.9 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003821/0.1415, allocations: 182.5 kB / 364 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.1417, allocations: 104.8 kB / 364.1 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001243/0.1419, allocations: 81.11 kB / 364.2 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.1419, allocations: 38.88 kB / 364.3 MB, free: 7.062 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 3.236e-06/0.1419, allocations: 4 kB / 364.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001556/0.1435, allocations: 0.7278 MB / 365 MB, free: 6.281 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.744e-05/0.1436, allocations: 59.34 kB / 365 MB, free: 6.211 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002422/0.1438, allocations: 209 kB / 365.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.1438, allocations: 37.7 kB / 365.3 MB, free: 5.953 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.144, allocations: 144.4 kB / 365.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.717e-05/0.1441, allocations: 86.8 kB / 365.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.261e-05/0.1442, allocations: 49.69 kB / 365.6 MB, free: 5.668 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.1443, allocations: 330.8 kB / 365.9 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.1445, allocations: 83.94 kB / 366 MB, free: 5.254 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.1448, allocations: 127.4 kB / 366.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004501/0.1452, allocations: 218.6 kB / 366.3 MB, free: 4.895 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1453, allocations: 0 / 366.3 MB, free: 4.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005796/0.1458, allocations: 277.2 kB / 366.6 MB, free: 4.617 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.1459, allocations: 8 kB / 366.6 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.1459, allocations: 0 / 366.6 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.737e-05/0.1459, allocations: 4 kB / 366.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003222/0.1463, allocations: 63.89 kB / 366.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.1463, allocations: 0 / 366.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.1464, allocations: 15.98 kB / 366.7 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.1464, allocations: 8 kB / 366.7 MB, free: 4.52 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.0001849/0.1466, allocations: 149.8 kB / 366.8 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.665e-05/0.1467, allocations: 23.72 kB / 366.8 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006714/0.1474, allocations: 291.1 kB / 367.1 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.1474, allocations: 7.938 kB / 367.1 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1474, allocations: 0 / 367.1 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.1474, allocations: 3.984 kB / 367.1 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/0.1486, allocations: 0.6866 MB / 367.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1486, allocations: 0 / 367.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.1489, allocations: 55.91 kB / 367.9 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.1489, allocations: 3.984 kB / 367.9 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.169e-05/0.1489, allocations: 15.97 kB / 367.9 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.1489, allocations: 3.938 kB / 367.9 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1489, allocations: 0 / 367.9 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008399/0.1498, allocations: 484.4 kB / 368.4 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.1499, allocations: 116.9 kB / 368.5 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.15, allocations: 8 kB / 368.5 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.1501, allocations: 19.92 kB / 368.5 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.911e-05/0.1502, allocations: 15.92 kB / 368.5 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.1502, allocations: 15.98 kB / 368.5 MB, free: 2.531 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001517/0.1504, allocations: 152.5 kB / 368.7 MB, free: 2.383 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1504, allocations: 0 / 368.7 MB, free: 2.383 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003015/0.1507, allocations: 44 kB / 368.7 MB, free: 2.34 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.000181/0.1509, allocations: 107.2 kB / 368.8 MB, free: 2.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005666/0.1514, allocations: 247.7 kB / 369.1 MB, free: 1.984 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.1514, allocations: 0 / 369.1 MB, free: 1.984 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.1517, allocations: 124.3 kB / 369.2 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.152, allocations: 20.44 kB / 369.2 MB, free: 1.844 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.1532, allocations: 0.6901 MB / 369.9 MB, free: 1.125 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004026/0.1536, allocations: 0.7639 MB / 370.7 MB, free: 340 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.1538, allocations: 41.92 kB / 370.7 MB, free: 296 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.024e-05/0.1538, allocations: 31.42 kB / 370.8 MB, free: 264 kB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1539, allocations: 0 / 370.8 MB, free: 264 kB / 302.1 MB Notification: Performance of Templates: time 0.1969/0.3507, allocations: 1.973 MB / 372.7 MB, free: 19.78 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 -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/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) Reference file matches