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.001153/0.001153, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.00116/0.00116, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.366/1.366, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 58.45 kB / 301.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.111, allocations: 49.44 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00449/0.1156, allocations: 2.203 MB / 352.9 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.1172, allocations: 0.6932 MB / 353.6 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002981/0.1175, allocations: 7.938 kB / 353.6 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002683/0.1179, allocations: 47.52 kB / 353.7 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003021/0.1182, allocations: 47.59 kB / 353.7 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004106/0.1186, allocations: 95.77 kB / 353.8 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003757/0.119, allocations: 239.7 kB / 354 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002941/0.1193, allocations: 111.6 kB / 354.1 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002301/0.1195, allocations: 87.62 kB / 354.2 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000204/0.1197, allocations: 119.4 kB / 354.3 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.893e-05/0.1198, allocations: 16 kB / 354.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.1199, allocations: 27.98 kB / 354.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.962e-05/0.12, allocations: 55.78 kB / 354.4 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.1201, allocations: 111.3 kB / 354.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003452/0.1205, allocations: 231.4 kB / 354.8 MB, free: 336 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.1205, allocations: 0 / 354.8 MB, free: 336 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1205, allocations: 0 / 354.8 MB, free: 336 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.1205, allocations: 0 / 354.8 MB, free: 336 kB / 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.001079/0.1216, allocations: 0.5496 MB / 355.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1217, allocations: 11.89 kB / 355.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.433e-05/0.1218, allocations: 32.56 kB / 355.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.1221, allocations: 256.3 kB / 355.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.637e-05/0.1221, allocations: 16.81 kB / 355.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.388e-05/0.1222, allocations: 28.12 kB / 355.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005191/0.1227, allocations: 250.7 kB / 355.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.1228, allocations: 0 / 355.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.663e-05/0.1228, allocations: 11.98 kB / 355.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.133e-05/0.1228, allocations: 12.44 kB / 355.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00048/0.1233, allocations: 197.5 kB / 356.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.1246, allocations: 0.8262 MB / 357 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003866/0.125, allocations: 186.5 kB / 357.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002323/0.1253, allocations: 105.2 kB / 357.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001134/0.1254, allocations: 93.03 kB / 357.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.1254, allocations: 34.56 kB / 357.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.633e-06/0.1254, allocations: 0 / 357.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.00163/0.1271, allocations: 0.719 MB / 358.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.1271, allocations: 67.39 kB / 358.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000253/0.1274, allocations: 216.9 kB / 358.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.1274, allocations: 25.7 kB / 358.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1275, allocations: 156.3 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.074e-05/0.1276, allocations: 82.81 kB / 358.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.1277, allocations: 49.7 kB / 358.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1279, allocations: 338.8 kB / 359 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002188/0.1281, allocations: 87.94 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.1284, allocations: 119.9 kB / 359.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004416/0.1288, allocations: 217 kB / 359.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1289, allocations: 4 kB / 359.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005688/0.1294, allocations: 267.4 kB / 359.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.1295, allocations: 8 kB / 359.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.1295, allocations: 3.984 kB / 359.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.1295, allocations: 0 / 359.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.1298, allocations: 63.89 kB / 359.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1298, allocations: 4.062 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001413/0.13, allocations: 23.97 kB / 359.8 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.282e-05/0.13, allocations: 16 kB / 359.8 MB, free: 10.98 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.0001423/0.1302, allocations: 141.7 kB / 359.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.756e-05/0.1302, allocations: 23.7 kB / 360 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006435/0.1309, allocations: 296.3 kB / 360.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.1309, allocations: 4 kB / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.1309, allocations: 0 / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.1309, allocations: 0 / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001158/0.1321, allocations: 0.6873 MB / 360.9 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.1321, allocations: 4.031 kB / 360.9 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.1324, allocations: 55.91 kB / 361 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.1324, allocations: 0 / 361 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.1324, allocations: 11.94 kB / 361 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.1324, allocations: 3.984 kB / 361 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.1325, allocations: 0 / 361 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008452/0.1333, allocations: 484.5 kB / 361.5 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.1334, allocations: 112.9 kB / 361.6 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.358e-05/0.1335, allocations: 19.86 kB / 361.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.1336, allocations: 11.94 kB / 361.6 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.32e-05/0.1337, allocations: 15.97 kB / 361.6 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.1337, allocations: 12 kB / 361.7 MB, free: 9.016 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001502/0.1339, allocations: 160.4 kB / 361.8 MB, free: 8.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1339, allocations: 4 kB / 361.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003172/0.1342, allocations: 44 kB / 361.9 MB, free: 8.812 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.0001793/0.1344, allocations: 111.1 kB / 362 MB, free: 8.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005914/0.135, allocations: 247.7 kB / 362.2 MB, free: 8.453 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.135, allocations: 0 / 362.2 MB, free: 8.453 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002382/0.1353, allocations: 128 kB / 362.3 MB, free: 8.328 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.1356, allocations: 24.38 kB / 362.4 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.1369, allocations: 0.7237 MB / 363.1 MB, free: 7.547 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.1373, allocations: 0.7639 MB / 363.8 MB, free: 6.754 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.799e-05/0.1374, allocations: 27.44 kB / 363.9 MB, free: 6.727 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1374, allocations: 0 / 363.9 MB, free: 6.727 MB / 302.1 MB Notification: Performance of Templates: time 0.005859/0.1433, allocations: 2.853 MB / 366.7 MB, free: 3.867 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/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_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches