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.0009232/0.0009232, allocations: 96.44 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001147/0.001147, allocations: 204.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.7 MB / 246.8 MB, free: 9.656 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.187/0.187, allocations: 46.18 MB / 345.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000281/0.0002811, allocations: 8 kB / 419.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1063, allocations: 63.57 MB / 483.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002274/0.1086, allocations: 1.624 MB / 484.8 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001791/0.1104, allocations: 1.142 MB / 485.9 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.1106, allocations: 3.938 kB / 485.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006438/0.1113, allocations: 174.8 kB / 486.1 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004013/0.1117, allocations: 151.5 kB / 486.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004376/0.1121, allocations: 139.7 kB / 486.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003374/0.1125, allocations: 267.3 kB / 486.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.1126, allocations: 29.67 kB / 486.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.1128, allocations: 103.6 kB / 486.8 MB, free: 412 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001801/0.113, allocations: 107.6 kB / 486.9 MB, free: 304 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.148e-05/0.1131, allocations: 8 kB / 486.9 MB, free: 296 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.1132, allocations: 47.97 kB / 487 MB, free: 248 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.895e-05/0.1133, allocations: 55.77 kB / 487 MB, free: 192 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.1135, allocations: 133.1 kB / 487.1 MB, free: 52 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003601/0.1138, allocations: 271.3 kB / 487.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.84e-06/0.1138, allocations: 0 / 487.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1139, allocations: 4 kB / 487.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.1139, allocations: 0 / 487.4 MB, free: 15.78 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.0008678/0.1147, allocations: 0.6223 MB / 488 MB, free: 15.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1148, allocations: 8.875 kB / 488 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.919e-05/0.1148, allocations: 42.75 kB / 488.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.158e-05/0.1149, allocations: 36.64 kB / 488.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003389/0.1153, allocations: 279.5 kB / 488.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.472e-05/0.1154, allocations: 101.4 kB / 488.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.249e-05/0.1154, allocations: 16 kB / 488.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003098/0.1157, allocations: 157 kB / 488.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.1157, allocations: 0 / 488.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.09e-05/0.1158, allocations: 12 kB / 488.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.1158, allocations: 0 / 488.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000241/0.116, allocations: 95.88 kB / 488.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007981/0.1168, allocations: 0.6064 MB / 489.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003323/0.1172, allocations: 191.9 kB / 489.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.1174, allocations: 98.48 kB / 489.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.1174, allocations: 4 kB / 489.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004031/0.1178, allocations: 437.1 kB / 490.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.473e-06/0.1178, allocations: 0 / 490.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008079/0.1186, allocations: 446.3 kB / 490.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.1188, allocations: 217.6 kB / 490.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/0.1191, allocations: 326.6 kB / 491 MB, free: 11.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.1192, allocations: 33.7 kB / 491.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.1193, allocations: 144.6 kB / 491.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.303e-05/0.1193, allocations: 43.36 kB / 491.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.298e-05/0.1194, allocations: 37.7 kB / 491.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1195, allocations: 334.8 kB / 491.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.1197, allocations: 63.97 kB / 491.7 MB, free: 11.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002149/0.1199, allocations: 146.7 kB / 491.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004161/0.1203, allocations: 366.7 kB / 492.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1203, allocations: 0 / 492.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000537/0.1209, allocations: 346.5 kB / 492.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.756e-05/0.121, allocations: 97.31 kB / 492.6 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.121, allocations: 4 kB / 492.6 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.121, allocations: 4 kB / 492.6 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.1211, allocations: 23.92 kB / 492.7 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.1212, allocations: 4 kB / 492.7 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000141/0.1213, allocations: 31.83 kB / 492.7 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.1213, allocations: 8.375 kB / 492.7 MB, free: 9.902 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.0002328/0.1216, allocations: 281.8 kB / 493 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.235e-05/0.1216, allocations: 39.56 kB / 493 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.578e-05/0.1217, allocations: 25.7 kB / 493 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1217, allocations: 4 kB / 493 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1217, allocations: 0 / 493 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.1217, allocations: 0 / 493 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.122, allocations: 293.4 kB / 493.3 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.122, allocations: 0 / 493.3 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.059e-05/0.122, allocations: 11.88 kB / 493.3 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-05/0.1221, allocations: 4 kB / 493.3 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.1221, allocations: 16 kB / 493.4 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.1221, allocations: 3.984 kB / 493.4 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1221, allocations: 0 / 493.4 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006143/0.1227, allocations: 446.8 kB / 493.8 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.98e-05/0.1228, allocations: 116.7 kB / 493.9 MB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.836e-05/0.1229, allocations: 8 kB / 493.9 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.123, allocations: 23.98 kB / 493.9 MB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.441e-05/0.1231, allocations: 23.86 kB / 494 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.265e-05/0.1231, allocations: 11.98 kB / 494 MB, free: 8.488 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000229/0.1233, allocations: 241.9 kB / 494.2 MB, free: 8.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1233, allocations: 0 / 494.2 MB, free: 8.254 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003066/0.1237, allocations: 71.91 kB / 494.3 MB, free: 8.184 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.001733/0.1254, allocations: 1.299 MB / 495.6 MB, free: 6.969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005463/0.126, allocations: 394 kB / 496 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.126, allocations: 0 / 496 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003526/0.1263, allocations: 342.5 kB / 496.3 MB, free: 6.176 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.1267, allocations: 56.53 kB / 496.4 MB, free: 6.121 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003425/0.1301, allocations: 2.906 MB / 499.3 MB, free: 3.043 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.1305, allocations: 0.7554 MB / 0.4883 GB, free: 2.266 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.417e-05/0.1306, allocations: 25.91 kB / 0.4883 GB, free: 2.242 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.1307, allocations: 67.41 kB / 0.4884 GB, free: 2.176 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1307, allocations: 4 kB / 0.4884 GB, free: 2.172 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01635/0.147, allocations: 5.528 MB / 0.4938 GB, free: 12.75 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002535/0.1473, allocations: 214.6 kB / 0.494 GB, free: 12.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.813/1.96, allocations: 0 / 0.494 GB, free: 12.5 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)