Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005662/0.005662, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 198.8 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06294/0.06294, allocations: 11.2 MB / 301.7 MB, free: 4.008 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001778/0.001778, allocations: 60.22 kB / 417.3 MB, free: 19.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08952/0.0913, allocations: 51.98 MB / 469.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003226/0.09457, allocations: 2.012 MB / 471.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.09653, allocations: 1.251 MB / 472.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.09665, allocations: 7.938 kB / 472.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007986/0.09747, allocations: 310.2 kB / 472.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004124/0.09789, allocations: 195.3 kB / 473.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007142/0.09861, allocations: 319.2 kB / 473.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003933/0.09901, allocations: 359.1 kB / 473.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.09916, allocations: 52.38 kB / 473.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/0.09936, allocations: 147.4 kB / 473.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.09956, allocations: 147.5 kB / 474.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.642e-05/0.09961, allocations: 20 kB / 474.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002188/0.09984, allocations: 119.8 kB / 474.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.09995, allocations: 79.75 kB / 474.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.1001, allocations: 139.1 kB / 474.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004568/0.1006, allocations: 378.7 kB / 474.8 MB, free: 9.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1006, allocations: 0 / 474.8 MB, free: 9.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.979e-06/0.1006, allocations: 4 kB / 474.8 MB, free: 9.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.1006, allocations: 3.938 kB / 474.8 MB, free: 9.676 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.001013/0.1016, allocations: 0.6805 MB / 475.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.1017, allocations: 15.83 kB / 475.5 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.973e-05/0.1017, allocations: 42.73 kB / 475.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.998e-05/0.1018, allocations: 36.75 kB / 475.6 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004301/0.1022, allocations: 340.4 kB / 475.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.1023, allocations: 7.938 kB / 475.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.1023, allocations: 12 kB / 475.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.1026, allocations: 155.8 kB / 476.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.1026, allocations: 4 kB / 476.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.1026, allocations: 4 kB / 476.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.1026, allocations: 0 / 476.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001814/0.1028, allocations: 75.83 kB / 476.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006689/0.1035, allocations: 480.5 kB / 476.6 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004086/0.1039, allocations: 146.7 kB / 476.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.1041, allocations: 68.86 kB / 476.9 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.1041, allocations: 4 kB / 476.9 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002663/0.1044, allocations: 141.6 kB / 477 MB, free: 7.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.623e-06/0.1044, allocations: 0 / 477 MB, free: 7.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006328/0.105, allocations: 285.3 kB / 477.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.84e-05/0.1051, allocations: 110.8 kB / 477.4 MB, free: 6.879 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004914/0.1056, allocations: 445.6 kB / 477.8 MB, free: 6.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.1057, allocations: 33.7 kB / 477.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1058, allocations: 168.4 kB / 478 MB, free: 6.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.712e-05/0.1058, allocations: 47.64 kB / 478.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.283e-05/0.1059, allocations: 49.7 kB / 478.1 MB, free: 6.121 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1061, allocations: 346.7 kB / 478.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.1062, allocations: 44.22 kB / 478.5 MB, free: 5.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001937/0.1064, allocations: 152.6 kB / 478.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.1067, allocations: 188.4 kB / 478.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.1068, allocations: 4 kB / 478.8 MB, free: 5.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004001/0.1072, allocations: 233.1 kB / 479.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.1072, allocations: 8 kB / 479.1 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1072, allocations: 0 / 479.1 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.1072, allocations: 4 kB / 479.1 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.1073, allocations: 32.17 kB / 479.1 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.1073, allocations: 8 kB / 479.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.1075, allocations: 23.88 kB / 479.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/0.1075, allocations: 15.94 kB / 479.1 MB, free: 4.992 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.tr:DISCRETE(flow=false fixed = true ) "residual time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 23 ($PRE.timer.Sd,timer.Sd,timer.run,$PRE.timer.run,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,ResetSignal.combiTimeTable.nextTimeEventScaled,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.y,SetSignal.combiTimeTable.nextTimeEventScaled,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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.0002176/0.1077, allocations: 192.5 kB / 479.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.936e-05/0.1078, allocations: 31.77 kB / 479.4 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.904e-05/0.1079, allocations: 39.28 kB / 479.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.1079, allocations: 0 / 479.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.1079, allocations: 0 / 479.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1079, allocations: 3.984 kB / 479.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003009/0.1082, allocations: 309.4 kB / 479.7 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1082, allocations: 0 / 479.7 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.474e-05/0.1082, allocations: 8 kB / 479.7 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1082, allocations: 0 / 479.7 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.1083, allocations: 4 kB / 479.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.1083, allocations: 3.984 kB / 479.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1083, allocations: 0 / 479.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004603/0.1087, allocations: 274.7 kB / 480 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.01e-05/0.1088, allocations: 104.9 kB / 480.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.475e-05/0.1089, allocations: 8 kB / 480.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.219e-05/0.109, allocations: 11.98 kB / 480.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.012e-05/0.1091, allocations: 11.98 kB / 480.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/0.1091, allocations: 11.98 kB / 480.1 MB, free: 3.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003789/0.1095, allocations: 327.1 kB / 480.5 MB, free: 3.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1095, allocations: 0 / 480.5 MB, free: 3.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.1098, allocations: 71.81 kB / 480.5 MB, free: 3.516 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.002159/0.112, allocations: 1.14 MB / 481.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003565/0.1123, allocations: 151.8 kB / 481.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1124, allocations: 0 / 481.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.1125, allocations: 75.92 kB / 481.9 MB, free: 2.285 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004316/0.113, allocations: 83.34 kB / 482 MB, free: 2.207 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00369/0.1167, allocations: 3.056 MB / 485 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.1171, allocations: 0.7751 MB / 485.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001329/0.1172, allocations: 54.91 kB / 485.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.1174, allocations: 95.34 kB / 486 MB, free: 14.07 MB / 366.1 MB Notification: Performance of SimCode: time 1.984e-06/0.1174, allocations: 0 / 486 MB, free: 14.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02986/0.1472, allocations: 7.779 MB / 493.7 MB, free: 6.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.33, allocations: 11.42 kB / 493.7 MB, free: 6.484 MB / 366.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)