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.001523/0.001523, allocations: 103.5 kB / 20.43 MB, free: 1.199 MB / 14.72 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.001606/0.001606, allocations: 194.2 kB / 23.71 MB, free: 4.426 MB / 14.72 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 1.456/1.456, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001685/0.001685, allocations: 47.92 kB / 370.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2627, allocations: 52.18 MB / 423.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003445/0.2661, allocations: 2.12 MB / 425.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.2674, allocations: 0.6582 MB / 425.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.2675, allocations: 7.938 kB / 425.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.2677, allocations: 47.52 kB / 425.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001943/0.2679, allocations: 47.59 kB / 425.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002858/0.2682, allocations: 99.77 kB / 426 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002979/0.2685, allocations: 235.7 kB / 426.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.2687, allocations: 79.81 kB / 426.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.2689, allocations: 99.56 kB / 426.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.269, allocations: 99.45 kB / 426.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.883e-05/0.2691, allocations: 20 kB / 426.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.591e-05/0.2692, allocations: 28 kB / 426.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.147e-05/0.2692, allocations: 55.77 kB / 426.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.044e-05/0.2693, allocations: 83.52 kB / 426.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003116/0.2697, allocations: 249.3 kB / 427 MB, free: 10.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2697, allocations: 4 kB / 427 MB, free: 10.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2697, allocations: 0 / 427 MB, free: 10.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.022e-06/0.2697, allocations: 0 / 427 MB, free: 10.55 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.0008445/0.2705, allocations: 488.5 kB / 427.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.2705, allocations: 16.02 kB / 427.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.447e-05/0.2706, allocations: 28.75 kB / 427.5 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002911/0.2709, allocations: 190 kB / 427.7 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.2709, allocations: 20.81 kB / 427.7 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.035e-05/0.271, allocations: 35.81 kB / 427.7 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004861/0.2715, allocations: 254.7 kB / 428 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.2715, allocations: 0 / 428 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.2715, allocations: 8 kB / 428 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.911e-05/0.2715, allocations: 16.38 kB / 428 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.272, allocations: 189.6 kB / 428.2 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.2731, allocations: 0.7013 MB / 428.9 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000368/0.2735, allocations: 172.7 kB / 429.1 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002173/0.2737, allocations: 100.8 kB / 429.1 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.302e-05/0.2738, allocations: 8.359 kB / 429.2 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.2738, allocations: 38.5 kB / 429.2 MB, free: 8.191 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.383e-06/0.2738, allocations: 0 / 429.2 MB, free: 8.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001449/0.2752, allocations: 0.6463 MB / 429.8 MB, free: 7.512 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.2753, allocations: 59.34 kB / 429.9 MB, free: 7.441 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.2755, allocations: 195.7 kB / 430.1 MB, free: 7.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.2755, allocations: 29.7 kB / 430.1 MB, free: 7.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.2756, allocations: 152.4 kB / 430.3 MB, free: 7.047 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.574e-05/0.2757, allocations: 91.28 kB / 430.4 MB, free: 6.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-05/0.2758, allocations: 45.7 kB / 430.4 MB, free: 6.906 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.2759, allocations: 334.8 kB / 430.7 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.2761, allocations: 79.94 kB / 430.8 MB, free: 6.492 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002314/0.2764, allocations: 123.3 kB / 430.9 MB, free: 6.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004283/0.2768, allocations: 213.2 kB / 431.1 MB, free: 6.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.2768, allocations: 4 kB / 431.1 MB, free: 6.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005392/0.2773, allocations: 276.1 kB / 431.4 MB, free: 5.863 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.2773, allocations: 8 kB / 431.4 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.2773, allocations: 0 / 431.4 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.2774, allocations: 4 kB / 431.4 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.2776, allocations: 59.89 kB / 431.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.2777, allocations: 64 / 431.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.2778, allocations: 24.05 kB / 431.5 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.2778, allocations: 15.98 kB / 431.5 MB, free: 5.754 MB / 334.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.0001407/0.278, allocations: 141.7 kB / 431.7 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.851e-05/0.278, allocations: 19.86 kB / 431.7 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006182/0.2786, allocations: 300 kB / 432 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2786, allocations: 0 / 432 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2786, allocations: 0 / 432 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.2786, allocations: 4 kB / 432 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.2797, allocations: 0.597 MB / 432.6 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2797, allocations: 4 kB / 432.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002899/0.28, allocations: 55.89 kB / 432.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.28, allocations: 0 / 432.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.28, allocations: 8 kB / 432.6 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.28, allocations: 7.938 kB / 432.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.28, allocations: 0 / 432.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008051/0.2808, allocations: 482.4 kB / 433.1 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.807e-05/0.2809, allocations: 39.89 kB / 433.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.2809, allocations: 8 kB / 433.2 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001556/0.2811, allocations: 15.92 kB / 433.2 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.302e-05/0.2811, allocations: 19.91 kB / 433.2 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.2811, allocations: 8 kB / 433.2 MB, free: 3.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.2812, allocations: 137.5 kB / 433.3 MB, free: 3.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2812, allocations: 0 / 433.3 MB, free: 3.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002985/0.2815, allocations: 52 kB / 433.4 MB, free: 3.805 MB / 334.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.0001472/0.2817, allocations: 107.2 kB / 433.5 MB, free: 3.688 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004897/0.2822, allocations: 207.7 kB / 433.7 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.2822, allocations: 7.938 kB / 433.7 MB, free: 3.477 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002303/0.2824, allocations: 111.8 kB / 433.8 MB, free: 3.367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.2827, allocations: 28.05 kB / 433.8 MB, free: 3.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.2841, allocations: 0.6949 MB / 434.5 MB, free: 2.617 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000203/0.2843, allocations: 162.7 kB / 434.7 MB, free: 2.441 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001461/0.2844, allocations: 37.92 kB / 434.7 MB, free: 2.402 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.4e-05/0.2845, allocations: 27.42 kB / 434.8 MB, free: 2.375 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2845, allocations: 0 / 434.8 MB, free: 2.375 MB / 334.1 MB Notification: Performance of Templates: time 0.00649/0.291, allocations: 2.106 MB / 436.9 MB, free: 296 kB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.878257591277361]