Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001247/0.001246, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.551/1.551, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 67.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.306, allocations: 50.54 MB / 408.8 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003783/0.3098, allocations: 2.22 MB / 411 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.3113, allocations: 0.7399 MB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.3114, allocations: 8 kB / 411.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002646/0.3117, allocations: 51.47 kB / 411.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001901/0.3119, allocations: 31.66 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003077/0.3122, allocations: 111.7 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.3126, allocations: 235.6 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002541/0.3128, allocations: 115.6 kB / 412.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.3131, allocations: 99.56 kB / 412.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001874/0.3133, allocations: 103.5 kB / 412.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.724e-05/0.3133, allocations: 23.94 kB / 412.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001297/0.3135, allocations: 35.98 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.687e-05/0.3136, allocations: 59.77 kB / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.3137, allocations: 107.3 kB / 412.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003708/0.3141, allocations: 249.9 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3141, allocations: 4 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3141, allocations: 0 / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.3141, allocations: 0 / 412.9 MB, free: 13.39 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.001164/0.3153, allocations: 0.5493 MB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.3153, allocations: 12.03 kB / 413.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.59e-05/0.3155, allocations: 58.72 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002416/0.3157, allocations: 28.8 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003722/0.3161, allocations: 263.8 kB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.373e-05/0.3161, allocations: 12.81 kB / 413.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.618e-05/0.3162, allocations: 24.38 kB / 413.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006213/0.3168, allocations: 258.8 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.3168, allocations: 0 / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.3169, allocations: 12 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.129e-05/0.3169, allocations: 16.42 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004436/0.3174, allocations: 193.5 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.3188, allocations: 0.8225 MB / 415.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004434/0.3192, allocations: 186.4 kB / 415.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002306/0.3195, allocations: 108.8 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001148/0.3196, allocations: 85.47 kB / 415.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.3196, allocations: 34.5 kB / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.673e-06/0.3196, allocations: 0 / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.00179/0.3214, allocations: 0.7313 MB / 416.3 MB, free: 9.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.3215, allocations: 55.41 kB / 416.4 MB, free: 9.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.3217, allocations: 217 kB / 416.6 MB, free: 9.469 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.953e-05/0.3218, allocations: 29.7 kB / 416.6 MB, free: 9.434 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.3219, allocations: 148.5 kB / 416.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.3221, allocations: 91.27 kB / 416.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.975e-05/0.3221, allocations: 49.7 kB / 416.9 MB, free: 9.141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.3223, allocations: 330.8 kB / 417.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/0.3225, allocations: 91.88 kB / 417.3 MB, free: 8.719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.3228, allocations: 119.4 kB / 417.4 MB, free: 8.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004558/0.3232, allocations: 226.8 kB / 417.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.3233, allocations: 0 / 417.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005447/0.3238, allocations: 273.3 kB / 417.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3238, allocations: 4 kB / 417.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.3238, allocations: 4.062 kB / 417.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.3239, allocations: 4 kB / 417.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003552/0.3242, allocations: 67.83 kB / 418 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/0.3242, allocations: 4 kB / 418 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.3244, allocations: 15.97 kB / 418 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.3244, allocations: 8 kB / 418 MB, free: 7.98 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.0001549/0.3246, allocations: 141.7 kB / 418.1 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.793e-05/0.3246, allocations: 27.84 kB / 418.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006781/0.3253, allocations: 299.1 kB / 418.5 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.3253, allocations: 4 kB / 418.5 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3253, allocations: 0 / 418.5 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.3254, allocations: 0 / 418.5 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.3265, allocations: 0.6946 MB / 419.2 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3265, allocations: 0 / 419.2 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.3268, allocations: 47.97 kB / 419.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.637e-05/0.3269, allocations: 4 kB / 419.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.188e-05/0.3269, allocations: 4 kB / 419.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.3269, allocations: 11.88 kB / 419.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3269, allocations: 0 / 419.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008029/0.3277, allocations: 490.1 kB / 419.7 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/0.3279, allocations: 121 kB / 419.8 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.249e-05/0.3279, allocations: 8 kB / 419.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001532/0.3281, allocations: 19.86 kB / 419.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.189e-05/0.3282, allocations: 15.97 kB / 419.9 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.3282, allocations: 12 kB / 419.9 MB, free: 5.992 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001428/0.3283, allocations: 160.5 kB / 420 MB, free: 5.836 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3283, allocations: 0 / 420 MB, free: 5.836 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002996/0.3287, allocations: 44 kB / 420.1 MB, free: 5.793 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.001284/0.3299, allocations: 1.031 MB / 421.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005334/0.3305, allocations: 219.8 kB / 421.3 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3305, allocations: 0 / 421.3 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002965/0.3308, allocations: 119.8 kB / 421.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.3312, allocations: 28.61 kB / 421.5 MB, free: 4.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00388/0.3351, allocations: 2.7 MB / 424.2 MB, free: 1.566 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004831/0.3356, allocations: 0.7639 MB / 424.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.3357, allocations: 41.92 kB / 425 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.3359, allocations: 87.41 kB / 425.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3359, allocations: 0 / 425.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02914/0.365, allocations: 4.499 MB / 429.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.333/8.698, allocations: 7.922 kB / 429.6 MB, free: 12.21 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches