Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 99.05 kB / 16.5 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 195.5 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 241.1 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 55.09 kB / 299.9 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1098, allocations: 49.44 MB / 349.4 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003825/0.1136, allocations: 2.245 MB / 351.6 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.1151, allocations: 0.6894 MB / 352.3 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002368/0.1153, allocations: 4 kB / 352.3 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.1155, allocations: 35.66 kB / 352.4 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002488/0.1158, allocations: 39.7 kB / 352.4 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003179/0.1162, allocations: 83.86 kB / 352.5 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003063/0.1165, allocations: 219.7 kB / 352.7 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.1167, allocations: 111.6 kB / 352.8 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001941/0.117, allocations: 83.58 kB / 352.9 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.1171, allocations: 107.5 kB / 353 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.889e-05/0.1172, allocations: 12 kB / 353 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.265e-05/0.1173, allocations: 23.98 kB / 353 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.413e-05/0.1174, allocations: 51.77 kB / 353.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.1175, allocations: 99.34 kB / 353.2 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002766/0.1178, allocations: 227.4 kB / 353.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1178, allocations: 0 / 353.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1178, allocations: 0 / 353.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.1178, allocations: 3.938 kB / 353.4 MB, free: 0.8281 MB / 286.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.0009475/0.1188, allocations: 0.5457 MB / 353.9 MB, free: 240 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.1188, allocations: 8.031 kB / 353.9 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.827e-05/0.1189, allocations: 32.5 kB / 354 MB, free: 200 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.1192, allocations: 252.4 kB / 354.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.1193, allocations: 20.8 kB / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.353e-05/0.1193, allocations: 24.12 kB / 354.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004923/0.1198, allocations: 254.7 kB / 354.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.1198, allocations: 3.938 kB / 354.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.1199, allocations: 8 kB / 354.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.107e-05/0.1199, allocations: 12.44 kB / 354.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004605/0.1204, allocations: 189.6 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.1216, allocations: 0.8301 MB / 355.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003643/0.122, allocations: 182 kB / 355.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.1222, allocations: 109.2 kB / 355.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001142/0.1223, allocations: 89.05 kB / 355.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.1224, allocations: 34.55 kB / 356 MB, free: 14.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.1224, allocations: 4 kB / 356 MB, free: 14.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001476/0.1239, allocations: 0.7228 MB / 356.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/0.1239, allocations: 55.41 kB / 356.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002285/0.1242, allocations: 217 kB / 357 MB, free: 12.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/0.1242, allocations: 25.7 kB / 357 MB, free: 12.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.1243, allocations: 152.4 kB / 357.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.322e-05/0.1244, allocations: 86.73 kB / 357.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.029e-05/0.1245, allocations: 53.7 kB / 357.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1246, allocations: 334.8 kB / 357.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.1248, allocations: 87.95 kB / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.1251, allocations: 119.4 kB / 357.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000403/0.1255, allocations: 216.6 kB / 358 MB, free: 11.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.1255, allocations: 0 / 358 MB, free: 11.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005131/0.126, allocations: 275.6 kB / 358.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.126, allocations: 7.281 kB / 358.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.126, allocations: 4 kB / 358.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.1261, allocations: 0 / 358.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000283/0.1263, allocations: 63.89 kB / 358.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1264, allocations: 8.062 kB / 358.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.1265, allocations: 15.98 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.1265, allocations: 11.92 kB / 358.4 MB, free: 11.51 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.0001332/0.1267, allocations: 145.7 kB / 358.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.66e-05/0.1267, allocations: 23.66 kB / 358.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005875/0.1273, allocations: 299.1 kB / 358.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.1273, allocations: 3.984 kB / 358.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1274, allocations: 0 / 358.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.1274, allocations: 4 kB / 358.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.1284, allocations: 0.6866 MB / 359.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1284, allocations: 4.031 kB / 359.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002865/0.1287, allocations: 55.91 kB / 359.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.1287, allocations: 0 / 359.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.1288, allocations: 11.94 kB / 359.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.1288, allocations: 0 / 359.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1288, allocations: 0 / 359.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007651/0.1295, allocations: 485.3 kB / 360.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.875e-05/0.1296, allocations: 120.8 kB / 360.2 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.864e-05/0.1297, allocations: 7.938 kB / 360.2 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.1299, allocations: 16.17 kB / 360.2 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.49e-05/0.1299, allocations: 15.97 kB / 360.2 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.1299, allocations: 12 kB / 360.3 MB, free: 9.535 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000139/0.1301, allocations: 160.4 kB / 360.4 MB, free: 9.379 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1301, allocations: 4 kB / 360.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000305/0.1304, allocations: 52 kB / 360.5 MB, free: 9.324 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.0001687/0.1306, allocations: 111.1 kB / 360.6 MB, free: 9.207 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005005/0.1311, allocations: 215.8 kB / 360.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1311, allocations: 0 / 360.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002354/0.1314, allocations: 128.5 kB / 360.9 MB, free: 8.871 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003697/0.1317, allocations: 32.3 kB / 360.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.133, allocations: 0.778 MB / 361.7 MB, free: 8.035 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.1334, allocations: 0.7642 MB / 362.5 MB, free: 7.246 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000143/0.1336, allocations: 53.89 kB / 362.5 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.087e-05/0.1337, allocations: 23.44 kB / 362.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of SimCode: time 1.794e-06/0.1337, allocations: 0 / 362.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of Templates: time 0.005518/0.1392, allocations: 1.859 MB / 364.4 MB, free: 5.312 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches