Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009043/0.0009043, allocations: 88.28 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004802/0.004802, allocations: 160.1 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8773/0.8773, allocations: 177 MB / 204.9 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.086e-05/3.269e-05, allocations: 3.266 kB / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002782/0.002814, allocations: 2.128 MB / 327.9 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009179/0.003732, allocations: 0.7048 MB / 328.6 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.003836, allocations: 3.938 kB / 328.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.003977, allocations: 51.52 kB / 328.7 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.004132, allocations: 47.53 kB / 328.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003432/0.004475, allocations: 99.75 kB / 328.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000209/0.004684, allocations: 235.7 kB / 329 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.004845, allocations: 83.77 kB / 329.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000181/0.005026, allocations: 135.6 kB / 329.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001008/0.005127, allocations: 91.69 kB / 329.3 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.411e-05/0.005151, allocations: 20 kB / 329.4 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.022e-05/0.005211, allocations: 31.98 kB / 329.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.325e-05/0.005264, allocations: 59.75 kB / 329.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.998e-05/0.005314, allocations: 63.83 kB / 329.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.005538, allocations: 251.1 kB / 329.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.005542, allocations: 4 kB / 329.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.011e-06/0.005543, allocations: 0 / 329.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.005546, allocations: 0 / 329.8 MB, free: 11.38 MB / 298.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.0005494/0.006095, allocations: 485.5 kB / 330.2 MB, free: 10.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.006127, allocations: 11.98 kB / 330.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.396e-05/0.006221, allocations: 40.67 kB / 330.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001947/0.006415, allocations: 196.8 kB / 330.5 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.006434, allocations: 20.86 kB / 330.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.222e-05/0.006466, allocations: 32.36 kB / 330.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002882/0.006755, allocations: 252.2 kB / 330.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.006767, allocations: 4.125 kB / 330.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.006783, allocations: 12.38 kB / 330.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.006802, allocations: 16.44 kB / 330.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002573/0.00706, allocations: 185.9 kB / 331 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007085/0.007768, allocations: 0.7016 MB / 331.7 MB, free: 9.332 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002197/0.007988, allocations: 166.5 kB / 331.8 MB, free: 9.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.008098, allocations: 100.8 kB / 331.9 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.742e-05/0.008145, allocations: 7.984 kB / 332 MB, free: 9.051 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.008165, allocations: 38.56 kB / 332 MB, free: 9.004 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.502e-06/0.008166, allocations: 0 / 332 MB, free: 9.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009792/0.009145, allocations: 0.6608 MB / 332.7 MB, free: 8.309 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.44e-05/0.00917, allocations: 55.41 kB / 332.7 MB, free: 8.242 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.009283, allocations: 191.8 kB / 332.9 MB, free: 8.039 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.009296, allocations: 29.7 kB / 332.9 MB, free: 8.004 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/0.009357, allocations: 152.4 kB / 333.1 MB, free: 7.852 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.17e-05/0.009399, allocations: 87.27 kB / 333.2 MB, free: 7.766 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.94e-05/0.009448, allocations: 49.7 kB / 333.2 MB, free: 7.711 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.561e-05/0.009524, allocations: 330.8 kB / 333.5 MB, free: 7.379 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.009631, allocations: 87.89 kB / 333.6 MB, free: 7.293 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.009749, allocations: 123.4 kB / 333.7 MB, free: 7.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.009985, allocations: 211.2 kB / 333.9 MB, free: 6.941 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.009987, allocations: 3.938 kB / 333.9 MB, free: 6.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000295/0.01028, allocations: 274.4 kB / 334.2 MB, free: 6.664 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.01029, allocations: 8.062 kB / 334.2 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.0103, allocations: 4 kB / 334.2 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.437e-06/0.01031, allocations: 0 / 334.2 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.01046, allocations: 59.89 kB / 334.3 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.01046, allocations: 4 kB / 334.3 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.697e-05/0.01052, allocations: 15.98 kB / 334.3 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.01053, allocations: 11.98 kB / 334.3 MB, free: 6.562 MB / 298.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 8.86e-05/0.01062, allocations: 145.7 kB / 334.5 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.555e-05/0.01065, allocations: 23.8 kB / 334.5 MB, free: 6.387 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003397/0.01099, allocations: 290.9 kB / 334.8 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.01099, allocations: 4 kB / 334.8 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.01099, allocations: 64 / 334.8 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.011, allocations: 7.984 kB / 334.8 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005554/0.01156, allocations: 0.5854 MB / 335.4 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.01156, allocations: 0 / 335.4 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001418/0.0117, allocations: 63.94 kB / 335.4 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.0117, allocations: 3.984 kB / 335.4 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.01172, allocations: 8 kB / 335.4 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.01172, allocations: 0 / 335.4 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.01172, allocations: 0 / 335.4 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000443/0.01216, allocations: 490.1 kB / 335.9 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.695e-05/0.01221, allocations: 39.89 kB / 336 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.01223, allocations: 8 kB / 336 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.631e-05/0.01229, allocations: 15.98 kB / 336 MB, free: 4.824 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.878e-05/0.01233, allocations: 19.91 kB / 336 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.01234, allocations: 8 kB / 336 MB, free: 4.797 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.835e-05/0.01241, allocations: 141.5 kB / 336.1 MB, free: 4.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01241, allocations: 0 / 336.1 MB, free: 4.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001871/0.0126, allocations: 43.94 kB / 336.2 MB, free: 4.617 MB / 298.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.0001155/0.01271, allocations: 115.2 kB / 336.3 MB, free: 4.496 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002767/0.01299, allocations: 219.1 kB / 336.5 MB, free: 4.285 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.01299, allocations: 0 / 336.5 MB, free: 4.285 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.01311, allocations: 115.8 kB / 336.6 MB, free: 4.172 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.01332, allocations: 30.17 kB / 336.7 MB, free: 4.148 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006464/0.01397, allocations: 0.6278 MB / 337.3 MB, free: 3.484 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.168e-05/0.01406, allocations: 154.8 kB / 337.4 MB, free: 3.312 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.737e-05/0.01411, allocations: 28.5 kB / 337.5 MB, free: 3.285 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01411, allocations: 0 / 337.5 MB, free: 3.285 MB / 298.7 MB Notification: Performance of Templates: time 0.003127/0.01723, allocations: 2.89 MB / 340.4 MB, free: 396 kB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.4399783769622445]