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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001262/0.001262, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9244/0.9244, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.552e-05/2.765e-05, allocations: 2.281 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002542/0.00257, allocations: 2.11 MB / 326.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.003661, allocations: 0.7166 MB / 327.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001388/0.0038, allocations: 7.938 kB / 327.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001675/0.003967, allocations: 51.45 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001809/0.004148, allocations: 47.53 kB / 327.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.004434, allocations: 99.75 kB / 327.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002612/0.004696, allocations: 247.5 kB / 327.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/0.004871, allocations: 75.78 kB / 327.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.005077, allocations: 139.7 kB / 328 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.005183, allocations: 75.77 kB / 328.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.404e-05/0.005207, allocations: 20 kB / 328.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.09e-05/0.005278, allocations: 31.98 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.722e-05/0.005335, allocations: 59.75 kB / 328.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.444e-05/0.00539, allocations: 71.77 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000249/0.005639, allocations: 259 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.005642, allocations: 0 / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.005643, allocations: 0 / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.005648, allocations: 3.984 kB / 328.5 MB, free: 11.86 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.0006642/0.006312, allocations: 481.4 kB / 329 MB, free: 11.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.006353, allocations: 15.98 kB / 329 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.774e-05/0.006401, allocations: 58.72 kB / 329 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.006503, allocations: 28.8 kB / 329.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.006729, allocations: 205.4 kB / 329.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.006749, allocations: 16.88 kB / 329.3 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.006778, allocations: 16.38 kB / 329.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002934/0.007071, allocations: 260.1 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.007085, allocations: 4.188 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.007101, allocations: 12.12 kB / 329.6 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.066e-05/0.007122, allocations: 12.48 kB / 329.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002571/0.007379, allocations: 193.9 kB / 329.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000754/0.008133, allocations: 0.7401 MB / 330.5 MB, free: 9.711 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002342/0.008367, allocations: 185.4 kB / 330.7 MB, free: 9.523 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.008482, allocations: 104.8 kB / 330.8 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.872e-05/0.008541, allocations: 4 kB / 330.8 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.008561, allocations: 34.5 kB / 330.8 MB, free: 9.371 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.323e-06/0.008562, allocations: 0 / 330.8 MB, free: 9.371 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.000884/0.009446, allocations: 0.6686 MB / 331.5 MB, free: 8.668 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/0.009474, allocations: 51.41 kB / 331.6 MB, free: 8.605 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.009729, allocations: 217.8 kB / 331.8 MB, free: 8.387 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.009745, allocations: 29.7 kB / 331.8 MB, free: 8.352 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.999e-05/0.009815, allocations: 148.5 kB / 331.9 MB, free: 8.199 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.337e-05/0.009859, allocations: 91.22 kB / 332 MB, free: 8.109 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.167e-05/0.00991, allocations: 45.7 kB / 332.1 MB, free: 8.059 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.9e-05/0.009999, allocations: 334.8 kB / 332.4 MB, free: 7.723 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.01011, allocations: 83.94 kB / 332.5 MB, free: 7.641 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.01023, allocations: 115.4 kB / 332.6 MB, free: 7.516 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002435/0.01048, allocations: 227.1 kB / 332.8 MB, free: 7.281 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.01048, allocations: 0 / 332.8 MB, free: 7.281 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002953/0.01077, allocations: 274.4 kB / 333.1 MB, free: 7.008 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.01079, allocations: 7.938 kB / 333.1 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.01079, allocations: 0 / 333.1 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.01081, allocations: 12.05 kB / 333.1 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.01096, allocations: 55.97 kB / 333.2 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.01097, allocations: 15.91 kB / 333.2 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.857e-05/0.01103, allocations: 11.98 kB / 333.2 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.01104, allocations: 8 kB / 333.2 MB, free: 6.898 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 9.549e-05/0.01114, allocations: 145.8 kB / 333.3 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.733e-05/0.01116, allocations: 23.86 kB / 333.4 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003625/0.01153, allocations: 291.2 kB / 333.6 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.01153, allocations: 4 kB / 333.7 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.01153, allocations: 0 / 333.7 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.01154, allocations: 0 / 333.7 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005978/0.01213, allocations: 0.6356 MB / 334.3 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.01214, allocations: 0 / 334.3 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.01228, allocations: 59.95 kB / 334.3 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.01228, allocations: 15.97 kB / 334.4 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.0123, allocations: 4 kB / 334.4 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.0123, allocations: 4 kB / 334.4 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.0123, allocations: 0 / 334.4 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004567/0.01276, allocations: 490 kB / 334.8 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.049e-05/0.01281, allocations: 43.83 kB / 334.9 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.01283, allocations: 4 kB / 334.9 MB, free: 5.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.832e-05/0.0129, allocations: 15.98 kB / 334.9 MB, free: 5.098 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.114e-05/0.01294, allocations: 23.91 kB / 334.9 MB, free: 5.074 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.01295, allocations: 8 kB / 334.9 MB, free: 5.066 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.791e-05/0.01303, allocations: 157.2 kB / 335.1 MB, free: 4.914 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01303, allocations: 0 / 335.1 MB, free: 4.914 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002009/0.01324, allocations: 48 kB / 335.1 MB, free: 4.867 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.0006738/0.01391, allocations: 1.015 MB / 336.2 MB, free: 3.824 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000296/0.0142, allocations: 227.2 kB / 336.4 MB, free: 3.605 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.01421, allocations: 0 / 336.4 MB, free: 3.605 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.01433, allocations: 103.9 kB / 336.5 MB, free: 3.504 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.01455, allocations: 34.86 kB / 336.5 MB, free: 3.477 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.01679, allocations: 2.617 MB / 339.1 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.01691, allocations: 163.1 kB / 339.3 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.753e-05/0.017, allocations: 49.89 kB / 339.3 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.0171, allocations: 84.47 kB / 339.4 MB, free: 440 kB / 298.7 MB Notification: Performance of SimCode: time 8.51e-07/0.01711, allocations: 4 kB / 339.4 MB, free: 436 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01947/0.03657, allocations: 5.235 MB / 344.7 MB, free: 11.28 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.03/7.067, allocations: 8.391 kB / 344.7 MB, free: 11.27 MB / 314.7 MB " [Timeout remaining time 653] (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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.csv. Warning: Get data of variable integrator.y from file Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.csv failed! Error: Could not read variable der1.y in file Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.csv. Warning: Get data of variable der1.y from file Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.30120899900794]