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: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001055/0.001055, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00107/0.00107, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2209/0.2209, allocations: 46.11 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 79.67 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1198, allocations: 62.45 MB / 481.5 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003937/0.1238, allocations: 1.905 MB / 483.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.1257, allocations: 1.179 MB / 484.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.1259, allocations: 0 / 484.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006655/0.1265, allocations: 183.5 kB / 484.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000465/0.127, allocations: 179.2 kB / 484.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004688/0.1275, allocations: 159.6 kB / 485 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003984/0.1279, allocations: 291.3 kB / 485.3 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.128, allocations: 33.67 kB / 485.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001955/0.1282, allocations: 111.6 kB / 485.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001733/0.1284, allocations: 119.6 kB / 485.6 MB, free: 392 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.764e-05/0.1285, allocations: 20 kB / 485.6 MB, free: 372 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00016/0.1286, allocations: 63.91 kB / 485.7 MB, free: 308 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.995e-05/0.1288, allocations: 67.81 kB / 485.7 MB, free: 240 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.1289, allocations: 107.4 kB / 485.8 MB, free: 132 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.1293, allocations: 283.2 kB / 486.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1293, allocations: 0 / 486.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1293, allocations: 0 / 486.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.1293, allocations: 0 / 486.1 MB, free: 15.85 MB / 366.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.001019/0.1303, allocations: 0.6648 MB / 486.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1304, allocations: 13.11 kB / 486.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.201e-05/0.1305, allocations: 28.66 kB / 486.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003992/0.1309, allocations: 283.5 kB / 487.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.131, allocations: 93.67 kB / 487.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.673e-05/0.131, allocations: 19.94 kB / 487.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003222/0.1314, allocations: 157 kB / 487.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1314, allocations: 4 kB / 487.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/0.1314, allocations: 4 kB / 487.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1314, allocations: 0 / 487.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002323/0.1316, allocations: 95.86 kB / 487.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008271/0.1325, allocations: 0.6025 MB / 488.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003249/0.1328, allocations: 175.9 kB / 488.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.133, allocations: 98.53 kB / 488.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.133, allocations: 0 / 488.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004246/0.1335, allocations: 445 kB / 488.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 3.036e-06/0.1335, allocations: 112 / 488.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008025/0.1343, allocations: 442.5 kB / 489.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.1344, allocations: 221.6 kB / 489.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000338/0.1347, allocations: 326.5 kB / 489.7 MB, free: 11.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.1348, allocations: 37.69 kB / 489.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.558e-05/0.1349, allocations: 128.7 kB / 489.9 MB, free: 11.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.134e-05/0.1349, allocations: 55.34 kB / 490 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.468e-05/0.135, allocations: 49.7 kB / 490 MB, free: 11.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.1351, allocations: 334.8 kB / 490.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.1353, allocations: 59.97 kB / 490.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.1355, allocations: 154.1 kB / 490.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000366/0.1359, allocations: 363 kB / 490.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1359, allocations: 0 / 490.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005302/0.1364, allocations: 346.3 kB / 491.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.282e-05/0.1365, allocations: 101.1 kB / 491.3 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.1365, allocations: 4 kB / 491.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.1365, allocations: 7.938 kB / 491.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.1366, allocations: 23.92 kB / 491.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.1367, allocations: 4 kB / 491.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/0.1368, allocations: 23.84 kB / 491.4 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.1368, allocations: 11.98 kB / 491.4 MB, free: 9.984 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.0002247/0.1371, allocations: 269.5 kB / 491.7 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.542e-05/0.1371, allocations: 35.66 kB / 491.7 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.897e-05/0.1372, allocations: 25.86 kB / 491.7 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1372, allocations: 4 kB / 491.7 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1372, allocations: 0 / 491.7 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1372, allocations: 3.984 kB / 491.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002761/0.1375, allocations: 289.4 kB / 492 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1375, allocations: 0 / 492 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.508e-05/0.1376, allocations: 15.86 kB / 492 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.1376, allocations: 4 kB / 492 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.1376, allocations: 12 kB / 492 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.1376, allocations: 8 kB / 492.1 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1376, allocations: 3.984 kB / 492.1 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006264/0.1383, allocations: 439.4 kB / 492.5 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.271e-05/0.1383, allocations: 96.77 kB / 492.6 MB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.636e-05/0.1384, allocations: 20 kB / 492.6 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.1385, allocations: 19.92 kB / 492.6 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.258e-05/0.1386, allocations: 27.91 kB / 492.7 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.687e-05/0.1386, allocations: 8 kB / 492.7 MB, free: 8.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002285/0.1389, allocations: 241.9 kB / 492.9 MB, free: 8.355 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1389, allocations: 0 / 492.9 MB, free: 8.355 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003217/0.1392, allocations: 67.84 kB / 493 MB, free: 8.289 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.0009967/0.1402, allocations: 427 kB / 493.4 MB, free: 8.004 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005687/0.1408, allocations: 401 kB / 493.8 MB, free: 7.578 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1408, allocations: 0 / 493.8 MB, free: 7.578 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003592/0.1412, allocations: 350 kB / 494.1 MB, free: 7.199 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003465/0.1415, allocations: 48.91 kB / 494.2 MB, free: 7.152 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008074/0.1424, allocations: 453.3 kB / 494.6 MB, free: 6.676 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.1427, allocations: 0.7517 MB / 495.4 MB, free: 5.895 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.374e-05/0.1428, allocations: 29.84 kB / 495.4 MB, free: 5.867 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.309e-05/0.1428, allocations: 23.44 kB / 495.4 MB, free: 5.844 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1428, allocations: 0 / 495.4 MB, free: 5.844 MB / 366.1 MB Notification: Performance of Templates: time 0.007499/0.1503, allocations: 3.488 MB / 498.9 MB, free: 2.375 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat","/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