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.001744/0.001744, allocations: 81.86 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001956/0.001956, allocations: 170.5 kB / 24.82 MB, free: 8.395 MB / 18.57 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.028/1.028, allocations: 177.1 MB / 205.3 MB, free: 5.508 MB / 186.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.402e-06/1.402e-06, allocations: 0 / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.629e-05/1.769e-05, allocations: 10.25 kB / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003084/0.003102, allocations: 2.165 MB / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.004476, allocations: 0.7242 MB / 276.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.004628, allocations: 7.938 kB / 276.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001726/0.0048, allocations: 47.52 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.004982, allocations: 51.52 kB / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.005257, allocations: 103.8 kB / 276.5 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000286/0.005543, allocations: 239.6 kB / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.00573, allocations: 72.02 kB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002349/0.005964, allocations: 143.5 kB / 276.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.006089, allocations: 83.75 kB / 277 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.182e-05/0.006121, allocations: 16 kB / 277 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.591e-05/0.006207, allocations: 31.98 kB / 277.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.309e-05/0.00627, allocations: 59.77 kB / 277.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.045e-05/0.00633, allocations: 71.75 kB / 277.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.006567, allocations: 191.2 kB / 277.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.573e-06/0.006569, allocations: 0 / 277.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.00657, allocations: 0 / 277.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.988e-06/0.006574, allocations: 0 / 277.4 MB, free: 13.3 MB / 266.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.000606/0.00718, allocations: 0.5623 MB / 277.9 MB, free: 12.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.007221, allocations: 16.02 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.007345, allocations: 48.75 kB / 278 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002087/0.007553, allocations: 196.2 kB / 278.2 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.007576, allocations: 12.88 kB / 278.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.505e-05/0.007611, allocations: 24.38 kB / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.00789, allocations: 213.3 kB / 278.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.007903, allocations: 4.172 kB / 278.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.007921, allocations: 8.375 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.897e-05/0.00795, allocations: 16.44 kB / 278.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001256/0.008076, allocations: 77.36 kB / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007472/0.008823, allocations: 0.7693 MB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.008993, allocations: 106.9 kB / 279.4 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003631/0.009356, allocations: 55.62 kB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.931e-05/0.009415, allocations: 11.98 kB / 279.5 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.009442, allocations: 37.39 kB / 279.5 MB, free: 11.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.512e-06/0.009444, allocations: 0 / 279.5 MB, free: 11.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006338/0.01008, allocations: 416.2 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.01011, allocations: 55.34 kB / 280 MB, free: 10.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001499/0.01026, allocations: 246.7 kB / 280.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.01028, allocations: 29.7 kB / 280.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.29e-05/0.01037, allocations: 195.1 kB / 280.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.373e-05/0.01043, allocations: 87.25 kB / 280.5 MB, free: 9.926 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.796e-05/0.0105, allocations: 55.34 kB / 280.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.01063, allocations: 0.5079 MB / 281.1 MB, free: 9.344 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.98e-05/0.01068, allocations: 31.97 kB / 281.1 MB, free: 9.312 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.805e-05/0.01075, allocations: 70.64 kB / 281.2 MB, free: 9.227 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.0109, allocations: 117.7 kB / 281.3 MB, free: 9.098 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.0109, allocations: 3.938 kB / 281.3 MB, free: 9.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002235/0.01112, allocations: 173.4 kB / 281.5 MB, free: 8.918 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.01114, allocations: 10.44 kB / 281.5 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.01114, allocations: 0 / 281.5 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.01116, allocations: 4 kB / 281.5 MB, free: 8.906 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000171/0.01133, allocations: 55.91 kB / 281.5 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.01133, allocations: 4 kB / 281.5 MB, free: 8.848 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.147e-05/0.01139, allocations: 12.06 kB / 281.6 MB, free: 8.836 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.01141, allocations: 4 kB / 281.6 MB, free: 8.832 MB / 266.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 9.861e-05/0.0115, allocations: 180.5 kB / 281.7 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.01155, allocations: 31.8 kB / 281.8 MB, free: 8.613 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002572/0.01181, allocations: 187 kB / 281.9 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.01181, allocations: 0 / 281.9 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.01181, allocations: 0 / 281.9 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.01182, allocations: 4 kB / 282 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005306/0.01235, allocations: 0.5059 MB / 282.5 MB, free: 7.879 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.01235, allocations: 4.062 kB / 282.5 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001675/0.01252, allocations: 47.97 kB / 282.5 MB, free: 7.828 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.01252, allocations: 4 kB / 282.5 MB, free: 7.824 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.01254, allocations: 4 kB / 282.5 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.01254, allocations: 4 kB / 282.5 MB, free: 7.816 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.01255, allocations: 3.938 kB / 282.5 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.01288, allocations: 372.9 kB / 282.9 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.893e-05/0.01293, allocations: 31.83 kB / 282.9 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.01295, allocations: 11.94 kB / 282.9 MB, free: 7.379 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.495e-05/0.01303, allocations: 12.03 kB / 282.9 MB, free: 7.367 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.855e-05/0.01307, allocations: 15.97 kB / 283 MB, free: 7.352 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.01308, allocations: 7.984 kB / 283 MB, free: 7.344 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.434e-05/0.01316, allocations: 177.3 kB / 283.1 MB, free: 7.172 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01316, allocations: 0 / 283.1 MB, free: 7.172 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002625/0.01342, allocations: 40 kB / 283.2 MB, free: 7.133 MB / 266.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.0001147/0.01353, allocations: 111.1 kB / 283.3 MB, free: 7.016 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001892/0.01372, allocations: 120 kB / 283.4 MB, free: 6.895 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.01372, allocations: 4.125 kB / 283.4 MB, free: 6.891 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.122e-05/0.01382, allocations: 75.56 kB / 283.5 MB, free: 6.812 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.01408, allocations: 23.94 kB / 283.5 MB, free: 6.789 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008361/0.01492, allocations: 0.577 MB / 284.1 MB, free: 6.184 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.425e-05/0.01498, allocations: 92.3 kB / 284.2 MB, free: 6.074 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.734e-05/0.01506, allocations: 29.92 kB / 284.2 MB, free: 6.043 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.947e-05/0.01516, allocations: 94.2 kB / 284.3 MB, free: 5.949 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01516, allocations: 0 / 284.3 MB, free: 5.949 MB / 266.7 MB Notification: Performance of Templates: time 0.004614/0.01977, allocations: 2.024 MB / 286.3 MB, free: 3.949 MB / 266.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 -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.932905296329409]