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.001715/0.001715, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.002274/0.002274, allocations: 209.2 kB / 23.73 MB, free: 4.41 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.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.001563/0.001563, allocations: 55.91 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.3012, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004747/0.306, allocations: 2.117 MB / 433.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.3078, allocations: 0.7049 MB / 433.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.308, allocations: 11.88 kB / 433.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.3082, allocations: 47.52 kB / 434 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002182/0.3084, allocations: 47.58 kB / 434 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003642/0.3088, allocations: 99.77 kB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003478/0.3091, allocations: 231.7 kB / 434.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002599/0.3094, allocations: 83.8 kB / 434.4 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003232/0.3097, allocations: 99.56 kB / 434.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002912/0.31, allocations: 103.5 kB / 434.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.647e-05/0.31, allocations: 16 kB / 434.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.3102, allocations: 39.97 kB / 434.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.3103, allocations: 55.78 kB / 434.7 MB, free: 3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.3104, allocations: 83.52 kB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004797/0.3109, allocations: 256.6 kB / 435.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.351e-06/0.3109, allocations: 0 / 435.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.3109, allocations: 0 / 435.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.3109, allocations: 0 / 435.1 MB, free: 2.668 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.00118/0.3121, allocations: 493.3 kB / 435.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.331e-05/0.3122, allocations: 8.031 kB / 435.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.436e-05/0.3123, allocations: 54.73 kB / 435.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002041/0.3125, allocations: 32.78 kB / 435.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/0.3128, allocations: 191.3 kB / 435.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.545e-05/0.3129, allocations: 16.81 kB / 435.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.481e-05/0.3129, allocations: 24.38 kB / 435.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005807/0.3135, allocations: 266.8 kB / 436.1 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.3135, allocations: 0 / 436.1 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.3135, allocations: 4 kB / 436.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.33e-05/0.3136, allocations: 16.38 kB / 436.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004695/0.314, allocations: 193.6 kB / 436.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.3153, allocations: 0.7592 MB / 437.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000373/0.3157, allocations: 166.5 kB / 437.3 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000209/0.3159, allocations: 96.8 kB / 437.3 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.068e-05/0.316, allocations: 12.36 kB / 437.4 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.537e-05/0.316, allocations: 38.5 kB / 437.4 MB, free: 188 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.222e-06/0.316, allocations: 0 / 437.4 MB, free: 188 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001533/0.3175, allocations: 0.6575 MB / 438.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.895e-05/0.3176, allocations: 55.41 kB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002294/0.3178, allocations: 213 kB / 438.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.3179, allocations: 29.7 kB / 438.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.318, allocations: 148.5 kB / 438.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.586e-05/0.3181, allocations: 83.28 kB / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.362e-05/0.3181, allocations: 53.64 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.3183, allocations: 334.8 kB / 438.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.3185, allocations: 87.94 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002368/0.3188, allocations: 120.1 kB / 439.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004349/0.3192, allocations: 223.2 kB / 439.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.3192, allocations: 0 / 439.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005542/0.3198, allocations: 279 kB / 439.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.3198, allocations: 8 kB / 439.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3198, allocations: 4 kB / 439.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.3198, allocations: 7.984 kB / 439.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000276/0.3201, allocations: 55.91 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.3201, allocations: 3.984 kB / 439.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.3202, allocations: 15.98 kB / 439.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.3203, allocations: 12 kB / 439.7 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.0001612/0.3204, allocations: 149.7 kB / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.974e-05/0.3205, allocations: 23.86 kB / 439.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006257/0.3211, allocations: 295.2 kB / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3211, allocations: 4 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.3211, allocations: 0 / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.3211, allocations: 0 / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.3222, allocations: 0.6353 MB / 440.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3222, allocations: 4 kB / 440.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000268/0.3225, allocations: 51.91 kB / 440.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.3225, allocations: 3.984 kB / 440.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.3225, allocations: 8 kB / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3225, allocations: 3.938 kB / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3225, allocations: 4 kB / 440.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008139/0.3233, allocations: 485.5 kB / 441.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.938e-05/0.3234, allocations: 43.89 kB / 441.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.3234, allocations: 4 kB / 441.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/0.3236, allocations: 19.92 kB / 441.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.565e-05/0.3236, allocations: 15.91 kB / 441.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.3236, allocations: 12 kB / 441.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001497/0.3238, allocations: 156.5 kB / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3238, allocations: 0 / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003082/0.3241, allocations: 47.94 kB / 441.7 MB, free: 11.68 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.001137/0.3252, allocations: 1.024 MB / 442.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004738/0.3257, allocations: 215.8 kB / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3257, allocations: 0 / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002309/0.326, allocations: 111.8 kB / 443 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003201/0.3263, allocations: 32.55 kB / 443.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003533/0.3298, allocations: 2.698 MB / 445.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.33, allocations: 159.2 kB / 445.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001275/0.3301, allocations: 41.92 kB / 446 MB, free: 7.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.3302, allocations: 79.41 kB / 446 MB, free: 7.18 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3302, allocations: 8 kB / 446 MB, free: 7.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03512/0.3654, allocations: 5.097 MB / 451.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.74, allocations: 7.562 kB / 451.1 MB, free: 2.211 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.846528256777674]