Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002293/0.003595, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001083/0.002249, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.205/1.205, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.139/1.344, allocations: 53.65 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.039e-06/5.039e-06, allocations: 4 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.109e-05/3.613e-05, allocations: 2.312 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00512/0.005156, allocations: 2.239 MB / 247 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002128/0.007285, allocations: 0.7435 MB / 247.7 MB, free: 11.21 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002945/0.007579, allocations: 7.938 kB / 247.7 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002209/0.0078, allocations: 47.45 kB / 247.8 MB, free: 11.16 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002375/0.008037, allocations: 51.58 kB / 247.8 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004686/0.008506, allocations: 107.6 kB / 247.9 MB, free: 11 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004735/0.00898, allocations: 231.7 kB / 248.1 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003403/0.00932, allocations: 82.56 kB / 248.2 MB, free: 10.7 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005724/0.009892, allocations: 151.6 kB / 248.4 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.01011, allocations: 79.77 kB / 248.4 MB, free: 10.47 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.766e-05/0.01016, allocations: 16 kB / 248.5 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001676/0.01033, allocations: 39.94 kB / 248.5 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.939e-05/0.01042, allocations: 47.8 kB / 248.5 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.954e-05/0.0105, allocations: 55.81 kB / 248.6 MB, free: 10.31 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003804/0.01088, allocations: 167.3 kB / 248.8 MB, free: 10.15 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.946e-05/0.0109, allocations: 0 / 248.8 MB, free: 10.15 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.582e-06/0.0109, allocations: 0 / 248.8 MB, free: 10.15 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.01092, allocations: 0 / 248.8 MB, free: 10.15 MB / 250.7 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.0009792/0.0119, allocations: 491.7 kB / 249.2 MB, free: 9.641 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.01194, allocations: 8.031 kB / 249.2 MB, free: 9.633 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002978/0.01224, allocations: 126 kB / 249.4 MB, free: 9.492 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/0.01262, allocations: 177.4 kB / 249.5 MB, free: 9.293 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.647e-05/0.01265, allocations: 16.88 kB / 249.6 MB, free: 9.277 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.485e-05/0.01271, allocations: 24.36 kB / 249.6 MB, free: 9.254 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004437/0.01315, allocations: 207.6 kB / 249.8 MB, free: 9.035 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.01317, allocations: 192 / 249.8 MB, free: 9.035 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.01319, allocations: 12.38 kB / 249.8 MB, free: 9.023 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.354e-05/0.01323, allocations: 16.44 kB / 249.8 MB, free: 9.008 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001425/0.01337, allocations: 69.44 kB / 249.9 MB, free: 8.938 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007782/0.01415, allocations: 0.5558 MB / 250.4 MB, free: 8.359 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001582/0.01431, allocations: 96.98 kB / 250.5 MB, free: 8.258 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.575e-05/0.01437, allocations: 48.83 kB / 250.6 MB, free: 8.207 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001183/0.01448, allocations: 8 kB / 250.6 MB, free: 8.199 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.01452, allocations: 46.48 kB / 250.6 MB, free: 8.145 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 2.034e-06/0.01452, allocations: 4 kB / 250.6 MB, free: 8.141 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007879/0.01531, allocations: 380.6 kB / 251 MB, free: 7.738 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.01534, allocations: 59.34 kB / 251.1 MB, free: 7.668 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.01547, allocations: 179.5 kB / 251.2 MB, free: 7.477 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.01549, allocations: 29.7 kB / 251.3 MB, free: 7.441 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.974e-05/0.01557, allocations: 136.4 kB / 251.4 MB, free: 7.305 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.12e-05/0.01563, allocations: 91.25 kB / 251.5 MB, free: 7.215 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.298e-05/0.01569, allocations: 45.69 kB / 251.5 MB, free: 7.164 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.0158, allocations: 338.7 kB / 251.9 MB, free: 6.824 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.99e-05/0.01584, allocations: 27.98 kB / 251.9 MB, free: 6.797 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.716e-05/0.0159, allocations: 59.39 kB / 252 MB, free: 6.727 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001257/0.01602, allocations: 106.1 kB / 252.1 MB, free: 6.609 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.01603, allocations: 0 / 252.1 MB, free: 6.609 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001752/0.0162, allocations: 136.6 kB / 252.2 MB, free: 6.473 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.01622, allocations: 8 kB / 252.2 MB, free: 6.465 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.01623, allocations: 0 / 252.2 MB, free: 6.465 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.01625, allocations: 0 / 252.2 MB, free: 6.465 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.01644, allocations: 71.95 kB / 252.3 MB, free: 6.395 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.01645, allocations: 0 / 252.3 MB, free: 6.395 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.964e-05/0.01651, allocations: 12 kB / 252.3 MB, free: 6.383 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.144e-05/0.01652, allocations: 7.984 kB / 252.3 MB, free: 6.375 MB / 250.7 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.0001002/0.01662, allocations: 132.5 kB / 252.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.614e-05/0.01666, allocations: 19.98 kB / 252.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002683/0.01692, allocations: 150.3 kB / 252.6 MB, free: 6.066 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.01693, allocations: 4 kB / 252.6 MB, free: 6.062 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.01693, allocations: 0 / 252.6 MB, free: 6.062 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.01694, allocations: 8.047 kB / 252.6 MB, free: 6.055 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005215/0.01746, allocations: 428.4 kB / 253 MB, free: 5.609 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.01747, allocations: 0 / 253 MB, free: 5.609 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.01764, allocations: 63.91 kB / 253.1 MB, free: 5.547 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.175e-05/0.01768, allocations: 19.89 kB / 253.1 MB, free: 5.527 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.01769, allocations: 4 kB / 253.1 MB, free: 5.523 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.01771, allocations: 4 kB / 253.1 MB, free: 5.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.01772, allocations: 3.984 kB / 253.1 MB, free: 5.516 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.01772, allocations: 7.938 kB / 253.1 MB, free: 5.508 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003331/0.01805, allocations: 293.6 kB / 253.4 MB, free: 5.199 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.152e-05/0.01809, allocations: 4 kB / 253.4 MB, free: 5.195 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.272e-05/0.01817, allocations: 11.98 kB / 253.4 MB, free: 5.184 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.815e-05/0.01822, allocations: 19.91 kB / 253.4 MB, free: 5.164 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.01823, allocations: 11.92 kB / 253.4 MB, free: 5.152 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.48e-05/0.01828, allocations: 59.02 kB / 253.5 MB, free: 5.094 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01828, allocations: 0 / 253.5 MB, free: 5.094 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002025/0.01849, allocations: 48 kB / 253.6 MB, free: 5.047 MB / 250.7 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.00018/0.01867, allocations: 92.28 kB / 253.6 MB, free: 4.945 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001904/0.01886, allocations: 113.2 kB / 253.8 MB, free: 4.832 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.656e-05/0.01887, allocations: 7.984 kB / 253.8 MB, free: 4.824 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.815e-05/0.01897, allocations: 84.7 kB / 253.8 MB, free: 4.738 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.01924, allocations: 104.3 kB / 253.9 MB, free: 4.629 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.0207, allocations: 488.4 kB / 254.4 MB, free: 4.121 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.228e-05/0.02076, allocations: 92.3 kB / 254.5 MB, free: 4.012 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.515e-05/0.02084, allocations: 25.92 kB / 254.5 MB, free: 3.988 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.649e-05/0.02093, allocations: 79.36 kB / 254.6 MB, free: 3.91 MB / 250.7 MB Notification: Performance of SimCode: time 8.42e-07/0.02094, allocations: 0 / 254.6 MB, free: 3.91 MB / 250.7 MB Notification: Performance of Templates: time 0.005008/0.02594, allocations: 1.897 MB / 256.5 MB, free: 2.031 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0182970529422164]