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.001739/0.001739, allocations: 110.2 kB / 17.06 MB, free: 5.793 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.001843/0.001843, allocations: 197.3 kB / 18.01 MB, free: 4.918 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.434/1.434, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 47.91 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2985, allocations: 49.44 MB / 400.2 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004323/0.3028, allocations: 2.202 MB / 402.4 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.3043, allocations: 0.6932 MB / 403.1 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.3045, allocations: 7.938 kB / 403.1 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002072/0.3047, allocations: 43.53 kB / 403.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002194/0.3049, allocations: 55.58 kB / 403.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003096/0.3053, allocations: 99.75 kB / 403.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003221/0.3056, allocations: 239.7 kB / 403.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00026/0.3059, allocations: 115.5 kB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001666/0.306, allocations: 87.64 kB / 403.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/0.3063, allocations: 107.5 kB / 403.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.594e-05/0.3063, allocations: 20 kB / 403.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.763e-05/0.3064, allocations: 23.98 kB / 403.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.285e-05/0.3065, allocations: 67.77 kB / 404 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.3066, allocations: 103.3 kB / 404.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003929/0.307, allocations: 249.9 kB / 404.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.3071, allocations: 0 / 404.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3071, allocations: 0 / 404.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.3071, allocations: 0 / 404.3 MB, free: 4.703 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.001057/0.3081, allocations: 0.5455 MB / 404.9 MB, free: 4.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.3082, allocations: 16.03 kB / 404.9 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.829e-05/0.3083, allocations: 54.67 kB / 404.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.001e-05/0.3084, allocations: 36.73 kB / 405 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003783/0.3087, allocations: 249.2 kB / 405.2 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.3088, allocations: 20.56 kB / 405.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.162e-05/0.3088, allocations: 27.94 kB / 405.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005164/0.3094, allocations: 262.6 kB / 405.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.3094, allocations: 4 kB / 405.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.401e-05/0.3094, allocations: 8 kB / 405.5 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-05/0.3095, allocations: 12.44 kB / 405.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005416/0.31, allocations: 193.6 kB / 405.7 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.3113, allocations: 0.8186 MB / 406.5 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003818/0.3117, allocations: 186.4 kB / 406.7 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000235/0.3119, allocations: 117.1 kB / 406.8 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/0.312, allocations: 81.11 kB / 406.9 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.3121, allocations: 38.5 kB / 407 MB, free: 1.852 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.3121, allocations: 0 / 407 MB, free: 1.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001543/0.3136, allocations: 0.7284 MB / 407.7 MB, free: 1.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.3137, allocations: 51.41 kB / 407.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002163/0.3139, allocations: 213 kB / 407.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.3139, allocations: 29.7 kB / 408 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.314, allocations: 156.4 kB / 408.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.394e-05/0.3141, allocations: 91.22 kB / 408.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.598e-05/0.3142, allocations: 49.69 kB / 408.3 MB, free: 464 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3144, allocations: 342.8 kB / 408.6 MB, free: 112 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.3146, allocations: 79.95 kB / 408.7 MB, free: 32 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.3149, allocations: 127.4 kB / 408.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000447/0.3153, allocations: 214.1 kB / 409 MB, free: 15.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.3153, allocations: 0 / 409 MB, free: 15.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005516/0.3159, allocations: 273.3 kB / 409.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.3159, allocations: 8 kB / 409.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3159, allocations: 3.938 kB / 409.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.316, allocations: 0 / 409.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002898/0.3163, allocations: 64.02 kB / 409.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.3163, allocations: 4 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.3164, allocations: 23.86 kB / 409.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.3164, allocations: 7.984 kB / 409.4 MB, free: 15.29 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.0001415/0.3166, allocations: 141.8 kB / 409.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.3166, allocations: 19.86 kB / 409.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006389/0.3173, allocations: 303.8 kB / 409.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.3173, allocations: 0 / 409.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3173, allocations: 4 kB / 409.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.3173, allocations: 7.922 kB / 409.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.3185, allocations: 0.6792 MB / 410.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3185, allocations: 0 / 410.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002872/0.3188, allocations: 63.92 kB / 410.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.3188, allocations: 3.938 kB / 410.6 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.3188, allocations: 8 kB / 410.6 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.3188, allocations: 0 / 410.6 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3188, allocations: 0 / 410.6 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008362/0.3197, allocations: 493.4 kB / 411.1 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.3198, allocations: 120.9 kB / 411.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.3198, allocations: 4 kB / 411.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.32, allocations: 15.98 kB / 411.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.833e-05/0.3201, allocations: 19.91 kB / 411.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.3201, allocations: 8 kB / 411.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001382/0.3202, allocations: 152.5 kB / 411.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3202, allocations: 0 / 411.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003029/0.3205, allocations: 52 kB / 411.5 MB, free: 13.11 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.001184/0.3217, allocations: 1.039 MB / 412.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005416/0.3223, allocations: 223.8 kB / 412.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3223, allocations: 0 / 412.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002411/0.3226, allocations: 111.9 kB / 412.8 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.3229, allocations: 39.27 kB / 412.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003605/0.3265, allocations: 2.704 MB / 415.6 MB, free: 8.875 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004457/0.327, allocations: 0.7752 MB / 416.3 MB, free: 8.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001384/0.3271, allocations: 49.91 kB / 416.4 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.3273, allocations: 83.41 kB / 416.5 MB, free: 7.941 MB / 334.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3273, allocations: 0 / 416.5 MB, free: 7.941 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0287/0.356, allocations: 4.548 MB / 421 MB, free: 3.457 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.385/8.741, allocations: 18.64 kB / 421 MB, free: 3.445 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-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.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