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.001682/0.001682, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.00189/0.00189, allocations: 186 kB / 24.46 MB, free: 3.863 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.445/1.445, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.001613/0.001613, allocations: 59.91 kB / 371.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2671, allocations: 52.16 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003924/0.271, allocations: 2.119 MB / 425.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.2724, allocations: 0.6389 MB / 426.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.2726, allocations: 15.81 kB / 426.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.2728, allocations: 51.52 kB / 426.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002081/0.273, allocations: 47.58 kB / 426.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.2733, allocations: 103.8 kB / 426.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003406/0.2736, allocations: 235.7 kB / 427 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002427/0.2739, allocations: 75.81 kB / 427.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.2741, allocations: 95.62 kB / 427.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001898/0.2743, allocations: 103.4 kB / 427.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.087e-05/0.2743, allocations: 20 kB / 427.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.228e-05/0.2744, allocations: 31.97 kB / 427.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.939e-05/0.2745, allocations: 51.84 kB / 427.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.2746, allocations: 87.47 kB / 427.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004173/0.275, allocations: 249.7 kB / 427.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.275, allocations: 0 / 427.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.275, allocations: 0 / 427.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.275, allocations: 4 kB / 427.7 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.001005/0.276, allocations: 489.4 kB / 428.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.2761, allocations: 8.031 kB / 428.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.894e-05/0.2762, allocations: 28.75 kB / 428.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.2765, allocations: 202 kB / 428.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.2765, allocations: 12.81 kB / 428.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.596e-05/0.2766, allocations: 27.89 kB / 428.5 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005108/0.2771, allocations: 254.7 kB / 428.7 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.2771, allocations: 0 / 428.7 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/0.2771, allocations: 19.94 kB / 428.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.103e-05/0.2772, allocations: 12.44 kB / 428.7 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004757/0.2776, allocations: 197.5 kB / 428.9 MB, free: 9.254 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.2788, allocations: 0.6935 MB / 429.6 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003911/0.2792, allocations: 178.5 kB / 429.8 MB, free: 8.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.2794, allocations: 92.8 kB / 429.9 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.55e-05/0.2795, allocations: 12.38 kB / 429.9 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.2795, allocations: 38.44 kB / 429.9 MB, free: 8.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.413e-06/0.2795, allocations: 0 / 429.9 MB, free: 8.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001579/0.2811, allocations: 0.648 MB / 430.6 MB, free: 7.508 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.913e-05/0.2812, allocations: 55.41 kB / 430.6 MB, free: 7.441 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002398/0.2814, allocations: 195.7 kB / 430.8 MB, free: 7.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.2814, allocations: 29.7 kB / 430.9 MB, free: 7.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.2816, allocations: 152.4 kB / 431 MB, free: 7.047 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.262e-05/0.2817, allocations: 87.27 kB / 431.1 MB, free: 6.961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.692e-05/0.2818, allocations: 53.69 kB / 431.2 MB, free: 6.902 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.2819, allocations: 326.8 kB / 431.5 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.2822, allocations: 83.94 kB / 431.6 MB, free: 6.492 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002486/0.2824, allocations: 131.3 kB / 431.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004392/0.2828, allocations: 213 kB / 431.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2828, allocations: 0 / 431.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005619/0.2834, allocations: 274.8 kB / 432.2 MB, free: 5.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.2834, allocations: 4.062 kB / 432.2 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.2834, allocations: 4 kB / 432.2 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.2835, allocations: 4 kB / 432.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003103/0.2838, allocations: 63.89 kB / 432.2 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.2838, allocations: 3.984 kB / 432.2 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.2839, allocations: 15.98 kB / 432.3 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.17e-05/0.2839, allocations: 8 kB / 432.3 MB, free: 5.758 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.0001675/0.2841, allocations: 145.7 kB / 432.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.423e-05/0.2842, allocations: 23.86 kB / 432.4 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006663/0.2848, allocations: 296 kB / 432.7 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.2848, allocations: 7.938 kB / 432.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2848, allocations: 0 / 432.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2848, allocations: 0 / 432.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001151/0.286, allocations: 0.6009 MB / 433.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.286, allocations: 4 kB / 433.3 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.2863, allocations: 55.94 kB / 433.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2863, allocations: 4 kB / 433.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.2863, allocations: 8 kB / 433.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.2863, allocations: 7.922 kB / 433.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2863, allocations: 0 / 433.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008586/0.2872, allocations: 482.4 kB / 433.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.756e-05/0.2873, allocations: 31.91 kB / 433.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.135e-05/0.2873, allocations: 8 kB / 433.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.2874, allocations: 19.92 kB / 433.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.716e-05/0.2875, allocations: 19.95 kB / 434 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.2875, allocations: 11.94 kB / 434 MB, free: 3.977 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001316/0.2877, allocations: 137.5 kB / 434.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2877, allocations: 3.938 kB / 434.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003158/0.288, allocations: 44 kB / 434.1 MB, free: 3.797 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.0001862/0.2882, allocations: 103.2 kB / 434.2 MB, free: 3.684 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005346/0.2887, allocations: 219.7 kB / 434.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2887, allocations: 0 / 434.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002402/0.2889, allocations: 107.9 kB / 434.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.2893, allocations: 27.84 kB / 434.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.2906, allocations: 0.7202 MB / 435.3 MB, free: 2.582 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001885/0.2908, allocations: 162.7 kB / 435.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.46e-05/0.2909, allocations: 27.42 kB / 435.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2909, allocations: 0 / 435.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of Templates: time 0.005776/0.2967, allocations: 2.902 MB / 438.4 MB, free: 15.47 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/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: 7.693062731064856]