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.001646/0.001646, 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.001991/0.001991, 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.373/1.373, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 62.7 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1242, allocations: 50.54 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003711/0.128, allocations: 2.199 MB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001328/0.1293, allocations: 0.7478 MB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.1295, allocations: 7.938 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001884/0.1297, allocations: 47.53 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.1299, allocations: 43.58 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002839/0.1302, allocations: 111.8 kB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002744/0.1305, allocations: 227.7 kB / 362.3 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002363/0.1307, allocations: 119.6 kB / 362.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.1309, allocations: 99.56 kB / 362.5 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001498/0.1311, allocations: 115.4 kB / 362.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.071e-05/0.1311, allocations: 16 kB / 362.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.845e-05/0.1312, allocations: 35.98 kB / 362.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.309e-05/0.1313, allocations: 47.84 kB / 362.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.647e-05/0.1314, allocations: 111.3 kB / 362.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.1317, allocations: 251 kB / 363 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1317, allocations: 0 / 363 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1317, allocations: 0 / 363 MB, free: 9.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.1317, allocations: 0 / 363 MB, free: 9.18 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.0008409/0.1325, allocations: 0.5457 MB / 363.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1326, allocations: 8.031 kB / 363.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.1327, allocations: 32.56 kB / 363.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.133, allocations: 267.5 kB / 363.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.133, allocations: 16.81 kB / 363.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/0.1331, allocations: 20.38 kB / 363.9 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004306/0.1335, allocations: 259 kB / 364.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.1335, allocations: 0 / 364.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/0.1336, allocations: 4 kB / 364.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.1336, allocations: 16.44 kB / 364.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/0.134, allocations: 193.5 kB / 364.4 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.1351, allocations: 0.8223 MB / 365.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003359/0.1355, allocations: 190.4 kB / 365.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000197/0.1357, allocations: 103.8 kB / 365.5 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.8e-05/0.1358, allocations: 89.09 kB / 365.6 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.1358, allocations: 42.88 kB / 365.6 MB, free: 6.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.773e-06/0.1358, allocations: 3.938 kB / 365.6 MB, free: 6.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001314/0.1371, allocations: 0.7217 MB / 366.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.48e-05/0.1372, allocations: 55.41 kB / 366.4 MB, free: 5.547 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001929/0.1374, allocations: 217 kB / 366.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.1374, allocations: 25.7 kB / 366.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.72e-05/0.1375, allocations: 156.3 kB / 366.8 MB, free: 5.137 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.207e-05/0.1376, allocations: 82.81 kB / 366.9 MB, free: 5.055 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.996e-05/0.1376, allocations: 45.69 kB / 366.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1378, allocations: 334.8 kB / 367.3 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.1379, allocations: 83.94 kB / 367.3 MB, free: 4.586 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.1382, allocations: 127.4 kB / 367.5 MB, free: 4.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.1385, allocations: 210.8 kB / 367.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1386, allocations: 4 kB / 367.7 MB, free: 4.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004768/0.139, allocations: 281.1 kB / 367.9 MB, free: 3.949 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.1391, allocations: 8 kB / 368 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.1391, allocations: 0 / 368 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.1391, allocations: 0 / 368 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.1394, allocations: 59.89 kB / 368 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.1394, allocations: 4 kB / 368 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.1395, allocations: 16.05 kB / 368 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.865e-05/0.1396, allocations: 19.98 kB / 368 MB, free: 3.844 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.0001254/0.1397, allocations: 149.6 kB / 368.2 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.061e-05/0.1397, allocations: 19.72 kB / 368.2 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005476/0.1403, allocations: 295.1 kB / 368.5 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.1403, allocations: 4 kB / 368.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1403, allocations: 0 / 368.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1403, allocations: 7.984 kB / 368.5 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009523/0.1413, allocations: 0.6793 MB / 369.2 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1413, allocations: 0 / 369.2 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002653/0.1416, allocations: 59.91 kB / 369.3 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1416, allocations: 3.984 kB / 369.3 MB, free: 2.566 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.1416, allocations: 8 kB / 369.3 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.1416, allocations: 12.03 kB / 369.3 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1416, allocations: 0 / 369.3 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007094/0.1423, allocations: 485.3 kB / 369.7 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.1425, allocations: 112.9 kB / 369.9 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.272e-05/0.1425, allocations: 8 kB / 369.9 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.1427, allocations: 19.92 kB / 369.9 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.479e-05/0.1427, allocations: 15.98 kB / 369.9 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.1427, allocations: 7.984 kB / 369.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001331/0.1429, allocations: 156.5 kB / 370.1 MB, free: 1.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1429, allocations: 3.938 kB / 370.1 MB, free: 1.711 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002964/0.1432, allocations: 51.94 kB / 370.1 MB, free: 1.66 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.0001644/0.1434, allocations: 111.2 kB / 370.2 MB, free: 1.543 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004726/0.1438, allocations: 219.7 kB / 370.4 MB, free: 1.328 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.1439, allocations: 0 / 370.4 MB, free: 1.328 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.1441, allocations: 124.3 kB / 370.6 MB, free: 1.207 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.1444, allocations: 20.44 kB / 370.6 MB, free: 1.188 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.1455, allocations: 0.6822 MB / 371.3 MB, free: 488 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1976/0.3431, allocations: 0.7567 MB / 372 MB, free: 19.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000231/0.3434, allocations: 51.09 kB / 372.1 MB, free: 19.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.112e-05/0.3435, allocations: 26.17 kB / 372.1 MB, free: 19.83 MB / 302.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3435, allocations: 0 / 372.1 MB, free: 19.83 MB / 302.1 MB Notification: Performance of Templates: time 0.007267/0.3507, allocations: 1.976 MB / 374.1 MB, free: 19.8 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 cvode -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