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.001144/0.001144, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001171/0.001171, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9519/0.9519, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 3.267e-06/3.267e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.108e-05/3.435e-05, allocations: 4.531 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003459/0.003493, allocations: 2.132 MB / 326.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.004656, allocations: 0.7087 MB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.004796, allocations: 7.938 kB / 327.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.004996, allocations: 51.52 kB / 327.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002214/0.005218, allocations: 47.53 kB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004227/0.005641, allocations: 103.7 kB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003345/0.005975, allocations: 235.7 kB / 327.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002057/0.006181, allocations: 80.81 kB / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000263/0.006444, allocations: 143.6 kB / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.006578, allocations: 83.7 kB / 328.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.063e-05/0.006609, allocations: 16 kB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.378e-05/0.006693, allocations: 35.98 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.907e-05/0.006762, allocations: 55.75 kB / 328.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.054e-05/0.006822, allocations: 63.83 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.007162, allocations: 263 kB / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.007169, allocations: 0 / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.007171, allocations: 0 / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.007179, allocations: 0 / 328.6 MB, free: 11.93 MB / 298.7 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.0007891/0.007968, allocations: 492.7 kB / 329 MB, free: 11.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.008017, allocations: 8.031 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.133e-05/0.008069, allocations: 58.73 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.008181, allocations: 28.8 kB / 329.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.008449, allocations: 205.3 kB / 329.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.612e-05/0.008475, allocations: 12.88 kB / 329.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.704e-05/0.008512, allocations: 28.38 kB / 329.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003794/0.008892, allocations: 252.2 kB / 329.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.008909, allocations: 4.188 kB / 329.6 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.008928, allocations: 12.12 kB / 329.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.925e-05/0.008957, allocations: 12.5 kB / 329.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002902/0.009248, allocations: 193.8 kB / 329.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.01027, allocations: 0.7479 MB / 330.6 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002805/0.01055, allocations: 174.5 kB / 330.8 MB, free: 9.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.01068, allocations: 96.8 kB / 330.8 MB, free: 9.492 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.73e-05/0.01077, allocations: 11.98 kB / 330.9 MB, free: 9.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.0108, allocations: 34.56 kB / 330.9 MB, free: 9.438 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.503e-06/0.0108, allocations: 0 / 330.9 MB, free: 9.438 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001395/0.0122, allocations: 0.6547 MB / 331.5 MB, free: 8.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.575e-05/0.01224, allocations: 59.41 kB / 331.6 MB, free: 8.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/0.01242, allocations: 217.7 kB / 331.8 MB, free: 8.461 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.01244, allocations: 33.7 kB / 331.9 MB, free: 8.422 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.285e-05/0.01253, allocations: 156.4 kB / 332 MB, free: 8.262 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.617e-05/0.01257, allocations: 83.23 kB / 332.1 MB, free: 8.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.205e-05/0.01264, allocations: 57.62 kB / 332.1 MB, free: 8.117 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.01274, allocations: 334.8 kB / 332.5 MB, free: 7.781 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.01286, allocations: 79.95 kB / 332.5 MB, free: 7.703 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.013, allocations: 127.4 kB / 332.7 MB, free: 7.566 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.01327, allocations: 218.3 kB / 332.9 MB, free: 7.344 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.01327, allocations: 0 / 332.9 MB, free: 7.344 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003352/0.0136, allocations: 285.3 kB / 333.2 MB, free: 7.059 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.01362, allocations: 4 kB / 333.2 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.01363, allocations: 4 kB / 333.2 MB, free: 7.051 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.01365, allocations: 0 / 333.2 MB, free: 7.051 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001888/0.01384, allocations: 63.89 kB / 333.2 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.01385, allocations: 4 kB / 333.2 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.204e-05/0.01391, allocations: 15.98 kB / 333.3 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.01392, allocations: 8.062 kB / 333.3 MB, free: 6.961 MB / 298.7 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.0001161/0.01404, allocations: 149.7 kB / 333.4 MB, free: 6.805 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.089e-05/0.01407, allocations: 19.86 kB / 333.4 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004117/0.01448, allocations: 288.2 kB / 333.7 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.01449, allocations: 0 / 333.7 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.01449, allocations: 4 kB / 333.7 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.0145, allocations: 7.922 kB / 333.7 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007019/0.0152, allocations: 0.6356 MB / 334.4 MB, free: 5.801 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.01521, allocations: 0 / 334.4 MB, free: 5.801 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.01537, allocations: 55.97 kB / 334.4 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.01537, allocations: 0 / 334.4 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.01539, allocations: 11.94 kB / 334.4 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.01539, allocations: 0 / 334.4 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.01539, allocations: 0 / 334.4 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005331/0.01592, allocations: 490.4 kB / 334.9 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.323e-05/0.016, allocations: 43.83 kB / 334.9 MB, free: 5.191 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.01603, allocations: 8 kB / 335 MB, free: 5.184 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.01615, allocations: 11.98 kB / 335 MB, free: 5.172 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.244e-05/0.01621, allocations: 19.91 kB / 335 MB, free: 5.152 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.01622, allocations: 11.98 kB / 335 MB, free: 5.141 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001036/0.01633, allocations: 153.2 kB / 335.1 MB, free: 4.988 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01633, allocations: 7.938 kB / 335.2 MB, free: 4.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002236/0.01655, allocations: 44 kB / 335.2 MB, free: 4.938 MB / 298.7 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.00138/0.01793, allocations: 1.026 MB / 336.2 MB, free: 3.883 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003728/0.0183, allocations: 208.1 kB / 336.4 MB, free: 3.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.01831, allocations: 3.938 kB / 336.4 MB, free: 3.676 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.01844, allocations: 120 kB / 336.5 MB, free: 3.559 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.01872, allocations: 24.88 kB / 336.6 MB, free: 3.535 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002328/0.02104, allocations: 2.629 MB / 339.2 MB, free: 0.793 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/0.02116, allocations: 163.1 kB / 339.4 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.805e-05/0.02125, allocations: 37.92 kB / 339.4 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.02135, allocations: 88.45 kB / 339.5 MB, free: 500 kB / 298.7 MB Notification: Performance of SimCode: time 8.71e-07/0.02135, allocations: 0 / 339.5 MB, free: 500 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01978/0.04113, allocations: 5.23 MB / 344.7 MB, free: 11.38 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.003/7.044, allocations: 6.906 kB / 344.7 MB, free: 11.38 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/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: 9.331339751370251]