Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001068/0.001068, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001111/0.001111, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2126/0.2126, allocations: 46.09 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 79.94 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1174, allocations: 62.44 MB / 480.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003553/0.121, allocations: 1.92 MB / 482 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001919/0.1229, allocations: 1.177 MB / 483.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.1231, allocations: 0 / 483.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007008/0.1238, allocations: 191.4 kB / 483.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004525/0.1242, allocations: 167.4 kB / 483.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000443/0.1247, allocations: 162.7 kB / 483.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003609/0.1251, allocations: 283.3 kB / 484 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.1252, allocations: 33.66 kB / 484 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.1254, allocations: 111.6 kB / 484.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001599/0.1256, allocations: 115.6 kB / 484.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.74e-05/0.1256, allocations: 23.94 kB / 484.3 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001546/0.1258, allocations: 59.97 kB / 484.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.552e-05/0.1259, allocations: 67.77 kB / 484.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.126, allocations: 111.4 kB / 484.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003339/0.1263, allocations: 275.4 kB / 484.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1263, allocations: 0 / 484.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1264, allocations: 0 / 484.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.1264, allocations: 8 kB / 484.8 MB, free: 0.5234 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.000977/0.1274, allocations: 0.6533 MB / 485.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.1274, allocations: 12.03 kB / 485.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.904e-05/0.1275, allocations: 42.73 kB / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.501e-05/0.1275, allocations: 32.56 kB / 485.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003575/0.1279, allocations: 291.6 kB / 485.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.82e-05/0.128, allocations: 93.42 kB / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.128, allocations: 12 kB / 485.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003159/0.1284, allocations: 164.5 kB / 486.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.1284, allocations: 0 / 486.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/0.1284, allocations: 11.98 kB / 486.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.1284, allocations: 4 kB / 486.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002408/0.1287, allocations: 91.86 kB / 486.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008051/0.1295, allocations: 0.6064 MB / 486.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003453/0.1298, allocations: 171.9 kB / 487 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.13, allocations: 98.48 kB / 487 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.1301, allocations: 3.938 kB / 487.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004443/0.1305, allocations: 433.1 kB / 487.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.1305, allocations: 4 kB / 487.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008452/0.1314, allocations: 442.2 kB / 487.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/0.1315, allocations: 225.6 kB / 488.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003763/0.1319, allocations: 330.5 kB / 488.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.004e-05/0.132, allocations: 33.7 kB / 488.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.179e-05/0.1321, allocations: 128.7 kB / 488.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.1321, allocations: 55.34 kB / 488.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.922e-05/0.1322, allocations: 45.7 kB / 488.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.1323, allocations: 342.8 kB / 489 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.1325, allocations: 55.97 kB / 489.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.1327, allocations: 150.5 kB / 489.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003899/0.1331, allocations: 358.6 kB / 489.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1331, allocations: 0 / 489.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005258/0.1336, allocations: 350.1 kB / 489.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.148e-05/0.1337, allocations: 99.75 kB / 490 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.1337, allocations: 4 kB / 490 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.1338, allocations: 0 / 490 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.1339, allocations: 23.92 kB / 490.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.1339, allocations: 4 kB / 490.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001364/0.134, allocations: 32.42 kB / 490.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.1341, allocations: 12 kB / 490.1 MB, free: 10.61 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0002246/0.1343, allocations: 269.4 kB / 490.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.446e-05/0.1344, allocations: 35.66 kB / 490.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.242e-05/0.1344, allocations: 25.7 kB / 490.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.1344, allocations: 0 / 490.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.1344, allocations: 4 kB / 490.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.1344, allocations: 11.92 kB / 490.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002541/0.1347, allocations: 293.5 kB / 490.7 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.1347, allocations: 3.938 kB / 490.7 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.038e-05/0.1347, allocations: 7.938 kB / 490.7 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1348, allocations: 0 / 490.7 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.1348, allocations: 8 kB / 490.8 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1348, allocations: 0 / 490.8 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1348, allocations: 4 kB / 490.8 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000622/0.1354, allocations: 443.4 kB / 491.2 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.101e-05/0.1355, allocations: 112.8 kB / 491.3 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.235e-05/0.1356, allocations: 8 kB / 491.3 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.1357, allocations: 19.98 kB / 491.3 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.211e-05/0.1358, allocations: 27.89 kB / 491.4 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.1358, allocations: 16 kB / 491.4 MB, free: 9.211 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000222/0.136, allocations: 249.9 kB / 491.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.136, allocations: 0 / 491.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003191/0.1364, allocations: 60 kB / 491.7 MB, free: 8.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.001741/0.1381, allocations: 1.288 MB / 493 MB, free: 7.707 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005701/0.1387, allocations: 398 kB / 493.4 MB, free: 7.281 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1387, allocations: 0 / 493.4 MB, free: 7.281 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000349/0.1391, allocations: 350.6 kB / 493.7 MB, free: 6.902 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.1394, allocations: 58.38 kB / 493.8 MB, free: 6.852 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003454/0.1429, allocations: 2.86 MB / 496.6 MB, free: 3.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.1432, allocations: 0.7479 MB / 497.4 MB, free: 3.047 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.1433, allocations: 33.53 kB / 497.4 MB, free: 3.016 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.1434, allocations: 71.41 kB / 497.5 MB, free: 2.945 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1434, allocations: 0 / 497.5 MB, free: 2.945 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02341/0.1669, allocations: 6.123 MB / 0.4918 GB, free: 12.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.497/7.664, allocations: 11.78 kB / 0.4918 GB, free: 12.87 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches