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.001696/0.001696, allocations: 113.9 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001837/0.001837, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 246.4 MB, free: 9.102 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2164/0.2164, allocations: 46.11 MB / 343.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 76.81 kB / 417.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1088, allocations: 62.45 MB / 479.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003804/0.1126, allocations: 1.967 MB / 481.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.1146, allocations: 1.154 MB / 482.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001543/0.1148, allocations: 7.875 kB / 482.7 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006899/0.1155, allocations: 175.6 kB / 482.9 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004603/0.116, allocations: 151.5 kB / 483 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004788/0.1165, allocations: 151.7 kB / 483.2 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000449/0.1169, allocations: 283.3 kB / 483.5 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.1171, allocations: 25.69 kB / 483.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002271/0.1173, allocations: 119.7 kB / 483.6 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/0.1175, allocations: 115.5 kB / 483.7 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.932e-05/0.1176, allocations: 23.94 kB / 483.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.1178, allocations: 63.97 kB / 483.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.1179, allocations: 63.81 kB / 483.9 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.1181, allocations: 111.4 kB / 484 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004539/0.1185, allocations: 283.3 kB / 484.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1186, allocations: 0 / 484.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1186, allocations: 0 / 484.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.808e-06/0.1186, allocations: 4 kB / 484.3 MB, free: 0.8203 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.001183/0.1198, allocations: 0.6572 MB / 484.9 MB, free: 92 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.155e-05/0.1198, allocations: 8.031 kB / 484.9 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.481e-05/0.1199, allocations: 50.73 kB / 485 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.12, allocations: 32.61 kB / 485 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/0.1204, allocations: 275.6 kB / 485.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/0.1206, allocations: 101.4 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.032e-05/0.1206, allocations: 20 kB / 485.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003362/0.1209, allocations: 156 kB / 485.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.121, allocations: 3.984 kB / 485.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.121, allocations: 4 kB / 485.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.121, allocations: 4 kB / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002342/0.1212, allocations: 87.94 kB / 485.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008556/0.1221, allocations: 0.6102 MB / 486.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003601/0.1225, allocations: 179.9 kB / 486.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.1227, allocations: 90.48 kB / 486.5 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.1227, allocations: 0 / 486.5 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004537/0.1232, allocations: 444.5 kB / 486.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.1232, allocations: 0 / 486.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008854/0.1241, allocations: 450.4 kB / 487.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.1242, allocations: 221.6 kB / 487.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003885/0.1246, allocations: 330.5 kB / 487.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.1246, allocations: 33.7 kB / 488 MB, free: 12.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.1248, allocations: 132.7 kB / 488.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.461e-05/0.1248, allocations: 51.34 kB / 488.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.293e-05/0.1249, allocations: 53.7 kB / 488.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1251, allocations: 334.8 kB / 488.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.1252, allocations: 63.97 kB / 488.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/0.1254, allocations: 142.7 kB / 488.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003841/0.1258, allocations: 358.9 kB / 489.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.1258, allocations: 4 kB / 489.1 MB, free: 11.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005689/0.1264, allocations: 350.1 kB / 489.4 MB, free: 11.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.619e-05/0.1265, allocations: 93.09 kB / 489.5 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.1265, allocations: 4 kB / 489.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.1265, allocations: 4 kB / 489.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.1266, allocations: 23.92 kB / 489.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.1267, allocations: 4.219 kB / 489.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.1268, allocations: 31.83 kB / 489.6 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/0.1268, allocations: 8 kB / 489.6 MB, free: 10.91 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.0002415/0.1271, allocations: 273.8 kB / 489.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.392e-05/0.1272, allocations: 35.66 kB / 489.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.705e-05/0.1272, allocations: 29.7 kB / 489.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.1272, allocations: 4 kB / 489.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.1272, allocations: 4 kB / 489.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1273, allocations: 3.938 kB / 489.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002749/0.1275, allocations: 289.5 kB / 490.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.1275, allocations: 3.938 kB / 490.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.902e-05/0.1276, allocations: 4 kB / 490.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.1276, allocations: 4 kB / 490.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.702e-05/0.1276, allocations: 11.98 kB / 490.2 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.1276, allocations: 7.938 kB / 490.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1276, allocations: 0 / 490.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006377/0.1283, allocations: 446.7 kB / 490.7 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.542e-05/0.1284, allocations: 112.6 kB / 490.8 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.782e-05/0.1284, allocations: 15.98 kB / 490.8 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.1286, allocations: 15.98 kB / 490.8 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.416e-05/0.1286, allocations: 19.98 kB / 490.8 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.1287, allocations: 15.98 kB / 490.9 MB, free: 9.512 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002409/0.1289, allocations: 241.9 kB / 491.1 MB, free: 9.277 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1289, allocations: 0 / 491.1 MB, free: 9.277 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003269/0.1293, allocations: 63.98 kB / 491.2 MB, free: 9.215 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.001846/0.1311, allocations: 1.302 MB / 492.5 MB, free: 8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005995/0.1317, allocations: 394 kB / 492.8 MB, free: 7.578 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1317, allocations: 0 / 492.8 MB, free: 7.578 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003791/0.1321, allocations: 342.5 kB / 493.2 MB, free: 7.207 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.1325, allocations: 60.47 kB / 493.2 MB, free: 7.148 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003884/0.1364, allocations: 2.899 MB / 496.1 MB, free: 4.078 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.1367, allocations: 0.7518 MB / 496.9 MB, free: 3.301 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.1369, allocations: 29.84 kB / 496.9 MB, free: 3.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.137, allocations: 67.41 kB / 497 MB, free: 3.207 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.137, allocations: 4 kB / 497 MB, free: 3.203 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0183/0.1553, allocations: 5.912 MB / 0.4911 GB, free: 13.39 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003166/0.1556, allocations: 223.3 kB / 0.4913 GB, free: 13.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.116, allocations: 0 / 0.4913 GB, free: 13.12 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1)