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.0007573/0.0007573, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001184/0.001942, allocations: 449.7 kB / 10.37 MB, free: 328 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.000685/0.000685, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008567/0.001542, allocations: 455.6 kB / 11.71 MB, free: 2.461 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 0.988/0.988, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1065/1.095, allocations: 53.64 MB / 243.2 MB, free: 15.6 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 1.212e-06/1.212e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.902e-05/2.023e-05, allocations: 2.312 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00246/0.002481, allocations: 2.231 MB / 246.8 MB, free: 12.08 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000905/0.003386, allocations: 0.7474 MB / 247.5 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.00349, allocations: 11.88 kB / 247.5 MB, free: 11.31 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.918e-05/0.00359, allocations: 51.52 kB / 247.6 MB, free: 11.26 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.586e-05/0.003685, allocations: 43.53 kB / 247.6 MB, free: 11.22 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.00388, allocations: 107.7 kB / 247.7 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002043/0.004085, allocations: 227.7 kB / 247.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.004223, allocations: 82.61 kB / 248 MB, free: 10.81 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001922/0.004415, allocations: 151.6 kB / 248.2 MB, free: 10.66 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.004516, allocations: 83.69 kB / 248.2 MB, free: 10.58 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.532e-05/0.004542, allocations: 24 kB / 248.3 MB, free: 10.56 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.121e-05/0.004633, allocations: 35.92 kB / 248.3 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.61e-05/0.004689, allocations: 43.88 kB / 248.4 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.278e-05/0.004742, allocations: 51.81 kB / 248.4 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002078/0.00495, allocations: 175.2 kB / 248.6 MB, free: 10.26 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.228e-05/0.004962, allocations: 4 kB / 248.6 MB, free: 10.25 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.004962, allocations: 0 / 248.6 MB, free: 10.25 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.004975, allocations: 0 / 248.6 MB, free: 10.25 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.0005237/0.005499, allocations: 483.8 kB / 249 MB, free: 9.758 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.003e-05/0.005529, allocations: 12.03 kB / 249.1 MB, free: 9.746 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.005661, allocations: 118 kB / 249.2 MB, free: 9.613 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.005837, allocations: 181.4 kB / 249.4 MB, free: 9.41 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.005858, allocations: 16.81 kB / 249.4 MB, free: 9.395 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.843e-05/0.005886, allocations: 24.31 kB / 249.4 MB, free: 9.371 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002226/0.006109, allocations: 211.6 kB / 249.6 MB, free: 9.145 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.006118, allocations: 192 / 249.6 MB, free: 9.145 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.006132, allocations: 12.38 kB / 249.6 MB, free: 9.133 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.434e-05/0.006157, allocations: 12.44 kB / 249.6 MB, free: 9.117 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.48e-05/0.006251, allocations: 73.39 kB / 249.7 MB, free: 9.051 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005491/0.006801, allocations: 0.548 MB / 250.2 MB, free: 8.477 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.006929, allocations: 96.41 kB / 250.3 MB, free: 8.375 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.441e-05/0.006974, allocations: 40.84 kB / 250.4 MB, free: 8.332 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.393e-05/0.007058, allocations: 23.97 kB / 250.4 MB, free: 8.309 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.007082, allocations: 42.56 kB / 250.4 MB, free: 8.258 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.363e-06/0.007083, allocations: 0 / 250.4 MB, free: 8.258 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005358/0.007619, allocations: 380 kB / 250.8 MB, free: 7.852 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.706e-05/0.007646, allocations: 51.41 kB / 250.9 MB, free: 7.789 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.547e-05/0.007741, allocations: 179.5 kB / 251 MB, free: 7.598 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.007757, allocations: 33.7 kB / 251.1 MB, free: 7.559 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.384e-05/0.007811, allocations: 140.4 kB / 251.2 MB, free: 7.418 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.122e-05/0.007852, allocations: 87.25 kB / 251.3 MB, free: 7.332 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.838e-05/0.0079, allocations: 45.69 kB / 251.3 MB, free: 7.281 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.742e-05/0.007978, allocations: 342.7 kB / 251.7 MB, free: 6.938 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.103e-05/0.008009, allocations: 27.98 kB / 251.7 MB, free: 6.91 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.011e-05/0.008059, allocations: 63.33 kB / 251.8 MB, free: 6.836 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.566e-05/0.008155, allocations: 101.1 kB / 251.9 MB, free: 6.727 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.008156, allocations: 0 / 251.9 MB, free: 6.727 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001316/0.008287, allocations: 133.5 kB / 252 MB, free: 6.59 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.008298, allocations: 8 kB / 252 MB, free: 6.582 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.008303, allocations: 0 / 252 MB, free: 6.582 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.008313, allocations: 8.062 kB / 252 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.008464, allocations: 59.89 kB / 252.1 MB, free: 6.516 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.008468, allocations: 4 kB / 252.1 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.321e-05/0.008511, allocations: 8 kB / 252.1 MB, free: 6.504 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.008521, allocations: 7.984 kB / 252.1 MB, free: 6.496 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 7.7e-05/0.008598, allocations: 128.5 kB / 252.2 MB, free: 6.359 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.814e-05/0.008627, allocations: 19.98 kB / 252.2 MB, free: 6.34 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001717/0.008798, allocations: 154.2 kB / 252.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.0088, allocations: 7.938 kB / 252.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.008801, allocations: 4 kB / 252.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.008806, allocations: 3.984 kB / 252.4 MB, free: 6.172 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003729/0.009179, allocations: 432.6 kB / 252.8 MB, free: 5.723 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.009181, allocations: 0 / 252.8 MB, free: 5.723 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/0.009332, allocations: 55.97 kB / 252.9 MB, free: 5.668 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.562e-05/0.009367, allocations: 19.89 kB / 252.9 MB, free: 5.648 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.009371, allocations: 4 kB / 252.9 MB, free: 5.645 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.009384, allocations: 8.062 kB / 252.9 MB, free: 5.637 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.009387, allocations: 7.938 kB / 252.9 MB, free: 5.629 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.00939, allocations: 7.969 kB / 252.9 MB, free: 5.621 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002349/0.009624, allocations: 289.2 kB / 253.2 MB, free: 5.316 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.009643, allocations: 4 kB / 253.2 MB, free: 5.312 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.089e-05/0.009703, allocations: 11.98 kB / 253.2 MB, free: 5.301 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.914e-05/0.009743, allocations: 19.97 kB / 253.2 MB, free: 5.281 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.607e-06/0.009751, allocations: 7.938 kB / 253.2 MB, free: 5.273 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.702e-05/0.009788, allocations: 55.03 kB / 253.3 MB, free: 5.219 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009788, allocations: 0 / 253.3 MB, free: 5.219 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001708/0.009959, allocations: 48 kB / 253.3 MB, free: 5.172 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.0001087/0.01007, allocations: 100.3 kB / 253.4 MB, free: 5.062 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001459/0.01021, allocations: 108.4 kB / 253.6 MB, free: 4.957 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/0.01022, allocations: 8 kB / 253.6 MB, free: 4.949 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.995e-05/0.01028, allocations: 65.22 kB / 253.6 MB, free: 4.883 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001704/0.01045, allocations: 39.77 kB / 253.7 MB, free: 4.844 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001232/0.01168, allocations: 496.8 kB / 254.1 MB, free: 4.328 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.445e-05/0.01174, allocations: 92.28 kB / 254.2 MB, free: 4.219 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.927e-05/0.0118, allocations: 21.95 kB / 254.3 MB, free: 4.199 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.139e-05/0.01188, allocations: 83.36 kB / 254.3 MB, free: 4.117 MB / 250.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01188, allocations: 0 / 254.3 MB, free: 4.117 MB / 250.7 MB Notification: Performance of Templates: time 0.00375/0.01563, allocations: 1.963 MB / 256.3 MB, free: 2.18 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.685935927554965]