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.001295/0.001295, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.00137/0.00137, allocations: 210.9 kB / 23.73 MB, free: 4.387 MB / 14.72 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.467/1.467, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001771/0.001771, allocations: 47.94 kB / 378.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3066, allocations: 53.38 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003767/0.3104, allocations: 2.12 MB / 433.7 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.3118, allocations: 0.705 MB / 434.4 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.3119, allocations: 11.88 kB / 434.4 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000192/0.3121, allocations: 43.53 kB / 434.5 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000198/0.3123, allocations: 39.59 kB / 434.5 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.3126, allocations: 103.8 kB / 434.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.3129, allocations: 239.7 kB / 434.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.3131, allocations: 79.81 kB / 434.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002261/0.3134, allocations: 103.6 kB / 435 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/0.3135, allocations: 103.4 kB / 435.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.701e-05/0.3136, allocations: 16 kB / 435.1 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.3137, allocations: 35.98 kB / 435.2 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.378e-05/0.3138, allocations: 59.81 kB / 435.2 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.757e-05/0.3139, allocations: 83.47 kB / 435.3 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003791/0.3143, allocations: 249.3 kB / 435.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3143, allocations: 0 / 435.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3143, allocations: 0 / 435.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.3143, allocations: 8 kB / 435.5 MB, free: 2.723 MB / 334.1 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.0009676/0.3152, allocations: 485.4 kB / 436 MB, free: 2.219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.3153, allocations: 8.031 kB / 436 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001517/0.3154, allocations: 32.78 kB / 436.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.3158, allocations: 195.2 kB / 436.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.715e-05/0.3158, allocations: 20.8 kB / 436.3 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.754e-05/0.3158, allocations: 24.38 kB / 436.3 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005027/0.3163, allocations: 259 kB / 436.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.3164, allocations: 0 / 436.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.288e-05/0.3164, allocations: 4 kB / 436.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.521e-05/0.3164, allocations: 12.44 kB / 436.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004545/0.3169, allocations: 193.5 kB / 436.8 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.318, allocations: 0.7051 MB / 437.5 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003919/0.3184, allocations: 172.9 kB / 437.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.3186, allocations: 100.8 kB / 437.7 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.185e-05/0.3187, allocations: 7.984 kB / 437.7 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.3187, allocations: 34.94 kB / 437.8 MB, free: 388 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.3187, allocations: 0 / 437.8 MB, free: 388 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001484/0.3202, allocations: 0.6611 MB / 438.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/0.3202, allocations: 55.41 kB / 438.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.3204, allocations: 191.7 kB / 438.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.3205, allocations: 33.64 kB / 438.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.3206, allocations: 148.5 kB / 438.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.246e-05/0.3207, allocations: 91.2 kB / 438.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.912e-05/0.3207, allocations: 49.7 kB / 439 MB, free: 15.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3209, allocations: 334.8 kB / 439.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.3211, allocations: 87.94 kB / 439.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.3213, allocations: 120.1 kB / 439.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004299/0.3218, allocations: 219.2 kB / 439.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.3218, allocations: 0 / 439.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005348/0.3223, allocations: 274.8 kB / 440 MB, free: 14.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.3223, allocations: 8 kB / 440 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.3223, allocations: 0 / 440 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.3223, allocations: 3.984 kB / 440 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002768/0.3226, allocations: 59.89 kB / 440.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.3226, allocations: 4 kB / 440.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.3228, allocations: 19.97 kB / 440.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.889e-05/0.3228, allocations: 12.06 kB / 440.1 MB, free: 13.93 MB / 350.1 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.0001406/0.3229, allocations: 141.7 kB / 440.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.922e-05/0.323, allocations: 19.86 kB / 440.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006154/0.3236, allocations: 298.9 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3236, allocations: 4 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3236, allocations: 0 / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.3236, allocations: 0 / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.3246, allocations: 0.5928 MB / 441.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3246, allocations: 0 / 441.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/0.3249, allocations: 63.89 kB / 441.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3249, allocations: 0 / 441.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.3249, allocations: 4 kB / 441.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3249, allocations: 0 / 441.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3249, allocations: 0 / 441.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008296/0.3258, allocations: 489.5 kB / 441.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.142e-05/0.3259, allocations: 40.08 kB / 441.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.3259, allocations: 12 kB / 441.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.3261, allocations: 11.98 kB / 441.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.604e-05/0.3261, allocations: 19.91 kB / 441.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.3261, allocations: 8 kB / 441.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001222/0.3263, allocations: 145.4 kB / 441.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3263, allocations: 0 / 441.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.3266, allocations: 47.94 kB / 442 MB, free: 11.98 MB / 350.1 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.0001731/0.3267, allocations: 119.2 kB / 442.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005031/0.3273, allocations: 208.4 kB / 442.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3273, allocations: 3.938 kB / 442.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002282/0.3275, allocations: 111.9 kB / 442.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.3278, allocations: 26.17 kB / 442.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.3289, allocations: 0.6972 MB / 443.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001581/0.3291, allocations: 154.8 kB / 443.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001319/0.3292, allocations: 45.91 kB / 443.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.934e-05/0.3293, allocations: 27.42 kB / 443.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3293, allocations: 0 / 443.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of Templates: time 0.005896/0.3352, allocations: 2.03 MB / 445.4 MB, free: 8.52 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.8677285350859165]