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.0008951/0.0008951, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001137/0.001137, allocations: 170.3 kB / 24.92 MB, free: 8.766 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 0.9296/0.9296, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.934e-06/1.934e-06, allocations: 3.938 kB / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.697e-05/2.891e-05, allocations: 2.312 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00386/0.003889, allocations: 2.172 MB / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.005506, allocations: 0.7474 MB / 276.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001772/0.005684, allocations: 11.94 kB / 276.4 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002104/0.005894, allocations: 47.47 kB / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002321/0.006126, allocations: 47.58 kB / 276.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004015/0.006528, allocations: 103.7 kB / 276.6 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003364/0.006864, allocations: 239.6 kB / 276.8 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.007087, allocations: 86.59 kB / 276.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003036/0.007391, allocations: 131.6 kB / 277 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.007555, allocations: 87.75 kB / 277.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.988e-05/0.007595, allocations: 16 kB / 277.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.007696, allocations: 31.98 kB / 277.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.832e-05/0.007774, allocations: 59.77 kB / 277.2 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.813e-05/0.007852, allocations: 67.75 kB / 277.3 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003237/0.008176, allocations: 191.2 kB / 277.5 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.00818, allocations: 0 / 277.5 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.008181, allocations: 0 / 277.5 MB, free: 13.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.008186, allocations: 0 / 277.5 MB, free: 13.28 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.0006726/0.008858, allocations: 456.1 kB / 277.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.0089, allocations: 8.031 kB / 277.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001731/0.009073, allocations: 44.91 kB / 278 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.009332, allocations: 185.3 kB / 278.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.888e-05/0.009361, allocations: 12.88 kB / 278.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.68e-05/0.009407, allocations: 28.36 kB / 278.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003403/0.009748, allocations: 199.7 kB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.009761, allocations: 192 / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.009782, allocations: 8.375 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.286e-05/0.009825, allocations: 20.44 kB / 278.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001578/0.009983, allocations: 69.39 kB / 278.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000863/0.01085, allocations: 0.5519 MB / 279 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.01103, allocations: 93.3 kB / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.844e-05/0.0111, allocations: 40.83 kB / 279.2 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.01121, allocations: 19.98 kB / 279.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.01124, allocations: 34.56 kB / 279.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.993e-06/0.01124, allocations: 0 / 279.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.000755/0.012, allocations: 379.7 kB / 279.6 MB, free: 11.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.01203, allocations: 55.41 kB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.01218, allocations: 179.5 kB / 279.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.0122, allocations: 33.64 kB / 279.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.153e-05/0.01228, allocations: 144.3 kB / 280 MB, free: 10.58 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.273e-05/0.01234, allocations: 83.25 kB / 280.1 MB, free: 10.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.995e-05/0.01243, allocations: 57.62 kB / 280.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.01254, allocations: 338.7 kB / 280.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.901e-05/0.0126, allocations: 23.98 kB / 280.5 MB, free: 10.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.783e-05/0.01268, allocations: 59.39 kB / 280.5 MB, free: 10 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001608/0.01284, allocations: 105.1 kB / 280.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.01284, allocations: 0 / 280.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002234/0.01306, allocations: 137.5 kB / 280.8 MB, free: 9.746 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.01308, allocations: 7.984 kB / 280.8 MB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.01309, allocations: 4.062 kB / 280.8 MB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.0131, allocations: 4 kB / 280.8 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.01332, allocations: 55.91 kB / 280.8 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.01333, allocations: 0 / 280.8 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.527e-05/0.0134, allocations: 8 kB / 280.8 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.01342, allocations: 4.062 kB / 280.8 MB, free: 9.664 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 0.0001071/0.01353, allocations: 132.5 kB / 281 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.093e-05/0.01358, allocations: 23.98 kB / 281 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002754/0.01385, allocations: 154.3 kB / 281.2 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.01386, allocations: 8 kB / 281.2 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-06/0.01386, allocations: 0 / 281.2 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.01387, allocations: 3.984 kB / 281.2 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006246/0.01449, allocations: 428.7 kB / 281.6 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.01449, allocations: 0 / 281.6 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002343/0.01473, allocations: 55.91 kB / 281.6 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.01473, allocations: 0 / 281.6 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.01475, allocations: 8 kB / 281.6 MB, free: 8.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.01476, allocations: 0 / 281.6 MB, free: 8.824 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.01476, allocations: 4.031 kB / 281.6 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006564/0.01542, allocations: 284.6 kB / 281.9 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.515e-05/0.01548, allocations: 27.84 kB / 282 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.01551, allocations: 4 kB / 282 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.01563, allocations: 8 kB / 282 MB, free: 8.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.62e-05/0.01568, allocations: 19.91 kB / 282 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.0157, allocations: 15.92 kB / 282 MB, free: 8.445 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.411e-05/0.01577, allocations: 51.03 kB / 282.1 MB, free: 8.395 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.01577, allocations: 3.938 kB / 282.1 MB, free: 8.391 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003379/0.01611, allocations: 51.94 kB / 282.1 MB, free: 8.34 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.0001618/0.01627, allocations: 88.41 kB / 282.2 MB, free: 8.242 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002143/0.01648, allocations: 109.2 kB / 282.3 MB, free: 8.133 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.01649, allocations: 0 / 282.3 MB, free: 8.133 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.01659, allocations: 68.75 kB / 282.4 MB, free: 8.062 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.01687, allocations: 27.98 kB / 282.4 MB, free: 8.035 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.01792, allocations: 0.5091 MB / 282.9 MB, free: 7.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.764e-05/0.018, allocations: 92.28 kB / 283 MB, free: 7.391 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.104e-05/0.01809, allocations: 25.94 kB / 283 MB, free: 7.367 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.01821, allocations: 79.36 kB / 283.1 MB, free: 7.289 MB / 266.7 MB Notification: Performance of SimCode: time 1.042e-06/0.01821, allocations: 0 / 283.1 MB, free: 7.289 MB / 266.7 MB Notification: Performance of Templates: time 0.004104/0.02232, allocations: 1.963 MB / 285.1 MB, free: 5.352 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.70626633008942]