Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002323/0.002323, allocations: 209.5 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 51.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.302, allocations: 53.36 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003598/0.3056, allocations: 2.124 MB / 433.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.3068, allocations: 0.7127 MB / 433.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.3069, allocations: 7.938 kB / 433.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.3071, allocations: 47.52 kB / 434 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001386/0.3072, allocations: 43.59 kB / 434 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.3075, allocations: 103.8 kB / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002747/0.3078, allocations: 231.7 kB / 434.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000191/0.308, allocations: 85.44 kB / 434.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001913/0.3082, allocations: 103.6 kB / 434.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.3084, allocations: 111.5 kB / 434.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.296e-05/0.3084, allocations: 16 kB / 434.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.771e-05/0.3085, allocations: 43.98 kB / 434.7 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.377e-05/0.3086, allocations: 55.78 kB / 434.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.3087, allocations: 83.52 kB / 434.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003777/0.3091, allocations: 256.6 kB / 435.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3091, allocations: 4 kB / 435.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.3091, allocations: 0 / 435.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.3091, allocations: 3.938 kB / 435.1 MB, free: 2.652 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.0008447/0.3099, allocations: 485.4 kB / 435.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.3099, allocations: 12.03 kB / 435.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.259e-05/0.31, allocations: 58.73 kB / 435.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.3101, allocations: 32.78 kB / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002926/0.3104, allocations: 183.4 kB / 435.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.106e-05/0.3105, allocations: 16.8 kB / 435.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.543e-05/0.3105, allocations: 28.36 kB / 435.9 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004898/0.311, allocations: 258.7 kB / 436.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.311, allocations: 0 / 436.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.311, allocations: 8 kB / 436.1 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.105e-05/0.3111, allocations: 16.44 kB / 436.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004428/0.3115, allocations: 193.5 kB / 436.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.3127, allocations: 0.7514 MB / 437.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003695/0.313, allocations: 178.4 kB / 437.3 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.3132, allocations: 96.8 kB / 437.4 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.23e-05/0.3133, allocations: 4.375 kB / 437.4 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.3133, allocations: 38.5 kB / 437.4 MB, free: 184 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.293e-06/0.3133, allocations: 0 / 437.4 MB, free: 184 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001437/0.3148, allocations: 0.6559 MB / 438.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.3148, allocations: 55.41 kB / 438.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.315, allocations: 213 kB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.3151, allocations: 33.64 kB / 438.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.3152, allocations: 148.5 kB / 438.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.98e-05/0.3152, allocations: 83.28 kB / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.3154, allocations: 53.64 kB / 438.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.3155, allocations: 330.8 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.3157, allocations: 83.94 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002805/0.316, allocations: 128.1 kB / 439.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004475/0.3165, allocations: 224.7 kB / 439.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.3165, allocations: 0 / 439.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005259/0.317, allocations: 273.2 kB / 439.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.317, allocations: 11.98 kB / 439.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.317, allocations: 4.062 kB / 439.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.317, allocations: 4 kB / 439.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.3173, allocations: 63.89 kB / 439.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.3173, allocations: 0 / 439.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.3174, allocations: 15.98 kB / 439.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.3174, allocations: 8 kB / 439.8 MB, free: 13.71 MB / 350.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.0001349/0.3176, allocations: 149.6 kB / 439.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.023e-05/0.3176, allocations: 23.86 kB / 439.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006209/0.3183, allocations: 299.3 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.3183, allocations: 4 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.3183, allocations: 0 / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.3183, allocations: 0 / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.3194, allocations: 0.6275 MB / 440.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3194, allocations: 0 / 440.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002719/0.3196, allocations: 67.92 kB / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.3196, allocations: 0 / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.3197, allocations: 8 kB / 440.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3197, allocations: 3.938 kB / 440.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.3197, allocations: 4 kB / 440.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008031/0.3205, allocations: 485.4 kB / 441.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.291e-05/0.3205, allocations: 35.89 kB / 441.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.3206, allocations: 8 kB / 441.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.3207, allocations: 19.92 kB / 441.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.339e-05/0.3208, allocations: 23.91 kB / 441.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.9e-05/0.3208, allocations: 8 kB / 441.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001436/0.3209, allocations: 160.5 kB / 441.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3209, allocations: 0 / 441.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.3212, allocations: 47.94 kB / 441.7 MB, free: 11.67 MB / 350.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.001192/0.3224, allocations: 1.028 MB / 442.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004754/0.3229, allocations: 206.3 kB / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3229, allocations: 4 kB / 442.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.3231, allocations: 111.9 kB / 443 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.3235, allocations: 32.44 kB / 443.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003561/0.327, allocations: 2.695 MB / 445.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001618/0.3272, allocations: 155.2 kB / 445.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.3273, allocations: 49.91 kB / 446 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.3274, allocations: 91.33 kB / 446.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3274, allocations: 0 / 446.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03468/0.3621, allocations: 5.174 MB / 451.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.56, allocations: 11.73 kB / 451.3 MB, free: 2.121 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable integrator.y in file Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv. Warning: Get data of variable integrator.y from file Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv failed! Error: Could not read variable der1.y in file Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv. Warning: Get data of variable der1.y from file Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.714620849001221]