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.001155/0.001155, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001635/0.00279, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.00102/0.00102, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001425/0.002445, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.863/0.863, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1734/1.036, allocations: 52.48 MB / 238.5 MB, free: 7.629 MB / 234.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.784e-06/1.784e-06, allocations: 0 / 239.7 MB, free: 6.359 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.56e-05/1.738e-05, allocations: 5.688 kB / 239.7 MB, free: 6.355 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00232/0.002337, allocations: 2.217 MB / 242 MB, free: 4.148 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008259/0.003163, allocations: 0.6991 MB / 242.7 MB, free: 3.449 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.003278, allocations: 3.938 kB / 242.7 MB, free: 3.445 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.003389, allocations: 58.41 kB / 242.7 MB, free: 3.391 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.6e-05/0.003485, allocations: 43.64 kB / 242.8 MB, free: 3.348 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001937/0.003679, allocations: 103.6 kB / 242.9 MB, free: 3.246 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002225/0.003902, allocations: 235.6 kB / 243.1 MB, free: 3.016 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.004069, allocations: 82.56 kB / 243.2 MB, free: 2.934 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.004258, allocations: 156.4 kB / 243.3 MB, free: 2.781 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.00437, allocations: 76.98 kB / 243.4 MB, free: 2.707 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.876e-05/0.004399, allocations: 20 kB / 243.4 MB, free: 2.688 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.658e-05/0.004485, allocations: 31.94 kB / 243.5 MB, free: 2.656 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.819e-05/0.004543, allocations: 44.77 kB / 243.5 MB, free: 2.613 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.573e-05/0.004599, allocations: 55.81 kB / 243.5 MB, free: 2.559 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.004792, allocations: 159.3 kB / 243.7 MB, free: 2.402 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.182e-05/0.004804, allocations: 0.9062 kB / 243.7 MB, free: 2.402 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.004805, allocations: 0 / 243.7 MB, free: 2.402 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.004817, allocations: 1.781 kB / 243.7 MB, free: 2.402 MB / 234.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.0005697/0.005387, allocations: 491.7 kB / 244.2 MB, free: 1.898 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.005428, allocations: 8.688 kB / 244.2 MB, free: 1.891 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.734e-05/0.005486, allocations: 40.91 kB / 244.2 MB, free: 1.852 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001934/0.005679, allocations: 185.9 kB / 244.4 MB, free: 1.645 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.005703, allocations: 18.84 kB / 244.4 MB, free: 1.625 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.456e-05/0.005737, allocations: 20.38 kB / 244.5 MB, free: 1.605 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.005985, allocations: 211.2 kB / 244.7 MB, free: 1.383 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.005995, allocations: 0 / 244.7 MB, free: 1.383 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.006009, allocations: 7.984 kB / 244.7 MB, free: 1.375 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.528e-05/0.006034, allocations: 17.91 kB / 244.7 MB, free: 1.359 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.42e-05/0.006128, allocations: 69.45 kB / 244.8 MB, free: 1.297 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005435/0.006672, allocations: 0.5536 MB / 245.3 MB, free: 0.7148 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/0.006794, allocations: 95.03 kB / 245.4 MB, free: 0.6133 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.392e-05/0.006838, allocations: 40.84 kB / 245.4 MB, free: 0.5703 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.706e-05/0.006925, allocations: 11.98 kB / 245.5 MB, free: 0.5586 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.006948, allocations: 38.55 kB / 245.5 MB, free: 0.5117 MB / 234.7 MB Notification: Performance of pre-optimization done (n=22): time 1.102e-06/0.006949, allocations: 1.156 kB / 245.5 MB, free: 0.5117 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.000544/0.007493, allocations: 452 kB / 245.9 MB, free: 20 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.007531, allocations: 63.28 kB / 246 MB, free: 15.95 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.621e-05/0.007627, allocations: 183.5 kB / 246.2 MB, free: 15.75 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.007643, allocations: 38.62 kB / 246.2 MB, free: 15.71 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.62e-05/0.007699, allocations: 136.4 kB / 246.3 MB, free: 15.57 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.249e-05/0.007742, allocations: 91.95 kB / 246.4 MB, free: 15.48 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.124e-05/0.007793, allocations: 49.67 kB / 246.5 MB, free: 15.43 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.469e-05/0.007878, allocations: 339.5 kB / 246.8 MB, free: 15.09 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.455e-05/0.007922, allocations: 20 kB / 246.8 MB, free: 15.07 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.471e-05/0.007987, allocations: 60.61 kB / 246.9 MB, free: 15 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001208/0.008108, allocations: 106.8 kB / 247 MB, free: 14.88 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.008109, allocations: 2.531 kB / 247 MB, free: 14.88 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001373/0.008246, allocations: 135.9 kB / 247.1 MB, free: 14.74 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.008259, allocations: 8 kB / 247.1 MB, free: 14.73 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.008264, allocations: 0 / 247.1 MB, free: 14.73 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.008277, allocations: 4 kB / 247.1 MB, free: 14.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.00843, allocations: 56.88 kB / 247.2 MB, free: 14.68 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.008437, allocations: 7.984 kB / 247.2 MB, free: 14.67 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.765e-05/0.008485, allocations: 12.44 kB / 247.2 MB, free: 14.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.008496, allocations: 12.06 kB / 247.2 MB, free: 14.64 MB / 250.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 7.257e-05/0.008568, allocations: 125.4 kB / 247.4 MB, free: 14.51 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.738e-05/0.008596, allocations: 17.64 kB / 247.4 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001708/0.008766, allocations: 158.2 kB / 247.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.008768, allocations: 4 kB / 247.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-06/0.00877, allocations: 0 / 247.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.008777, allocations: 8 kB / 247.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003755/0.009152, allocations: 430.4 kB / 248 MB, free: 13.88 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.009155, allocations: 4 kB / 248 MB, free: 13.88 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.009296, allocations: 55.91 kB / 248 MB, free: 13.82 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.463e-05/0.009331, allocations: 27.84 kB / 248 MB, free: 13.79 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.009333, allocations: 4 kB / 248 MB, free: 13.79 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.009345, allocations: 7.938 kB / 248.1 MB, free: 13.78 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.009349, allocations: 4 kB / 248.1 MB, free: 13.78 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.00935, allocations: 0 / 248.1 MB, free: 13.78 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002299/0.00958, allocations: 301.1 kB / 248.4 MB, free: 13.46 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.821e-05/0.009598, allocations: 7.938 kB / 248.4 MB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.04e-05/0.009658, allocations: 7.938 kB / 248.4 MB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.009698, allocations: 23.95 kB / 248.4 MB, free: 13.42 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-06/0.009705, allocations: 4 kB / 248.4 MB, free: 13.42 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.078e-05/0.009746, allocations: 51.05 kB / 248.4 MB, free: 13.37 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009746, allocations: 4 kB / 248.5 MB, free: 13.36 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001561/0.009902, allocations: 44 kB / 248.5 MB, free: 13.32 MB / 250.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.973e-05/0.01, allocations: 100.3 kB / 248.6 MB, free: 13.21 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001304/0.01013, allocations: 108.7 kB / 248.7 MB, free: 13.11 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.807e-06/0.01014, allocations: 4 kB / 248.7 MB, free: 13.1 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.256e-05/0.01022, allocations: 84.67 kB / 248.8 MB, free: 13.02 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000209/0.01043, allocations: 102.3 kB / 248.9 MB, free: 12.91 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.01172, allocations: 496.3 kB / 249.4 MB, free: 12.39 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.542e-05/0.01178, allocations: 92.3 kB / 249.5 MB, free: 12.28 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.785e-05/0.01184, allocations: 25.92 kB / 249.5 MB, free: 12.26 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.489e-05/0.01192, allocations: 75.38 kB / 249.6 MB, free: 12.18 MB / 250.7 MB Notification: Performance of SimCode: time 8.01e-07/0.01192, allocations: 3.938 kB / 249.6 MB, free: 12.18 MB / 250.7 MB Notification: Performance of Templates: time 0.004206/0.01613, allocations: 1.963 MB / 251.5 MB, free: 10.24 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.521721468307078]