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: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 111.2 kB / 17.06 MB, free: 6.055 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.001868/0.001868, allocations: 193.4 kB / 17.99 MB, free: 5.156 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.556/1.556, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 51.91 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3153, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00378/0.3191, allocations: 2.194 MB / 402.4 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.3205, allocations: 0.6972 MB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.3206, allocations: 3.938 kB / 403.1 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002007/0.3208, allocations: 47.53 kB / 403.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001975/0.3211, allocations: 51.58 kB / 403.2 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002996/0.3214, allocations: 95.83 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003083/0.3217, allocations: 239.7 kB / 403.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002367/0.3219, allocations: 111.5 kB / 403.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.3221, allocations: 95.62 kB / 403.8 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001655/0.3223, allocations: 107.5 kB / 403.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.445e-05/0.3223, allocations: 20 kB / 403.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.3224, allocations: 28 kB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.586e-05/0.3225, allocations: 59.7 kB / 404 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.3227, allocations: 111.3 kB / 404.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003493/0.323, allocations: 245.9 kB / 404.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.323, allocations: 0 / 404.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.323, allocations: 0 / 404.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.3231, allocations: 3.938 kB / 404.3 MB, free: 4.707 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.0009759/0.324, allocations: 0.5455 MB / 404.9 MB, free: 4.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.3241, allocations: 12.03 kB / 404.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.991e-05/0.3242, allocations: 58.72 kB / 404.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.875e-05/0.3242, allocations: 32.75 kB / 405 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003419/0.3246, allocations: 257.1 kB / 405.2 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.3246, allocations: 20.56 kB / 405.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.06e-05/0.3247, allocations: 23.95 kB / 405.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004912/0.3252, allocations: 250.7 kB / 405.5 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.3252, allocations: 4 kB / 405.5 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/0.3252, allocations: 8 kB / 405.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.573e-05/0.3253, allocations: 16.42 kB / 405.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004509/0.3257, allocations: 193.5 kB / 405.7 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.3269, allocations: 0.8188 MB / 406.5 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003859/0.3273, allocations: 186.4 kB / 406.7 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002367/0.3276, allocations: 114.6 kB / 406.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001202/0.3277, allocations: 89.09 kB / 406.9 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.3277, allocations: 38.56 kB / 407 MB, free: 1.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.714e-06/0.3277, allocations: 0 / 407 MB, free: 1.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.00154/0.3293, allocations: 0.7262 MB / 407.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.3293, allocations: 55.41 kB / 407.7 MB, free: 1.016 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.3296, allocations: 213 kB / 407.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.3296, allocations: 29.7 kB / 408 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.3297, allocations: 152.5 kB / 408.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.764e-05/0.3298, allocations: 91.22 kB / 408.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.358e-05/0.3299, allocations: 49.64 kB / 408.3 MB, free: 476 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.33, allocations: 342.8 kB / 408.6 MB, free: 124 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001997/0.3302, allocations: 83.94 kB / 408.7 MB, free: 40 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002481/0.3305, allocations: 123.4 kB / 408.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004338/0.3309, allocations: 218.3 kB / 409 MB, free: 15.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.331, allocations: 4 kB / 409 MB, free: 15.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005334/0.3315, allocations: 269.3 kB / 409.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.3315, allocations: 8 kB / 409.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.3315, allocations: 0 / 409.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.3316, allocations: 0 / 409.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002857/0.3319, allocations: 59.89 kB / 409.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.3319, allocations: 8.062 kB / 409.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.332, allocations: 19.92 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.332, allocations: 15.98 kB / 409.4 MB, free: 15.3 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.0001453/0.3322, allocations: 133.8 kB / 409.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.848e-05/0.3322, allocations: 19.86 kB / 409.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006398/0.3329, allocations: 299.8 kB / 409.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.3329, allocations: 11.94 kB / 409.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3329, allocations: 3.938 kB / 409.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.3329, allocations: 7.875 kB / 409.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.334, allocations: 0.6791 MB / 410.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.334, allocations: 0 / 410.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.3343, allocations: 56.03 kB / 410.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.3343, allocations: 15.91 kB / 410.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.3344, allocations: 8 kB / 410.6 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3344, allocations: 0 / 410.6 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3344, allocations: 3.984 kB / 410.6 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008103/0.3352, allocations: 489.5 kB / 411.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.3353, allocations: 116.9 kB / 411.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.3354, allocations: 4 kB / 411.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.3355, allocations: 15.98 kB / 411.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.448e-05/0.3356, allocations: 19.97 kB / 411.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.3356, allocations: 4 kB / 411.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001386/0.3357, allocations: 160.5 kB / 411.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3358, allocations: 4 kB / 411.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002976/0.3361, allocations: 40 kB / 411.4 MB, free: 13.12 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.001203/0.3373, allocations: 1.043 MB / 412.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005342/0.3378, allocations: 215.8 kB / 412.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3378, allocations: 0 / 412.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002357/0.3381, allocations: 119.8 kB / 412.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.3384, allocations: 28.42 kB / 412.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003527/0.3419, allocations: 2.703 MB / 415.6 MB, free: 8.887 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004197/0.3424, allocations: 0.783 MB / 416.3 MB, free: 8.074 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.3425, allocations: 45.92 kB / 416.4 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.3427, allocations: 91.39 kB / 416.5 MB, free: 7.941 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3427, allocations: 0 / 416.5 MB, free: 7.941 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03081/0.3735, allocations: 4.543 MB / 421 MB, free: 3.469 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.264/8.637, allocations: 8.156 kB / 421 MB, free: 3.461 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 5e-05 Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv","/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