Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.001263/0.001263, 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.00134/0.00134, 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.453/1.453, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 47.94 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.13, allocations: 53.33 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003436/0.1334, allocations: 1.512 MB / 427.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005068/0.1339, allocations: 143.5 kB / 428 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.104e-05/0.134, allocations: 0 / 428 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.268e-05/0.1341, allocations: 3.938 kB / 428 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000194/0.1343, allocations: 15.92 kB / 428 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003693/0.1347, allocations: 35.84 kB / 428 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001416/0.1348, allocations: 27.92 kB / 428 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.1349, allocations: 4 kB / 428 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.265e-05/0.135, allocations: 15.92 kB / 428.1 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.589e-05/0.1351, allocations: 15.92 kB / 428.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.511e-05/0.1351, allocations: 4 kB / 428.1 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.197e-05/0.1351, allocations: 0 / 428.1 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.045e-05/0.1352, allocations: 15.92 kB / 428.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.258e-05/0.1352, allocations: 15.88 kB / 428.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001714/0.1354, allocations: 51.62 kB / 428.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.1354, allocations: 8 kB / 428.2 MB, free: 2.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.1354, allocations: 0 / 428.2 MB, free: 2.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1354, allocations: 0 / 428.2 MB, free: 2.922 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0007269/0.1362, allocations: 355.2 kB / 428.5 MB, free: 2.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.464e-05/0.1362, allocations: 12.03 kB / 428.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.343e-05/0.1363, allocations: 38.75 kB / 428.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.942e-05/0.1363, allocations: 8.891 kB / 428.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/0.1367, allocations: 188.2 kB / 428.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.1367, allocations: 8.375 kB / 428.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.514e-05/0.1367, allocations: 4.375 kB / 428.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.137, allocations: 85.61 kB / 428.8 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.137, allocations: 3.938 kB / 428.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.137, allocations: 0 / 428.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.137, allocations: 3.984 kB / 428.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.1371, allocations: 23.98 kB / 428.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000453/0.1376, allocations: 249.8 kB / 429.1 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001239/0.1377, allocations: 53.08 kB / 429.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.482e-05/0.1378, allocations: 17.78 kB / 429.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.1378, allocations: 4 kB / 429.2 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/0.1379, allocations: 38.5 kB / 429.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.493e-06/0.1379, allocations: 0 / 429.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003365/0.1382, allocations: 57.67 kB / 429.3 MB, free: 1.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.986e-05/0.1383, allocations: 85.3 kB / 429.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.1385, allocations: 142 kB / 429.5 MB, free: 1.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.1385, allocations: 25.7 kB / 429.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.986e-05/0.1386, allocations: 88.12 kB / 429.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.215e-05/0.1386, allocations: 0 / 429.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.977e-05/0.1387, allocations: 13.72 kB / 429.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.1389, allocations: 318.8 kB / 429.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.919e-05/0.1389, allocations: 7.984 kB / 430 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.221e-05/0.139, allocations: 17.72 kB / 430 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001166/0.1391, allocations: 33.64 kB / 430 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.1391, allocations: 3.938 kB / 430 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001716/0.1393, allocations: 49.73 kB / 430.1 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.1393, allocations: 12.03 kB / 430.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.1393, allocations: 3.984 kB / 430.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.1393, allocations: 0 / 430.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.758e-05/0.1394, allocations: 4 kB / 430.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.1394, allocations: 0 / 430.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.547e-05/0.1395, allocations: 7.938 kB / 430.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.1395, allocations: 3.938 kB / 430.1 MB, free: 0.7109 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001465/0.1396, allocations: 125.7 kB / 430.2 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.821e-05/0.1397, allocations: 41.66 kB / 430.3 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.744e-05/0.1398, allocations: 11.88 kB / 430.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1398, allocations: 0 / 430.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1398, allocations: 0 / 430.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.1398, allocations: 3.984 kB / 430.3 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002697/0.1401, allocations: 161.6 kB / 430.4 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1401, allocations: 4 kB / 430.4 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.575e-05/0.1401, allocations: 11.98 kB / 430.4 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1401, allocations: 0 / 430.4 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.1401, allocations: 0 / 430.4 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1401, allocations: 4.031 kB / 430.4 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.1401, allocations: 4 kB / 430.5 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002307/0.1404, allocations: 156.3 kB / 430.6 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.1405, allocations: 89.05 kB / 430.7 MB, free: 0 / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.1405, allocations: 0 / 430.7 MB, free: 0 / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.99e-05/0.1406, allocations: 8.125 kB / 430.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.293e-05/0.1406, allocations: 11.95 kB / 430.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.1406, allocations: 0 / 430.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.573e-05/0.1407, allocations: 101.5 kB / 430.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1407, allocations: 0 / 430.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002222/0.141, allocations: 8 kB / 430.8 MB, free: 15.87 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: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0005781/0.1415, allocations: 0.6897 MB / 431.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000139/0.1417, allocations: 23.98 kB / 431.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1417, allocations: 0 / 431.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.398e-05/0.1417, allocations: 7.938 kB / 431.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003365/0.142, allocations: 16.02 kB / 431.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.1436, allocations: 1.272 MB / 432.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.144, allocations: 0.6923 MB / 433.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.964e-05/0.144, allocations: 0 / 433.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.083e-05/0.1441, allocations: 18.22 kB / 433.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1441, allocations: 0 / 433.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02587/0.1699, allocations: 1.388 MB / 434.9 MB, free: 11.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.84/8.01, allocations: 8.062 kB / 434.9 MB, free: 11.75 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_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_IntegerSignals_SampleClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y Variables in the result:time,step.startTime,sample1.y,step.y,periodicClock.factor,periodicClock.resolution [Calling sys.exit(0), Time elapsed: 10.686025783012155]