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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=40000,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=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 109.9 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00209/0.00209, allocations: 193.5 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 47.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.351, allocations: 49.42 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003841/0.3549, allocations: 2.213 MB / 403.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.3563, allocations: 0.6893 MB / 404.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.3564, allocations: 11.94 kB / 404.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001952/0.3566, allocations: 43.53 kB / 404.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001931/0.3568, allocations: 47.58 kB / 404.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.3571, allocations: 107.1 kB / 404.5 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000286/0.3574, allocations: 235.7 kB / 404.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002313/0.3577, allocations: 115.6 kB / 404.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.3578, allocations: 87.58 kB / 404.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.358, allocations: 115.5 kB / 405 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.54e-05/0.358, allocations: 16 kB / 405.1 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.769e-05/0.3581, allocations: 27.98 kB / 405.1 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.984e-05/0.3582, allocations: 59.77 kB / 405.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.3583, allocations: 111.3 kB / 405.2 MB, free: 5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002991/0.3586, allocations: 244.1 kB / 405.5 MB, free: 4.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3587, allocations: 4 kB / 405.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3587, allocations: 0 / 405.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.3587, allocations: 0 / 405.5 MB, free: 4.762 MB / 318.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.0009206/0.3596, allocations: 0.5457 MB / 406 MB, free: 4.168 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.3597, allocations: 11.89 kB / 406 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.772e-05/0.3598, allocations: 28.56 kB / 406.1 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003341/0.3601, allocations: 257 kB / 406.3 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.3601, allocations: 16.8 kB / 406.3 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.145e-05/0.3602, allocations: 27.94 kB / 406.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004764/0.3607, allocations: 254.7 kB / 406.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.3607, allocations: 3.984 kB / 406.6 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.3607, allocations: 12 kB / 406.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.063e-05/0.3608, allocations: 12.38 kB / 406.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004442/0.3612, allocations: 189.6 kB / 406.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.3625, allocations: 0.8223 MB / 407.7 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003748/0.3629, allocations: 192.2 kB / 407.8 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002216/0.3631, allocations: 109.2 kB / 407.9 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/0.3632, allocations: 85.05 kB / 408 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.3633, allocations: 30.56 kB / 408.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.372e-06/0.3633, allocations: 0 / 408.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0016/0.3649, allocations: 0.7298 MB / 408.8 MB, free: 1.211 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.365, allocations: 55.41 kB / 408.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.3652, allocations: 213 kB / 409.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.3652, allocations: 29.7 kB / 409.1 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.3654, allocations: 152.3 kB / 409.2 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.336e-05/0.3654, allocations: 82.8 kB / 409.3 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.568e-05/0.3655, allocations: 57.69 kB / 409.4 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3657, allocations: 334.8 kB / 409.7 MB, free: 264 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.3659, allocations: 79.95 kB / 409.8 MB, free: 184 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.3661, allocations: 127.4 kB / 409.9 MB, free: 44 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004219/0.3665, allocations: 222.3 kB / 410.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.3665, allocations: 0 / 410.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005033/0.367, allocations: 273.2 kB / 410.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.3671, allocations: 4 kB / 410.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3671, allocations: 64 / 410.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.3671, allocations: 8 kB / 410.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.3674, allocations: 63.89 kB / 410.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.3674, allocations: 0 / 410.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.3675, allocations: 19.92 kB / 410.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.3676, allocations: 8 kB / 410.5 MB, free: 15.44 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.0001312/0.3677, allocations: 141.8 kB / 410.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.712e-05/0.3678, allocations: 23.72 kB / 410.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006108/0.3684, allocations: 299.8 kB / 410.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.3684, allocations: 4 kB / 410.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3684, allocations: 0 / 410.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.3684, allocations: 11.86 kB / 411 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009732/0.3694, allocations: 0.6791 MB / 411.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3694, allocations: 0 / 411.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002565/0.3697, allocations: 59.83 kB / 411.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.3697, allocations: 7.938 kB / 411.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.3697, allocations: 4 kB / 411.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3697, allocations: 4 kB / 411.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3697, allocations: 0 / 411.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007275/0.3705, allocations: 481.4 kB / 412.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.904e-05/0.3706, allocations: 116.9 kB / 412.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.3706, allocations: 11.94 kB / 412.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.3708, allocations: 12.17 kB / 412.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.186e-05/0.3708, allocations: 23.89 kB / 412.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.3709, allocations: 16 kB / 412.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001252/0.371, allocations: 156.5 kB / 412.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.371, allocations: 0 / 412.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.3713, allocations: 48 kB / 412.6 MB, free: 13.26 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.0001791/0.3715, allocations: 111.2 kB / 412.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005074/0.372, allocations: 220.4 kB / 412.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.372, allocations: 4 kB / 412.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002274/0.3722, allocations: 127.9 kB / 413 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.3726, allocations: 24.38 kB / 413 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.3737, allocations: 0.7073 MB / 413.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.3741, allocations: 0.7753 MB / 414.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.305e-05/0.3742, allocations: 23.44 kB / 414.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3742, allocations: 0 / 414.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of Templates: time 0.005058/0.3792, allocations: 2.909 MB / 417.4 MB, free: 8.285 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile (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) 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) Reference file matches