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: 98.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.0013, allocations: 207.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003066/0.0003067, allocations: 8 kB / 306.6 MB, free: 1.41 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1294, allocations: 51.49 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002318/0.1318, allocations: 1.829 MB / 359.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.133, allocations: 0.6899 MB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.1331, allocations: 7.938 kB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.1332, allocations: 19.78 kB / 360.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.1334, allocations: 55.78 kB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.1337, allocations: 75.86 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002518/0.1339, allocations: 152.1 kB / 360.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001937/0.1341, allocations: 97.75 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.1343, allocations: 71.64 kB / 361 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.1344, allocations: 83.55 kB / 361.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.161e-05/0.1345, allocations: 4 kB / 361.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.679e-05/0.1346, allocations: 16 kB / 361.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.755e-05/0.1346, allocations: 39.83 kB / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.285e-05/0.1347, allocations: 57.58 kB / 361.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001945/0.1349, allocations: 167.9 kB / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1349, allocations: 4 kB / 361.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1349, allocations: 0 / 361.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1349, allocations: 0 / 361.4 MB, free: 10.54 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.0008139/0.1357, allocations: 0.5104 MB / 361.9 MB, free: 9.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.1358, allocations: 12.03 kB / 361.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.1359, allocations: 39.56 kB / 362 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.1362, allocations: 242.4 kB / 362.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.1363, allocations: 16.42 kB / 362.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.953e-05/0.1363, allocations: 24 kB / 362.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004584/0.1368, allocations: 258.6 kB / 362.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.1368, allocations: 0 / 362.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.746e-05/0.1368, allocations: 15.94 kB / 362.5 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.949e-05/0.1369, allocations: 16.42 kB / 362.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004296/0.1373, allocations: 197.6 kB / 362.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.1384, allocations: 0.8264 MB / 363.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.1388, allocations: 188.3 kB / 363.7 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.625e-05/0.1389, allocations: 89.28 kB / 363.8 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.1389, allocations: 42.69 kB / 363.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.743e-06/0.1389, allocations: 0 / 363.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001431/0.1404, allocations: 0.7436 MB / 364.6 MB, free: 7.098 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.1404, allocations: 51.41 kB / 364.7 MB, free: 7.035 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.1406, allocations: 217 kB / 364.9 MB, free: 6.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.1407, allocations: 33.7 kB / 364.9 MB, free: 6.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.933e-05/0.1408, allocations: 148.4 kB / 365 MB, free: 6.621 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.978e-05/0.1409, allocations: 82.8 kB / 365.1 MB, free: 6.539 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.1409, allocations: 4 kB / 365.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.141, allocations: 342.8 kB / 365.5 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.1412, allocations: 79.95 kB / 365.5 MB, free: 6.113 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.1414, allocations: 131.4 kB / 365.7 MB, free: 5.973 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000216/0.1416, allocations: 97.09 kB / 365.8 MB, free: 5.879 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1417, allocations: 4 kB / 365.8 MB, free: 5.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004949/0.1422, allocations: 288.4 kB / 366.1 MB, free: 5.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.1422, allocations: 8 kB / 366.1 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1422, allocations: 4 kB / 366.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.1422, allocations: 8.062 kB / 366.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002649/0.1425, allocations: 63.83 kB / 366.1 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.1425, allocations: 4 kB / 366.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.1426, allocations: 15.98 kB / 366.2 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.1427, allocations: 15.98 kB / 366.2 MB, free: 5.473 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001332/0.1428, allocations: 144.1 kB / 366.3 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.305e-05/0.1429, allocations: 23.72 kB / 366.3 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005868/0.1435, allocations: 307.1 kB / 366.6 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1435, allocations: 4 kB / 366.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.1435, allocations: 0 / 366.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1435, allocations: 4 kB / 366.6 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.1446, allocations: 0.6922 MB / 367.3 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.1446, allocations: 4.031 kB / 367.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/0.1449, allocations: 55.91 kB / 367.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.1449, allocations: 0 / 367.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.1449, allocations: 8 kB / 367.4 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1449, allocations: 4 kB / 367.4 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1449, allocations: 0 / 367.4 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008154/0.1458, allocations: 0.5063 MB / 367.9 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.1459, allocations: 120.8 kB / 368 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.1459, allocations: 12 kB / 368 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.1461, allocations: 15.98 kB / 368.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.863e-05/0.1461, allocations: 19.92 kB / 368.1 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.1462, allocations: 12 kB / 368.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001219/0.1463, allocations: 152.5 kB / 368.2 MB, free: 3.289 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1463, allocations: 0 / 368.2 MB, free: 3.289 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002841/0.1466, allocations: 48 kB / 368.3 MB, free: 3.242 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001657/0.1468, allocations: 107.2 kB / 368.4 MB, free: 3.129 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004775/0.1472, allocations: 223.8 kB / 368.6 MB, free: 2.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1473, allocations: 0 / 368.6 MB, free: 2.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002226/0.1475, allocations: 131.9 kB / 368.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.1478, allocations: 16.42 kB / 368.8 MB, free: 2.766 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.1489, allocations: 0.8244 MB / 369.6 MB, free: 1.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.1492, allocations: 0.7758 MB / 370.4 MB, free: 1.105 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.1493, allocations: 41.92 kB / 370.4 MB, free: 1.066 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.132e-05/0.1494, allocations: 31.42 kB / 370.4 MB, free: 1.035 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1494, allocations: 0 / 370.4 MB, free: 1.035 MB / 302.1 MB Notification: Performance of Templates: time 0.2095/0.3589, allocations: 1.771 MB / 372.2 MB, free: 19.23 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","../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches