Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001938/0.001938, allocations: 120.1 kB / 17.79 MB, free: 5.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002307/0.002307, allocations: 194.8 kB / 20.73 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 225.6 MB / 249.1 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 51.91 kB / 365.6 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1196, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004778/0.1244, allocations: 2.211 MB / 420 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.1261, allocations: 0.7088 MB / 420.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002702/0.1264, allocations: 7.938 kB / 420.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002563/0.1267, allocations: 47.47 kB / 420.7 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003295/0.127, allocations: 47.62 kB / 420.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004464/0.1274, allocations: 99.77 kB / 420.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004469/0.1279, allocations: 231.7 kB / 421.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002857/0.1282, allocations: 87.59 kB / 421.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002721/0.1284, allocations: 103.6 kB / 421.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.1287, allocations: 103.5 kB / 421.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.692e-05/0.1287, allocations: 20 kB / 421.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.1288, allocations: 28 kB / 421.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.1289, allocations: 67.75 kB / 421.5 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001457/0.1291, allocations: 103.3 kB / 421.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004735/0.1295, allocations: 246.8 kB / 421.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1295, allocations: 0 / 421.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1295, allocations: 0 / 421.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.1296, allocations: 3.938 kB / 421.9 MB, free: 8.496 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.00123/0.1308, allocations: 0.5533 MB / 422.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.1309, allocations: 12.03 kB / 422.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.911e-05/0.1309, allocations: 50.73 kB / 422.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.478e-05/0.131, allocations: 32.75 kB / 422.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004325/0.1314, allocations: 260.3 kB / 422.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.894e-05/0.1315, allocations: 24.56 kB / 422.8 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.271e-05/0.1315, allocations: 23.95 kB / 422.8 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005731/0.1321, allocations: 262.6 kB / 423.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.1321, allocations: 0 / 423.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/0.1322, allocations: 4 kB / 423.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-05/0.1322, allocations: 12.44 kB / 423.1 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005079/0.1327, allocations: 193.5 kB / 423.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00144/0.1341, allocations: 0.8149 MB / 424.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004061/0.1346, allocations: 170.5 kB / 424.3 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.1348, allocations: 105 kB / 424.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001345/0.1349, allocations: 89.09 kB / 424.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.135, allocations: 34.56 kB / 424.5 MB, free: 5.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.583e-06/0.135, allocations: 0 / 424.5 MB, free: 5.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001679/0.1366, allocations: 0.7264 MB / 425.2 MB, free: 4.891 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.1367, allocations: 59.34 kB / 425.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.1369, allocations: 217 kB / 425.5 MB, free: 4.598 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.137, allocations: 29.7 kB / 425.5 MB, free: 4.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.1371, allocations: 148.5 kB / 425.7 MB, free: 4.414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.669e-05/0.1372, allocations: 99.14 kB / 425.7 MB, free: 4.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.367e-05/0.1373, allocations: 45.7 kB / 425.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.1374, allocations: 342.8 kB / 426.1 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/0.1377, allocations: 83.94 kB / 426.2 MB, free: 3.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.1379, allocations: 123.4 kB / 426.3 MB, free: 3.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004619/0.1384, allocations: 216.8 kB / 426.5 MB, free: 3.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1384, allocations: 0 / 426.5 MB, free: 3.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006138/0.139, allocations: 274.6 kB / 426.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.139, allocations: 10.19 kB / 426.8 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.139, allocations: 0 / 426.8 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.139, allocations: 7.984 kB / 426.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002984/0.1393, allocations: 63.97 kB / 426.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.1393, allocations: 3.984 kB / 426.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.1395, allocations: 15.92 kB / 426.9 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.1395, allocations: 12 kB / 426.9 MB, free: 3.102 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.0001497/0.1397, allocations: 141.8 kB / 427.1 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.419e-05/0.1397, allocations: 23.86 kB / 427.1 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000658/0.1404, allocations: 295.9 kB / 427.4 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.1404, allocations: 4 kB / 427.4 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.1404, allocations: 0 / 427.4 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.1404, allocations: 3.938 kB / 427.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.1416, allocations: 0.6791 MB / 428.1 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1416, allocations: 4.031 kB / 428.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002931/0.1419, allocations: 55.91 kB / 428.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.099e-05/0.1419, allocations: 7.922 kB / 428.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.523e-05/0.1419, allocations: 11.98 kB / 428.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.1419, allocations: 3.984 kB / 428.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1419, allocations: 64 / 428.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008875/0.1428, allocations: 497.4 kB / 428.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.1429, allocations: 120.9 kB / 428.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.143, allocations: 11.94 kB / 428.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/0.1431, allocations: 7.984 kB / 428.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.451e-05/0.1432, allocations: 15.98 kB / 428.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.1432, allocations: 12 kB / 428.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001576/0.1434, allocations: 156.5 kB / 428.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1434, allocations: 4 kB / 428.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003284/0.1437, allocations: 44 kB / 429 MB, free: 0.9219 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.00126/0.1449, allocations: 1.038 MB / 430 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000549/0.1455, allocations: 207.8 kB / 430.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.1455, allocations: 8 kB / 430.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002475/0.1458, allocations: 107.8 kB / 430.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.1461, allocations: 24.44 kB / 430.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003968/0.1501, allocations: 2.708 MB / 433.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.1505, allocations: 0.7714 MB / 433.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001468/0.1507, allocations: 49.91 kB / 433.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.1508, allocations: 83.41 kB / 434 MB, free: 11.77 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.1508, allocations: 3.938 kB / 434 MB, free: 11.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03306/0.1839, allocations: 4.609 MB / 438.6 MB, free: 7.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.593/8.777, allocations: 4 kB / 438.6 MB, free: 7.227 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv. Warning: Get data of variable integrator.y from file Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv failed! Error: Could not read variable der1.y in file Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv. Warning: Get data of variable der1.y from file Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.192334203980863]