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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 124.5 kB / 18.46 MB, free: 4.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 190.6 kB / 21.4 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] 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=20000,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=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 51.92 kB / 366.8 MB, free: 344 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1042, allocations: 52.15 MB / 419 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003538/0.1077, allocations: 2.211 MB / 421.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.1091, allocations: 0.7049 MB / 421.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.1092, allocations: 7.938 kB / 421.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.1094, allocations: 47.52 kB / 421.9 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001868/0.1095, allocations: 43.59 kB / 422 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002855/0.1098, allocations: 95.77 kB / 422.1 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.1101, allocations: 231.7 kB / 422.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002196/0.1104, allocations: 91.59 kB / 422.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.1105, allocations: 91.58 kB / 422.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.1107, allocations: 115.4 kB / 422.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.141e-05/0.1108, allocations: 20 kB / 422.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.199e-05/0.1109, allocations: 27.98 kB / 422.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.83e-05/0.111, allocations: 59.78 kB / 422.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.1111, allocations: 107.3 kB / 422.8 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000345/0.1114, allocations: 242.8 kB / 423 MB, free: 8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1114, allocations: 3.938 kB / 423 MB, free: 7.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1114, allocations: 0 / 423 MB, free: 7.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.1114, allocations: 4 kB / 423 MB, free: 7.992 MB / 350.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.001062/0.1125, allocations: 0.5494 MB / 423.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.1125, allocations: 15.89 kB / 423.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.688e-05/0.1126, allocations: 32.69 kB / 423.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003435/0.1129, allocations: 260.2 kB / 423.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/0.113, allocations: 20.81 kB / 423.9 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.626e-05/0.113, allocations: 35.86 kB / 423.9 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000518/0.1135, allocations: 254.7 kB / 424.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.1136, allocations: 0 / 424.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.446e-05/0.1136, allocations: 8 kB / 424.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.455e-05/0.1136, allocations: 8.438 kB / 424.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004687/0.1141, allocations: 201.5 kB / 424.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.1154, allocations: 0.8071 MB / 425.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004131/0.1158, allocations: 182.4 kB / 425.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.116, allocations: 93.19 kB / 425.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001195/0.1161, allocations: 93.03 kB / 425.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.1161, allocations: 30.56 kB / 425.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.322e-06/0.1161, allocations: 0 / 425.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001578/0.1177, allocations: 0.7227 MB / 426.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.038e-05/0.1178, allocations: 55.41 kB / 426.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.118, allocations: 221 kB / 426.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.1181, allocations: 29.64 kB / 426.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.1182, allocations: 156.5 kB / 426.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.012e-05/0.1183, allocations: 95.14 kB / 426.9 MB, free: 3.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.127e-05/0.1184, allocations: 49.7 kB / 426.9 MB, free: 3.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.1185, allocations: 334.8 kB / 427.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002286/0.1188, allocations: 83.94 kB / 427.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000248/0.119, allocations: 127.4 kB / 427.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004746/0.1195, allocations: 216.8 kB / 427.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.1195, allocations: 0 / 427.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005924/0.1201, allocations: 277.3 kB / 427.9 MB, free: 2.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.1201, allocations: 4 kB / 427.9 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.1201, allocations: 3.984 kB / 427.9 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.1201, allocations: 4 kB / 427.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002875/0.1204, allocations: 55.91 kB / 428 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.1204, allocations: 3.984 kB / 428 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.1206, allocations: 19.92 kB / 428 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.1206, allocations: 12 kB / 428 MB, free: 2.66 MB / 350.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.000166/0.1207, allocations: 145.8 kB / 428.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.171e-05/0.1208, allocations: 23.86 kB / 428.2 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006621/0.1215, allocations: 291.9 kB / 428.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.1215, allocations: 7.938 kB / 428.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.1215, allocations: 0 / 428.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.1215, allocations: 3.938 kB / 428.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/0.1227, allocations: 0.6791 MB / 429.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1227, allocations: 3.938 kB / 429.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003008/0.123, allocations: 55.91 kB / 429.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/0.123, allocations: 7.938 kB / 429.2 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.163e-05/0.123, allocations: 7.984 kB / 429.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.123, allocations: 4 kB / 429.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.123, allocations: 0 / 429.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008974/0.1239, allocations: 485.5 kB / 429.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.124, allocations: 121 kB / 429.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.211e-05/0.1241, allocations: 11.94 kB / 429.9 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.1242, allocations: 7.984 kB / 429.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.965e-05/0.1243, allocations: 23.92 kB / 429.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.1243, allocations: 12.17 kB / 429.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001456/0.1245, allocations: 156.5 kB / 430.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1245, allocations: 0 / 430.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003041/0.1248, allocations: 51.94 kB / 430.1 MB, free: 492 kB / 350.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.0002018/0.125, allocations: 107.2 kB / 430.2 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005564/0.1255, allocations: 218 kB / 430.4 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1255, allocations: 0 / 430.4 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002414/0.1258, allocations: 115.8 kB / 430.5 MB, free: 44 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.1261, allocations: 24.38 kB / 430.6 MB, free: 20 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.1273, allocations: 0.7259 MB / 431.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/0.1278, allocations: 0.7753 MB / 432.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.189e-05/0.1279, allocations: 23.44 kB / 432.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1279, allocations: 0 / 432.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of Templates: time 0.005355/0.1332, allocations: 2.909 MB / 435 MB, free: 11.52 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.221208817092702]