Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.LogicalOperations.Examples.FliFlop,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop",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.0009626/0.0009626, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005981/0.005981, allocations: 169.6 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.339/1.339, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05437/0.05437, allocations: 10.75 MB / 281.5 MB, free: 10.44 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005218/0.0005218, allocations: 16.42 kB / 342.3 MB, free: 23.39 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08993/0.09046, allocations: 50.02 MB / 392.4 MB, free: 5.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.002251/0.09277, allocations: 1.66 MB / 394 MB, free: 3.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.09439, allocations: 1.073 MB / 395.1 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.371e-05/0.0945, allocations: 11.94 kB / 395.1 MB, free: 2.539 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007478/0.09526, allocations: 295.4 kB / 395.4 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003712/0.09564, allocations: 199.4 kB / 395.6 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005558/0.0962, allocations: 251.6 kB / 395.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.09657, allocations: 335.1 kB / 396.2 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.09672, allocations: 44.58 kB / 396.2 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.09688, allocations: 119.5 kB / 396.3 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.09708, allocations: 139.4 kB / 396.5 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.687e-05/0.09711, allocations: 8 kB / 396.5 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000152/0.09727, allocations: 71.89 kB / 396.5 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.253e-05/0.09737, allocations: 87.72 kB / 396.6 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.0975, allocations: 136.9 kB / 396.7 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004196/0.09793, allocations: 346.7 kB / 397.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.09794, allocations: 0 / 397.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.09795, allocations: 0 / 397.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.09796, allocations: 0 / 397.1 MB, free: 0.5391 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0009264/0.09889, allocations: 0.6145 MB / 397.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.09895, allocations: 12.03 kB / 397.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.092e-05/0.099, allocations: 42.73 kB / 397.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.06e-05/0.09907, allocations: 32.56 kB / 397.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00041/0.09948, allocations: 338.3 kB / 398.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.09951, allocations: 4.375 kB / 398.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.9e-05/0.09954, allocations: 15.94 kB / 398.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002624/0.09981, allocations: 139 kB / 398.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.09983, allocations: 0 / 398.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.09985, allocations: 11.98 kB / 398.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-06/0.09987, allocations: 4 kB / 398.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001419/0.1, allocations: 51.97 kB / 398.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000641/0.1007, allocations: 468.4 kB / 398.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000291/0.101, allocations: 134.8 kB / 398.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.1011, allocations: 52.83 kB / 399 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.1011, allocations: 7.938 kB / 399 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002229/0.1013, allocations: 119.3 kB / 399.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.1014, allocations: 3.938 kB / 399.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004864/0.1019, allocations: 229.3 kB / 399.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/0.1019, allocations: 110.8 kB / 399.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004881/0.1024, allocations: 477.5 kB / 399.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.1025, allocations: 33.7 kB / 399.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.1026, allocations: 164.3 kB / 400.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.295e-05/0.1027, allocations: 43.53 kB / 400.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.784e-05/0.1027, allocations: 25.7 kB / 400.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1028, allocations: 342.8 kB / 400.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.103, allocations: 47.91 kB / 400.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001615/0.1031, allocations: 121.4 kB / 400.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.1034, allocations: 133.9 kB / 400.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1034, allocations: 4 kB / 400.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000338/0.1037, allocations: 201.1 kB / 401 MB, free: 12.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.1037, allocations: 4 kB / 401 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/0.1038, allocations: 4 kB / 401 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.1038, allocations: 0 / 401 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.1039, allocations: 27.92 kB / 401 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.1039, allocations: 4 kB / 401 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.104, allocations: 27.98 kB / 401.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.1041, allocations: 8 kB / 401.1 MB, free: 12.22 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 (flipFlopSR.y1,$PRE.flipFlopSR.y1,flipFlopSR.y2,$PRE.flipFlopSR.y2,$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 (21): * Single equations (assignments): 21 * 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.0001711/0.1042, allocations: 172.1 kB / 401.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.693e-05/0.1043, allocations: 35.56 kB / 401.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.88e-05/0.1044, allocations: 38.92 kB / 401.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1044, allocations: 4 kB / 401.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1044, allocations: 0 / 401.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1044, allocations: 4 kB / 401.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002857/0.1047, allocations: 301.3 kB / 401.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1047, allocations: 3.984 kB / 401.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.711e-05/0.1047, allocations: 11.94 kB / 401.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1047, allocations: 3.938 kB / 401.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.1048, allocations: 4 kB / 401.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1048, allocations: 4 kB / 401.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1048, allocations: 0 / 401.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003519/0.1051, allocations: 220.5 kB / 401.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.836e-05/0.1052, allocations: 120.6 kB / 402 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.167e-05/0.1053, allocations: 7.938 kB / 402 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.378e-05/0.1054, allocations: 11.98 kB / 402 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.23e-05/0.1054, allocations: 7.984 kB / 402 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.1055, allocations: 12.06 kB / 402 MB, free: 11.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000349/0.1058, allocations: 347.1 kB / 402.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1058, allocations: 0 / 402.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002931/0.1061, allocations: 63.84 kB / 402.4 MB, free: 10.79 MB / 302.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: 11 ($whenCondition3,$whenCondition2,$whenCondition1,flipFlopSR.y1,flipFlopSR.y2,setSIGNAL.y,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.y,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (flipFlopSR.y1,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 (15): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.001478/0.1076, allocations: 1.08 MB / 403.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003016/0.1079, allocations: 124 kB / 403.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1079, allocations: 3.938 kB / 403.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.1081, allocations: 67.84 kB / 403.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004438/0.1085, allocations: 66.17 kB / 403.8 MB, free: 9.527 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00363/0.1122, allocations: 3.094 MB / 406.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/0.1126, allocations: 0.783 MB / 407.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001324/0.1127, allocations: 50.25 kB / 407.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.1129, allocations: 87.41 kB / 407.8 MB, free: 5.379 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1129, allocations: 0 / 407.8 MB, free: 5.379 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03163/0.1445, allocations: 6.909 MB / 414.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000282/0.1448, allocations: 279 kB / 414.9 MB, free: 14.14 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.902/2.047, allocations: 0 / 414.9 MB, free: 14.14 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe 2>&1)