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.001113/0.001121, allocations: 92.34 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.00145, allocations: 201 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.7 MB / 246.8 MB, free: 11.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002634/0.0002633, allocations: 4 kB / 307.7 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1369, allocations: 51.53 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002806/0.1397, allocations: 1.894 MB / 361.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.1412, allocations: 0.7207 MB / 361.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.1413, allocations: 8 kB / 361.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001808/0.1415, allocations: 35.66 kB / 361.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001984/0.1417, allocations: 39.69 kB / 361.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002651/0.142, allocations: 87.23 kB / 362 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000278/0.1423, allocations: 219.7 kB / 362.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002474/0.1425, allocations: 111.5 kB / 362.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/0.1428, allocations: 71.64 kB / 362.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.1429, allocations: 95.42 kB / 362.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.759e-05/0.143, allocations: 8 kB / 362.5 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.448e-05/0.1431, allocations: 19.98 kB / 362.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.017e-05/0.1431, allocations: 39.78 kB / 362.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.1433, allocations: 121 kB / 362.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002706/0.1435, allocations: 219.4 kB / 362.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.1436, allocations: 0 / 362.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1436, allocations: 0 / 362.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.1436, allocations: 0 / 362.9 MB, free: 9.605 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.0008909/0.1445, allocations: 0.5068 MB / 363.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.1445, allocations: 8.031 kB / 363.4 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.1447, allocations: 36.55 kB / 363.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/0.145, allocations: 255.5 kB / 363.7 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.145, allocations: 16.81 kB / 363.7 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.093e-05/0.1451, allocations: 24.36 kB / 363.8 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004937/0.1456, allocations: 263 kB / 364 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.1456, allocations: 0 / 364 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.1457, allocations: 12 kB / 364 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.709e-05/0.1457, allocations: 12.44 kB / 364 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004591/0.1462, allocations: 209.5 kB / 364.2 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.1474, allocations: 0.8302 MB / 365.1 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003638/0.1477, allocations: 184.5 kB / 365.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002319/0.148, allocations: 112.8 kB / 365.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001075/0.1481, allocations: 81.11 kB / 365.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.1481, allocations: 46.88 kB / 365.5 MB, free: 6.832 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.493e-06/0.1481, allocations: 0 / 365.5 MB, free: 6.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001513/0.1497, allocations: 0.7504 MB / 366.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.1497, allocations: 55.41 kB / 366.3 MB, free: 5.965 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.1499, allocations: 209 kB / 366.5 MB, free: 5.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.15, allocations: 33.7 kB / 366.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.1501, allocations: 160.2 kB / 366.7 MB, free: 5.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.888e-05/0.1501, allocations: 82.81 kB / 366.8 MB, free: 5.469 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.442e-05/0.1502, allocations: 29.7 kB / 366.8 MB, free: 5.434 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1503, allocations: 334.8 kB / 367.1 MB, free: 5.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.1505, allocations: 83.94 kB / 367.2 MB, free: 5.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.1508, allocations: 131.4 kB / 367.3 MB, free: 4.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004222/0.1512, allocations: 231.2 kB / 367.6 MB, free: 4.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1512, allocations: 0 / 367.6 MB, free: 4.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005234/0.1517, allocations: 285.2 kB / 367.8 MB, free: 4.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1518, allocations: 4 kB / 367.8 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1518, allocations: 4 kB / 367.8 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.1518, allocations: 0 / 367.8 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000283/0.1521, allocations: 63.89 kB / 367.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.1521, allocations: 0 / 367.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.1523, allocations: 23.97 kB / 367.9 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.1523, allocations: 15.98 kB / 367.9 MB, free: 4.242 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.0001336/0.1524, allocations: 157.6 kB / 368.1 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.308e-05/0.1525, allocations: 19.72 kB / 368.1 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006249/0.1531, allocations: 307.1 kB / 368.4 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.1531, allocations: 4 kB / 368.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1531, allocations: 0 / 368.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1531, allocations: 0 / 368.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.1542, allocations: 0.7038 MB / 369.1 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1542, allocations: 0 / 369.1 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.1545, allocations: 59.91 kB / 369.2 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.1545, allocations: 4 kB / 369.2 MB, free: 2.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.1545, allocations: 8.062 kB / 369.2 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.1545, allocations: 7.938 kB / 369.2 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.1545, allocations: 3.984 kB / 369.2 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009364/0.1555, allocations: 0.4947 MB / 369.7 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.827e-05/0.1556, allocations: 108.9 kB / 369.8 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.542e-05/0.1556, allocations: 11.98 kB / 369.8 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.1558, allocations: 15.94 kB / 369.8 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.648e-05/0.1559, allocations: 19.97 kB / 369.9 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.1559, allocations: 4 kB / 369.9 MB, free: 2.219 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001736/0.1561, allocations: 156.5 kB / 370 MB, free: 2.066 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1561, allocations: 7.938 kB / 370 MB, free: 2.059 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003241/0.1564, allocations: 48 kB / 370.1 MB, free: 2.012 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.0002304/0.1567, allocations: 99.25 kB / 370.2 MB, free: 1.906 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006192/0.1573, allocations: 243.5 kB / 370.4 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1573, allocations: 0 / 370.4 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002505/0.1576, allocations: 119.9 kB / 370.5 MB, free: 1.555 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003922/0.158, allocations: 26.66 kB / 370.5 MB, free: 1.531 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.1592, allocations: 0.8517 MB / 371.4 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2062/0.3655, allocations: 0.7612 MB / 372.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002943/0.3658, allocations: 45.77 kB / 372.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.366, allocations: 28.12 kB / 372.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of SimCode: time 9.22e-07/0.366, allocations: 0 / 372.2 MB, free: 18.94 MB / 302.1 MB Notification: Performance of Templates: time 0.007415/0.3734, allocations: 1.798 MB / 374 MB, free: 18.9 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.0.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