Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 147.1 kB / 24.89 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9808/0.9808, allocations: 173.4 MB / 201.5 MB, free: 8.746 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.122e-06/1.122e-06, allocations: 0 / 268.5 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.074e-05/1.186e-05, allocations: 2.312 kB / 268.5 MB, free: 6.055 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002647/0.002659, allocations: 2.17 MB / 270.6 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008264/0.003486, allocations: 0.7008 MB / 271.3 MB, free: 3.168 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.318e-05/0.003579, allocations: 11.88 kB / 271.3 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.003715, allocations: 39.53 kB / 271.4 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.003852, allocations: 51.52 kB / 271.4 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001884/0.004041, allocations: 107.6 kB / 271.5 MB, free: 2.961 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001995/0.00424, allocations: 239.7 kB / 271.8 MB, free: 2.727 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.004374, allocations: 78.62 kB / 271.8 MB, free: 2.648 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000145/0.004519, allocations: 127.7 kB / 272 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.838e-05/0.004618, allocations: 83.69 kB / 272 MB, free: 2.441 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.405e-05/0.004642, allocations: 20 kB / 272.1 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.032e-05/0.004702, allocations: 27.98 kB / 272.1 MB, free: 2.395 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.135e-05/0.004753, allocations: 55.81 kB / 272.1 MB, free: 2.34 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.012e-05/0.004803, allocations: 67.77 kB / 272.2 MB, free: 2.273 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001785/0.004982, allocations: 195.1 kB / 272.4 MB, free: 2.082 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.004984, allocations: 0 / 272.4 MB, free: 2.082 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.004984, allocations: 0 / 272.4 MB, free: 2.082 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.906e-06/0.004987, allocations: 4 kB / 272.4 MB, free: 2.078 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.0004345/0.005422, allocations: 428.2 kB / 272.8 MB, free: 1.637 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.011e-05/0.005452, allocations: 8.031 kB / 272.8 MB, free: 1.629 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.571e-05/0.005498, allocations: 36.91 kB / 272.9 MB, free: 1.594 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.005663, allocations: 193.2 kB / 273.1 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.005681, allocations: 12.88 kB / 273.1 MB, free: 1.367 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.988e-05/0.005711, allocations: 24.36 kB / 273.1 MB, free: 1.344 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.005924, allocations: 211.2 kB / 273.3 MB, free: 1.117 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.005933, allocations: 0 / 273.3 MB, free: 1.117 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.005948, allocations: 15.98 kB / 273.3 MB, free: 1.102 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.991e-05/0.005967, allocations: 8.5 kB / 273.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.218e-05/0.00606, allocations: 69.39 kB / 273.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005177/0.006577, allocations: 0.5596 MB / 274 MB, free: 448 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001151/0.006693, allocations: 93.34 kB / 274 MB, free: 344 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.356e-05/0.006736, allocations: 44.83 kB / 274.1 MB, free: 296 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.887e-05/0.006805, allocations: 12 kB / 274.1 MB, free: 284 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.006824, allocations: 42.55 kB / 274.1 MB, free: 232 kB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 2.044e-06/0.006826, allocations: 3.984 kB / 274.1 MB, free: 228 kB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004717/0.007297, allocations: 368.6 kB / 274.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.669e-05/0.007324, allocations: 55.34 kB / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.007426, allocations: 203.3 kB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.007441, allocations: 29.7 kB / 274.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.91e-05/0.00749, allocations: 136.4 kB / 274.9 MB, free: 15.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.015e-05/0.00753, allocations: 91.19 kB / 275 MB, free: 15.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.564e-05/0.007576, allocations: 41.69 kB / 275 MB, free: 15.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.373e-05/0.007649, allocations: 342.8 kB / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.056e-05/0.00768, allocations: 19.98 kB / 275.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.924e-05/0.007729, allocations: 59.41 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.757e-05/0.007827, allocations: 102.1 kB / 275.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.31e-07/0.007828, allocations: 4 kB / 275.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001274/0.007955, allocations: 132.7 kB / 275.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.007965, allocations: 8 kB / 275.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.007968, allocations: 0 / 275.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.00798, allocations: 4 kB / 275.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.008114, allocations: 55.91 kB / 275.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.116e-06/0.008117, allocations: 0 / 275.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.542e-05/0.008162, allocations: 11.94 kB / 275.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.008172, allocations: 7.984 kB / 275.8 MB, free: 14.47 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 6.685e-05/0.008239, allocations: 128.7 kB / 275.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.008266, allocations: 19.98 kB / 275.9 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001688/0.008435, allocations: 162.2 kB / 276.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.008438, allocations: 7.984 kB / 276.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.00844, allocations: 0 / 276.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.008444, allocations: 3.938 kB / 276.1 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003697/0.008814, allocations: 420.5 kB / 276.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.008815, allocations: 4.031 kB / 276.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.008948, allocations: 51.91 kB / 276.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.00895, allocations: 0 / 276.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.008962, allocations: 8 kB / 276.6 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.008966, allocations: 8 kB / 276.6 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.008967, allocations: 3.984 kB / 276.6 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002142/0.009181, allocations: 289 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.524e-05/0.009216, allocations: 27.84 kB / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.009234, allocations: 4 kB / 276.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.266e-05/0.009296, allocations: 11.94 kB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.48e-05/0.009331, allocations: 31.89 kB / 276.9 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.009338, allocations: 4 kB / 276.9 MB, free: 13.24 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.586e-05/0.009374, allocations: 55.03 kB / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009374, allocations: 0 / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001578/0.009532, allocations: 55.92 kB / 277 MB, free: 13.13 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 9.483e-05/0.009627, allocations: 80.42 kB / 277.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001265/0.009754, allocations: 104.7 kB / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.009756, allocations: 0 / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.974e-05/0.009816, allocations: 76.81 kB / 277.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001583/0.009974, allocations: 30.95 kB / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006299/0.0106, allocations: 0.5078 MB / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.901e-05/0.01065, allocations: 88.3 kB / 277.9 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.642e-05/0.01071, allocations: 29.94 kB / 278 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.85e-05/0.01079, allocations: 83.36 kB / 278 MB, free: 12.08 MB / 266.7 MB Notification: Performance of SimCode: time 8.71e-07/0.01079, allocations: 0 / 278 MB, free: 12.08 MB / 266.7 MB Notification: Performance of Templates: time 0.003608/0.0144, allocations: 2.02 MB / 280.1 MB, free: 10.09 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.863219119142741]