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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.007805/0.007805, allocations: 171.3 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08154/0.08154, allocations: 10.73 MB / 26.59 MB, free: 2.23 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.826/1.826, allocations: 205.4 MB / 235.2 MB, free: 176 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008516/0.0008517, allocations: 85.88 kB / 285.9 MB, free: 10.58 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003554, allocations: 8 kB / 346.5 MB, free: 5.062 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1182, allocations: 50 MB / 396.5 MB, free: 2.977 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3484/0.4666, allocations: 80.85 MB / 477.4 MB, free: 15.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/0.467, allocations: 87.72 kB / 477.4 MB, free: 15.17 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02916/0.4962, allocations: 9.1 MB / 486.5 MB, free: 7.836 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4962, allocations: 0 / 486.5 MB, free: 7.836 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.333e-05/0.4963, allocations: 11.94 kB / 486.6 MB, free: 7.824 MB / 346.7 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.001049/0.4973, allocations: 0.6446 MB / 487.2 MB, free: 7.141 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/0.4974, allocations: 8.031 kB / 487.2 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.823e-05/0.4975, allocations: 49.3 kB / 487.3 MB, free: 7.082 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.841e-05/0.4976, allocations: 35.53 kB / 487.3 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000649/0.4982, allocations: 334.8 kB / 487.6 MB, free: 6.719 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.4983, allocations: 7.25 kB / 487.6 MB, free: 6.715 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.64e-05/0.4983, allocations: 11.94 kB / 487.6 MB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003353/0.4986, allocations: 133 kB / 487.8 MB, free: 6.586 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.4987, allocations: 0 / 487.8 MB, free: 6.586 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.365e-05/0.4987, allocations: 11.23 kB / 487.8 MB, free: 6.578 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.4987, allocations: 4 kB / 487.8 MB, free: 6.574 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.4989, allocations: 59.84 kB / 487.8 MB, free: 6.535 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008335/0.4998, allocations: 0.4913 MB / 488.3 MB, free: 6.078 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00039/0.5002, allocations: 142.7 kB / 488.5 MB, free: 5.965 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.5002, allocations: 0 / 488.5 MB, free: 5.965 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002696/0.5005, allocations: 126.2 kB / 488.6 MB, free: 5.852 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.5005, allocations: 3.938 kB / 488.6 MB, free: 5.848 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006304/0.5011, allocations: 252.4 kB / 488.8 MB, free: 5.648 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.747e-05/0.5012, allocations: 106.2 kB / 488.9 MB, free: 5.523 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006271/0.5018, allocations: 429.9 kB / 489.4 MB, free: 5.184 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.5019, allocations: 32.39 kB / 489.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.502, allocations: 164.6 kB / 489.6 MB, free: 5.035 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.949e-05/0.5021, allocations: 37.72 kB / 489.6 MB, free: 5.004 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.263e-05/0.5021, allocations: 7.188 kB / 489.6 MB, free: 5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.5022, allocations: 348.2 kB / 489.9 MB, free: 4.664 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.5023, allocations: 43.98 kB / 490 MB, free: 4.633 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001997/0.5026, allocations: 123.6 kB / 490.1 MB, free: 4.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.5027, allocations: 64.84 kB / 490.2 MB, free: 4.461 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.5027, allocations: 0 / 490.2 MB, free: 4.461 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004547/0.5032, allocations: 200.3 kB / 490.4 MB, free: 4.301 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.5032, allocations: 8.156 kB / 490.4 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.5033, allocations: 7.953 kB / 490.4 MB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.5033, allocations: 0 / 490.4 MB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.5035, allocations: 27.92 kB / 490.4 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.5035, allocations: 4 kB / 490.4 MB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.5037, allocations: 14.42 kB / 490.4 MB, free: 4.242 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.5037, allocations: 10.69 kB / 490.4 MB, free: 4.234 MB / 346.7 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 ($PRE.flipFlopSR.y1,flipFlopSR.y1,$PRE.flipFlopSR.y2,flipFlopSR.y2,$whenCondition3,$PRE.resetSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.setSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition1,flipFlopSR.u2,resetSIGNAL.combiTimeTable.nextTimeEvent,$PRE.resetSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEventScaled,flipFlopSR.u1,setSIGNAL.combiTimeTable.nextTimeEvent,$PRE.setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002236/0.504, allocations: 182.8 kB / 490.6 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.028e-05/0.504, allocations: 35.62 kB / 490.6 MB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004936/0.5046, allocations: 217 kB / 490.9 MB, free: 3.875 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.5046, allocations: 7.891 kB / 490.9 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.5046, allocations: 0 / 490.9 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.5046, allocations: 0 / 490.9 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003241/0.5049, allocations: 320.9 kB / 491.2 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.5049, allocations: 3.984 kB / 491.2 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.748e-05/0.505, allocations: 15.94 kB / 491.2 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.505, allocations: 4 kB / 491.2 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.505, allocations: 7.562 kB / 491.2 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.5051, allocations: 0 / 491.2 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5051, allocations: 7.891 kB / 491.2 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004081/0.5055, allocations: 229.4 kB / 491.4 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/0.5056, allocations: 127.9 kB / 491.6 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.611e-05/0.5057, allocations: 7.938 kB / 491.6 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.5058, allocations: 15.8 kB / 491.6 MB, free: 3.168 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.37e-05/0.5059, allocations: 15.94 kB / 491.6 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.5059, allocations: 11.06 kB / 491.6 MB, free: 3.145 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004187/0.5063, allocations: 342.8 kB / 492 MB, free: 2.891 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5064, allocations: 0 / 492 MB, free: 2.891 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004631/0.5068, allocations: 74.92 kB / 492 MB, free: 2.824 MB / 346.7 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.u1,flipFlopSR.y1,flipFlopSR.u2,flipFlopSR.y2,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (flipFlopSR.y1,setSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001676/0.5085, allocations: 1.115 MB / 493.1 MB, free: 1.777 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003973/0.5089, allocations: 136.9 kB / 493.3 MB, free: 1.676 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5089, allocations: 0 / 493.3 MB, free: 1.676 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000162/0.5091, allocations: 69.59 kB / 493.3 MB, free: 1.625 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004491/0.5096, allocations: 77.14 kB / 493.4 MB, free: 1.566 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003482/0.5131, allocations: 2.673 MB / 496.1 MB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004909/0.5136, allocations: 0.7861 MB / 496.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002132/0.5138, allocations: 61.69 kB / 496.9 MB, free: 14.24 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001801/0.514, allocations: 95.03 kB / 497 MB, free: 14.2 MB / 362.7 MB Notification: Performance of SimCode: time 4.749e-06/0.514, allocations: 0 / 497 MB, free: 14.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02612/0.5401, allocations: 7.147 MB / 0.4924 GB, free: 7.094 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000352/0.5405, allocations: 251.5 kB / 0.4926 GB, free: 6.758 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.241/2.782, allocations: 0 / 0.4926 GB, free: 6.758 MB / 362.7 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/linux/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)