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.00117/0.001169, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001271/0.001271, allocations: 194.2 kB / 16.13 MB, free: 6.66 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.483/1.483, allocations: 205.1 MB / 222 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05442/0.05442, allocations: 10.74 MB / 280.1 MB, free: 10.71 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.00152/0.00152, allocations: 71.83 kB / 340 MB, free: 23.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09169/0.09322, allocations: 49.02 MB / 389 MB, free: 6.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.00356/0.09681, allocations: 2.01 MB / 391 MB, free: 4.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.09864, allocations: 1.096 MB / 392.1 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.09886, allocations: 0 / 392.1 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008196/0.0997, allocations: 303.3 kB / 392.4 MB, free: 3.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004528/0.1002, allocations: 199.4 kB / 392.6 MB, free: 2.977 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006343/0.1008, allocations: 251.6 kB / 392.8 MB, free: 2.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000445/0.1013, allocations: 343.1 kB / 393.2 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.1014, allocations: 44.59 kB / 393.2 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002297/0.1016, allocations: 131.4 kB / 393.3 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.1018, allocations: 139.4 kB / 393.5 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.59e-05/0.1019, allocations: 8 kB / 393.5 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001814/0.1021, allocations: 75.94 kB / 393.6 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.1022, allocations: 83.67 kB / 393.6 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.1023, allocations: 115.2 kB / 393.7 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004143/0.1027, allocations: 350.8 kB / 394.1 MB, free: 1.465 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1028, allocations: 0 / 394.1 MB, free: 1.465 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.1028, allocations: 0 / 394.1 MB, free: 1.465 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.1028, allocations: 4 kB / 394.1 MB, free: 1.461 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.001018/0.1038, allocations: 0.6683 MB / 394.8 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1039, allocations: 8.031 kB / 394.8 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.942e-05/0.1039, allocations: 42.73 kB / 394.8 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.638e-05/0.104, allocations: 36.47 kB / 394.8 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.1045, allocations: 334.4 kB / 395.2 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.1045, allocations: 16.3 kB / 395.2 MB, free: 264 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.531e-05/0.1045, allocations: 11.94 kB / 395.2 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002786/0.1048, allocations: 128.2 kB / 395.3 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.1048, allocations: 4 kB / 395.3 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.1048, allocations: 3.984 kB / 395.3 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1049, allocations: 0 / 395.3 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001489/0.105, allocations: 55.97 kB / 395.4 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006833/0.1057, allocations: 484.3 kB / 395.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/0.106, allocations: 130.8 kB / 396 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.1061, allocations: 48.77 kB / 396 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.1062, allocations: 8 kB / 396 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002475/0.1064, allocations: 115.3 kB / 396.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.1064, allocations: 0 / 396.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005027/0.107, allocations: 237.3 kB / 396.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/0.107, allocations: 106.8 kB / 396.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004961/0.1075, allocations: 473.6 kB / 397 MB, free: 14.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.1076, allocations: 33.7 kB / 397 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.1077, allocations: 164.3 kB / 397.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.398e-05/0.1077, allocations: 47.44 kB / 397.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.294e-05/0.1078, allocations: 41.7 kB / 397.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.1079, allocations: 342.8 kB / 397.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.108, allocations: 43.98 kB / 397.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.1082, allocations: 129.3 kB / 397.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/0.1084, allocations: 141.9 kB / 397.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1084, allocations: 0 / 397.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003584/0.1088, allocations: 197.1 kB / 398.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.1088, allocations: 4 kB / 398.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.1089, allocations: 4.156 kB / 398.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.1089, allocations: 4 kB / 398.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.109, allocations: 27.92 kB / 398.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.109, allocations: 4 kB / 398.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.1092, allocations: 19.84 kB / 398.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.1092, allocations: 4 kB / 398.1 MB, free: 13.09 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.0001609/0.1094, allocations: 176 kB / 398.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.1095, allocations: 35.56 kB / 398.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.219e-05/0.1096, allocations: 46.97 kB / 398.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1096, allocations: 128 / 398.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.383e-06/0.1096, allocations: 4 kB / 398.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1096, allocations: 0 / 398.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002642/0.1099, allocations: 297.4 kB / 398.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.1099, allocations: 7.875 kB / 398.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.321e-05/0.1099, allocations: 8 kB / 398.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.1099, allocations: 3.984 kB / 398.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.1099, allocations: 8 kB / 398.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1099, allocations: 0 / 398.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.11, allocations: 7.938 kB / 398.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003533/0.1103, allocations: 216.4 kB / 398.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.972e-05/0.1104, allocations: 112.7 kB / 399 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.357e-05/0.1105, allocations: 4 kB / 399 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.608e-05/0.1106, allocations: 7.984 kB / 399.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.883e-05/0.1106, allocations: 15.98 kB / 399.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.1106, allocations: 4 kB / 399.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003526/0.111, allocations: 355.1 kB / 399.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.111, allocations: 0 / 399.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002952/0.1113, allocations: 51.91 kB / 399.5 MB, free: 11.66 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.001519/0.1128, allocations: 1.094 MB / 400.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003244/0.1132, allocations: 115.8 kB / 400.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1132, allocations: 0 / 400.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.1133, allocations: 67.84 kB / 400.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004522/0.1138, allocations: 74.03 kB / 400.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003997/0.1178, allocations: 3.088 MB / 403.9 MB, free: 7.191 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.1182, allocations: 0.783 MB / 404.7 MB, free: 6.383 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001516/0.1183, allocations: 42.52 kB / 404.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.1185, allocations: 99.39 kB / 404.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1185, allocations: 3.938 kB / 404.8 MB, free: 6.242 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01998/0.1384, allocations: 7.132 MB / 412 MB, free: 15.13 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003914/0.1389, allocations: 283.7 kB / 412.2 MB, free: 14.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/1.932, allocations: 0 / 412.2 MB, free: 14.75 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)