Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.001595/0.001595, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001976/0.001976, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.627/1.627, 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.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 51.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1337, allocations: 53.33 MB / 426.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003499/0.1372, allocations: 1.558 MB / 427.9 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00049/0.1376, allocations: 139.5 kB / 428 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.616e-05/0.1377, allocations: 11.94 kB / 428 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.946e-05/0.1378, allocations: 3.938 kB / 428 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.1379, allocations: 11.91 kB / 428 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002658/0.1382, allocations: 31.92 kB / 428.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001194/0.1383, allocations: 35.91 kB / 428.1 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.1384, allocations: 11.98 kB / 428.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.315e-05/0.1385, allocations: 15.94 kB / 428.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.674e-05/0.1385, allocations: 15.86 kB / 428.2 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.883e-05/0.1386, allocations: 0 / 428.2 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.442e-05/0.1386, allocations: 4 kB / 428.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.124e-05/0.1386, allocations: 15.92 kB / 428.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.051e-05/0.1387, allocations: 23.88 kB / 428.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.1388, allocations: 51.69 kB / 428.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1388, allocations: 0 / 428.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1388, allocations: 0 / 428.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1388, allocations: 0 / 428.2 MB, free: 2.867 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000547/0.1394, allocations: 371.1 kB / 428.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.1394, allocations: 8.031 kB / 428.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.496e-05/0.1395, allocations: 42.73 kB / 428.7 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.377e-05/0.1395, allocations: 8.891 kB / 428.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003463/0.1399, allocations: 192.2 kB / 428.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.1399, allocations: 8.375 kB / 428.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.098e-05/0.1399, allocations: 384 / 428.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003349/0.1402, allocations: 125.5 kB / 429 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1402, allocations: 3.938 kB / 429 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.387e-06/0.1403, allocations: 0 / 429 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.1403, allocations: 3.938 kB / 429 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.07e-05/0.1403, allocations: 19.98 kB / 429 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004305/0.1408, allocations: 253.8 kB / 429.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002384/0.141, allocations: 142.2 kB / 429.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.137e-05/0.1411, allocations: 25.78 kB / 429.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.1411, allocations: 0 / 429.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.1411, allocations: 46.42 kB / 429.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.1411, allocations: 4 kB / 429.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002787/0.1414, allocations: 73.62 kB / 429.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.384e-05/0.1415, allocations: 89.05 kB / 429.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.1416, allocations: 132.2 kB / 429.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.1417, allocations: 25.7 kB / 429.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.343e-05/0.1417, allocations: 88.14 kB / 429.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.474e-05/0.1418, allocations: 7.938 kB / 429.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-05/0.1418, allocations: 17.84 kB / 429.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.142, allocations: 314.8 kB / 430.2 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.652e-05/0.142, allocations: 11.98 kB / 430.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.329e-05/0.1421, allocations: 31.61 kB / 430.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.914e-05/0.1422, allocations: 47.38 kB / 430.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1422, allocations: 3.938 kB / 430.3 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001293/0.1423, allocations: 61.7 kB / 430.4 MB, free: 452 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.1423, allocations: 8 kB / 430.4 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1423, allocations: 0 / 430.4 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.1424, allocations: 8.109 kB / 430.4 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.724e-05/0.1424, allocations: 15.92 kB / 430.4 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.1424, allocations: 0 / 430.4 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.14e-05/0.1425, allocations: 11.95 kB / 430.4 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.936e-06/0.1425, allocations: 4 kB / 430.4 MB, free: 404 kB / 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001019/0.1426, allocations: 117.8 kB / 430.5 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.68e-05/0.1427, allocations: 45.69 kB / 430.6 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.571e-05/0.1427, allocations: 4.25 kB / 430.6 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.1427, allocations: 4 kB / 430.6 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.1427, allocations: 7.984 kB / 430.6 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1427, allocations: 3.938 kB / 430.6 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002227/0.1429, allocations: 173.5 kB / 430.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1429, allocations: 0 / 430.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.715e-05/0.143, allocations: 8 kB / 430.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.143, allocations: 0 / 430.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.143, allocations: 4 kB / 430.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.143, allocations: 0 / 430.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.143, allocations: 0 / 430.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001926/0.1432, allocations: 176.3 kB / 430.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.896e-05/0.1432, allocations: 96.91 kB / 431 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.1433, allocations: 0 / 431 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.705e-05/0.1433, allocations: 4 kB / 431 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.8e-05/0.1434, allocations: 11.92 kB / 431 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.1434, allocations: 0 / 431 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.912e-05/0.1434, allocations: 99.27 kB / 431.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1434, allocations: 4 kB / 431.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.1437, allocations: 8 kB / 431.2 MB, free: 15.53 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * 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 (4): * Single equations (assignments): 4 * 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.0005406/0.1442, allocations: 0.6937 MB / 431.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.1444, allocations: 35.91 kB / 431.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1444, allocations: 0 / 431.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.807e-05/0.1444, allocations: 12 kB / 431.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.1448, allocations: 27.7 kB / 431.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.1462, allocations: 1.324 MB / 433.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.1465, allocations: 0.6924 MB / 433.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.599e-05/0.1466, allocations: 4.422 kB / 433.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.034e-05/0.1466, allocations: 19.42 kB / 434 MB, free: 12.57 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1466, allocations: 0 / 434 MB, free: 12.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02693/0.1735, allocations: 1.472 MB / 435.4 MB, free: 11.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.151/8.325, allocations: 14.64 kB / 435.5 MB, free: 11.18 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,assignClock.u,assignClock.y,sample1.y,step.y,step.height [Calling sys.exit(0), Time elapsed: 11.392584767992957]