Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.002428/0.002428, allocations: 124 kB / 17.79 MB, free: 5.266 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.002589/0.002589, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.679/1.679, 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.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 55.91 kB / 365.7 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.131, allocations: 52.14 MB / 417.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.00315/0.1341, allocations: 1.563 MB / 419.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004246/0.1346, allocations: 143.5 kB / 419.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.221e-05/0.1347, allocations: 4 kB / 419.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.568e-05/0.1347, allocations: 11.92 kB / 419.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.1349, allocations: 3.938 kB / 419.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003041/0.1352, allocations: 43.83 kB / 419.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.1353, allocations: 31.92 kB / 419.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.1355, allocations: 8 kB / 419.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.478e-05/0.1355, allocations: 19.92 kB / 419.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.654e-05/0.1356, allocations: 7.875 kB / 419.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.1356, allocations: 4 kB / 419.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.713e-05/0.1356, allocations: 4 kB / 419.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.931e-05/0.1357, allocations: 11.98 kB / 419.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.6e-05/0.1357, allocations: 27.81 kB / 419.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001701/0.1359, allocations: 47.75 kB / 419.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.373e-06/0.1359, allocations: 0 / 419.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.048e-06/0.1359, allocations: 3.938 kB / 419.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.1359, allocations: 3.984 kB / 419.7 MB, free: 10.64 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.0008507/0.1368, allocations: 371.1 kB / 420.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.967e-05/0.1369, allocations: 8.031 kB / 420.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.106e-05/0.1369, allocations: 38.75 kB / 420.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.578e-05/0.137, allocations: 8.891 kB / 420.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.1374, allocations: 196.2 kB / 420.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.1374, allocations: 8.375 kB / 420.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.1374, allocations: 384 / 420.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004596/0.1379, allocations: 117.5 kB / 420.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.1379, allocations: 7.938 kB / 420.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.1379, allocations: 0 / 420.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.1379, allocations: 0 / 420.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.509e-05/0.138, allocations: 23.92 kB / 420.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005535/0.1386, allocations: 257.8 kB / 420.7 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003376/0.1389, allocations: 142.2 kB / 420.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.515e-05/0.139, allocations: 29.77 kB / 420.9 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.139, allocations: 0 / 420.9 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.139, allocations: 30.56 kB / 420.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.139, allocations: 0 / 420.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003296/0.1394, allocations: 81.56 kB / 421 MB, free: 9.125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.544e-05/0.1395, allocations: 85.11 kB / 421.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.1396, allocations: 128.4 kB / 421.2 MB, free: 8.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.1396, allocations: 29.7 kB / 421.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.185e-05/0.1397, allocations: 88.12 kB / 421.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.1397, allocations: 4 kB / 421.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/0.1398, allocations: 25.73 kB / 421.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.14, allocations: 322.8 kB / 421.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.073e-05/0.14, allocations: 8 kB / 421.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.498e-05/0.1401, allocations: 35.59 kB / 421.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.292e-05/0.1402, allocations: 47.36 kB / 421.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1402, allocations: 7.938 kB / 421.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001273/0.1403, allocations: 57.62 kB / 421.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1403, allocations: 4 kB / 421.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1403, allocations: 4 kB / 421.8 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.1403, allocations: 128 / 421.8 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.407e-05/0.1404, allocations: 15.98 kB / 421.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.1404, allocations: 0 / 421.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.405e-05/0.1404, allocations: 4 kB / 421.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.1404, allocations: 0 / 421.9 MB, free: 8.191 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: 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.0001094/0.1405, allocations: 130.4 kB / 422 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.262e-05/0.1406, allocations: 49.66 kB / 422 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.042e-05/0.1407, allocations: 8.234 kB / 422 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1407, allocations: 0 / 422 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1407, allocations: 8 kB / 422.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.1407, allocations: 3.938 kB / 422.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002075/0.1409, allocations: 169.6 kB / 422.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1409, allocations: 0 / 422.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.06e-05/0.1409, allocations: 12 kB / 422.2 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1409, allocations: 0 / 422.2 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.141, allocations: 4 kB / 422.2 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.141, allocations: 3.984 kB / 422.2 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.141, allocations: 3.938 kB / 422.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002292/0.1412, allocations: 172.3 kB / 422.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.04e-05/0.1413, allocations: 92.98 kB / 422.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.1413, allocations: 0 / 422.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.024e-05/0.1413, allocations: 3.984 kB / 422.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.983e-05/0.1414, allocations: 4 kB / 422.5 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.961e-06/0.1414, allocations: 4 kB / 422.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.8e-05/0.1415, allocations: 99.27 kB / 422.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1415, allocations: 4 kB / 422.6 MB, free: 7.324 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002282/0.1417, allocations: 8 kB / 422.6 MB, free: 7.316 MB / 350.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.0005873/0.1423, allocations: 0.7091 MB / 423.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001556/0.1424, allocations: 31.92 kB / 423.4 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1424, allocations: 0 / 423.4 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.718e-05/0.1425, allocations: 8 kB / 423.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003498/0.1428, allocations: 22.41 kB / 423.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/0.1443, allocations: 1.319 MB / 424.7 MB, free: 5.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003565/0.1446, allocations: 0.6961 MB / 425.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.932e-05/0.1447, allocations: 4 kB / 425.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.422e-05/0.1447, allocations: 15.44 kB / 425.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1447, allocations: 0 / 425.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.1722, allocations: 1.489 MB / 426.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.442/8.614, allocations: 11.91 kB / 426.9 MB, free: 2.953 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.496943189296871]