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.001553/0.001553, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 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.00167/0.00167, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 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 1.519/1.519, allocations: 230.5 MB / 254 MB, free: 15.16 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001944/0.001944, allocations: 63.89 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1075, allocations: 53.37 MB / 426.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00391/0.1114, allocations: 2.224 MB / 428.6 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.113, allocations: 0.7594 MB / 429.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002235/0.1132, allocations: 7.938 kB / 429.3 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002194/0.1134, allocations: 47.47 kB / 429.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002651/0.1137, allocations: 35.66 kB / 429.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003744/0.1141, allocations: 107.8 kB / 429.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004057/0.1145, allocations: 239.7 kB / 429.8 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002449/0.1147, allocations: 83.59 kB / 429.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002638/0.115, allocations: 103.6 kB / 429.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.1152, allocations: 111.5 kB / 430.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.315e-05/0.1152, allocations: 19.94 kB / 430.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.1153, allocations: 32 kB / 430.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.554e-05/0.1154, allocations: 59.75 kB / 430.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.1155, allocations: 111.3 kB / 430.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003883/0.1159, allocations: 254.7 kB / 430.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1159, allocations: 0 / 430.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1159, allocations: 0 / 430.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.1159, allocations: 0 / 430.5 MB, free: 0.5273 MB / 350.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.001061/0.117, allocations: 0.5495 MB / 431.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.117, allocations: 12.03 kB / 431.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.887e-05/0.1171, allocations: 54.73 kB / 431.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.1173, allocations: 32.75 kB / 431.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.1176, allocations: 251.9 kB / 431.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/0.1176, allocations: 20.81 kB / 431.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.985e-05/0.1177, allocations: 20.38 kB / 431.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005203/0.1182, allocations: 262.5 kB / 431.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.1182, allocations: 7.938 kB / 431.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.1182, allocations: 4 kB / 431.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.298e-05/0.1183, allocations: 16.44 kB / 431.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004769/0.1187, allocations: 189.5 kB / 431.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.12, allocations: 0.8265 MB / 432.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000386/0.1204, allocations: 176.2 kB / 432.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.1206, allocations: 96.8 kB / 433 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001186/0.1207, allocations: 85.48 kB / 433.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.1208, allocations: 38.5 kB / 433.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.443e-06/0.1208, allocations: 0 / 433.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001629/0.1224, allocations: 0.7394 MB / 433.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.1224, allocations: 55.41 kB / 433.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002417/0.1227, allocations: 209 kB / 434.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.1227, allocations: 33.7 kB / 434.2 MB, free: 12.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1228, allocations: 144.5 kB / 434.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.476e-05/0.1229, allocations: 91.27 kB / 434.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.33e-05/0.123, allocations: 49.69 kB / 434.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.1232, allocations: 334.8 kB / 434.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002335/0.1234, allocations: 83.95 kB / 434.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002513/0.1237, allocations: 131.2 kB / 435 MB, free: 11.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004546/0.1241, allocations: 211.4 kB / 435.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1241, allocations: 0 / 435.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006087/0.1247, allocations: 280 kB / 435.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.1247, allocations: 10.5 kB / 435.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1248, allocations: 0 / 435.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.1248, allocations: 4 kB / 435.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003077/0.1251, allocations: 67.83 kB / 435.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.1251, allocations: 4.062 kB / 435.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.1252, allocations: 15.98 kB / 435.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.1253, allocations: 8 kB / 435.6 MB, free: 11.14 MB / 366.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.0001574/0.1254, allocations: 145.7 kB / 435.7 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.489e-05/0.1255, allocations: 23.86 kB / 435.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006458/0.1261, allocations: 299.1 kB / 436 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.1261, allocations: 4 kB / 436 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1261, allocations: 0 / 436 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.1261, allocations: 3.984 kB / 436 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.1273, allocations: 0.6791 MB / 436.7 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.1273, allocations: 0 / 436.7 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000286/0.1276, allocations: 63.92 kB / 436.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.1276, allocations: 0 / 436.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.411e-05/0.1276, allocations: 11.94 kB / 436.8 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.1276, allocations: 0 / 436.8 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.1276, allocations: 0 / 436.8 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008759/0.1285, allocations: 494 kB / 437.3 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.1286, allocations: 121 kB / 437.4 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.64e-05/0.1286, allocations: 7.938 kB / 437.4 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.1288, allocations: 15.98 kB / 437.4 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.165e-05/0.1289, allocations: 11.98 kB / 437.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.1289, allocations: 11.98 kB / 437.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001546/0.129, allocations: 152.5 kB / 437.6 MB, free: 9.012 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.129, allocations: 4 kB / 437.6 MB, free: 9.008 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003079/0.1293, allocations: 44 kB / 437.6 MB, free: 8.965 MB / 366.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.00126/0.1306, allocations: 1.034 MB / 438.7 MB, free: 7.902 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005516/0.1312, allocations: 215.8 kB / 438.9 MB, free: 7.691 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1312, allocations: 0 / 438.9 MB, free: 7.691 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002434/0.1314, allocations: 107.8 kB / 439 MB, free: 7.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.1317, allocations: 20.44 kB / 439 MB, free: 7.566 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00381/0.1355, allocations: 2.707 MB / 441.7 MB, free: 4.754 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004229/0.136, allocations: 0.7677 MB / 442.5 MB, free: 3.957 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001405/0.1361, allocations: 53.89 kB / 442.5 MB, free: 3.906 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.1362, allocations: 79.41 kB / 442.6 MB, free: 3.828 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1362, allocations: 0 / 442.6 MB, free: 3.828 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2226/0.3589, allocations: 4.522 MB / 447.1 MB, free: 24.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.986/8.345, allocations: 12.19 kB / 447.1 MB, free: 24.29 MB / 366.1 MB " [Timeout remaining time 652] (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/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_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: 11.51620555203408]