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.001334/0.001334, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.001375/0.001375, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.492/1.492, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001522/0.001522, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1511, allocations: 53.33 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00502/0.1562, allocations: 2.218 MB / 428.5 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.158, allocations: 0.7594 MB / 429.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.1582, allocations: 7.938 kB / 429.3 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002349/0.1585, allocations: 43.53 kB / 429.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002601/0.1587, allocations: 51.56 kB / 429.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004138/0.1591, allocations: 103.8 kB / 429.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004089/0.1595, allocations: 231.7 kB / 429.7 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002881/0.1598, allocations: 83.59 kB / 429.8 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.1601, allocations: 107.6 kB / 429.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/0.1603, allocations: 107.5 kB / 430 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.192e-05/0.1603, allocations: 16 kB / 430 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.1605, allocations: 35.98 kB / 430.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.1606, allocations: 55.77 kB / 430.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001395/0.1608, allocations: 107.3 kB / 430.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004707/0.1612, allocations: 258.7 kB / 430.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1612, allocations: 0 / 430.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1612, allocations: 3.938 kB / 430.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.1612, allocations: 0 / 430.5 MB, free: 0.6133 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.001228/0.1625, allocations: 0.5493 MB / 431 MB, free: 16 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.1625, allocations: 8.031 kB / 431 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2831/0.4456, allocations: 59.09 kB / 431.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002078/0.4458, allocations: 34.55 kB / 431.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.4462, allocations: 251.3 kB / 431.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.643e-05/0.4462, allocations: 17.22 kB / 431.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.369e-05/0.4463, allocations: 22.14 kB / 431.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005581/0.4468, allocations: 258.7 kB / 431.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.4468, allocations: 6.219 kB / 431.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.505e-05/0.4469, allocations: 6 kB / 431.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.944e-05/0.4469, allocations: 12.91 kB / 431.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004882/0.4474, allocations: 194.4 kB / 431.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.4485, allocations: 0.819 MB / 432.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.4488, allocations: 179.3 kB / 432.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/0.449, allocations: 99.5 kB / 433 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.974e-05/0.4491, allocations: 80.98 kB / 433 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.4492, allocations: 37.83 kB / 433.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.773e-06/0.4492, allocations: 0 / 433.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001352/0.4505, allocations: 0.7284 MB / 433.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.2e-05/0.4505, allocations: 57.81 kB / 433.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.4507, allocations: 214.6 kB / 434.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.4507, allocations: 30.2 kB / 434.1 MB, free: 9.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.853e-05/0.4508, allocations: 154 kB / 434.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.811e-05/0.4509, allocations: 85.12 kB / 434.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.102e-05/0.4509, allocations: 54.86 kB / 434.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.134e-05/0.451, allocations: 335.6 kB / 434.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.4512, allocations: 85.08 kB / 434.8 MB, free: 9.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.4514, allocations: 123.6 kB / 434.9 MB, free: 9.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004093/0.4518, allocations: 218.8 kB / 435.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4518, allocations: 0 / 435.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005133/0.4523, allocations: 276.6 kB / 435.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.4523, allocations: 5.875 kB / 435.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/0.4523, allocations: 0 / 435.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.4524, allocations: 5.672 kB / 435.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002801/0.4526, allocations: 63.61 kB / 435.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.4526, allocations: 5.969 kB / 435.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.4528, allocations: 19.17 kB / 435.5 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.4528, allocations: 9.375 kB / 435.5 MB, free: 9.266 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.0001052/0.4529, allocations: 145.8 kB / 435.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.8e-05/0.4529, allocations: 22.3 kB / 435.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005836/0.4535, allocations: 290.7 kB / 436 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.4535, allocations: 4.25 kB / 436 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4535, allocations: 0 / 436 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.4535, allocations: 2.344 kB / 436 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.4546, allocations: 0.6834 MB / 436.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.4546, allocations: 3.266 kB / 436.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002862/0.4549, allocations: 53.59 kB / 436.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.4549, allocations: 2.031 kB / 436.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.4549, allocations: 7.531 kB / 436.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4549, allocations: 4.625 kB / 436.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.4549, allocations: 5.094 kB / 436.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007681/0.4557, allocations: 488.7 kB / 437.2 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.993e-05/0.4558, allocations: 124.6 kB / 437.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.4558, allocations: 7.406 kB / 437.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.4559, allocations: 12.02 kB / 437.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.173e-05/0.456, allocations: 18.83 kB / 437.4 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.456, allocations: 13.09 kB / 437.4 MB, free: 8.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001268/0.4561, allocations: 154.9 kB / 437.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4561, allocations: 0 / 437.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003134/0.4565, allocations: 46 kB / 437.6 MB, free: 8.059 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.0009746/0.4574, allocations: 1.035 MB / 438.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005313/0.458, allocations: 217.1 kB / 438.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.458, allocations: 1.188 kB / 438.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002323/0.4582, allocations: 108.2 kB / 438.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.4585, allocations: 26.34 kB / 439 MB, free: 7.176 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003064/0.4616, allocations: 2.695 MB / 441.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/0.4618, allocations: 0.7665 MB / 442.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.462, allocations: 50.28 kB / 442.5 MB, free: 4.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.4621, allocations: 83.73 kB / 442.5 MB, free: 4.562 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4621, allocations: 0 / 442.5 MB, free: 4.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03542/0.4975, allocations: 4.556 MB / 447.1 MB, free: 3.973 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.301/8.798, allocations: 1.656 kB / 447.1 MB, free: 3.973 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.896606324997265]