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.001467/0.001467, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06261/0.06261, allocations: 10.66 MB / 23.92 MB, free: 1.609 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.733/1.733, allocations: 205.2 MB / 232.1 MB, free: 12.84 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001047/0.001047, allocations: 95.42 kB / 282.6 MB, free: 13.58 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 5.594e-05/5.639e-05, allocations: 4 kB / 340.6 MB, free: 3.516 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3233, allocations: 49.98 MB / 390.6 MB, free: 35.71 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1133/0.4368, allocations: 80.76 MB / 471.3 MB, free: 2.836 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.4371, allocations: 79.95 kB / 471.4 MB, free: 2.758 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02485/0.462, allocations: 9.082 MB / 480.5 MB, free: 9.676 MB / 362.8 MB Notification: Performance of FrontEnd: time 4.318e-06/0.462, allocations: 0 / 480.5 MB, free: 9.676 MB / 362.8 MB Notification: Performance of Transformations before backend: time 3.174e-05/0.4621, allocations: 11.94 kB / 480.5 MB, free: 9.664 MB / 362.8 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.0009105/0.463, allocations: 0.5797 MB / 481.1 MB, free: 9.027 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.463, allocations: 8.031 kB / 481.1 MB, free: 9.02 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.143e-05/0.4631, allocations: 38.56 kB / 481.1 MB, free: 8.973 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.551e-05/0.4632, allocations: 35.58 kB / 481.2 MB, free: 8.938 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006148/0.4638, allocations: 351.7 kB / 481.5 MB, free: 8.551 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.4639, allocations: 7.984 kB / 481.5 MB, free: 8.543 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.572e-05/0.4639, allocations: 11.98 kB / 481.5 MB, free: 8.531 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002726/0.4642, allocations: 133.4 kB / 481.7 MB, free: 8.387 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.4642, allocations: 0 / 481.7 MB, free: 8.387 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.601e-05/0.4642, allocations: 11.98 kB / 481.7 MB, free: 8.375 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.4642, allocations: 4 kB / 481.7 MB, free: 8.371 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001376/0.4644, allocations: 51.98 kB / 481.7 MB, free: 8.32 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007736/0.4652, allocations: 0.4887 MB / 482.2 MB, free: 7.781 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.4654, allocations: 126.8 kB / 482.3 MB, free: 7.648 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.917e-05/0.4655, allocations: 44.86 kB / 482.4 MB, free: 7.602 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.4656, allocations: 7.984 kB / 482.4 MB, free: 7.594 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002199/0.4658, allocations: 120.1 kB / 482.5 MB, free: 7.465 MB / 362.8 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.4658, allocations: 0 / 482.5 MB, free: 7.465 MB / 362.8 MB Notification: Performance of matching and sorting (n=15): time 0.000422/0.4662, allocations: 194.8 kB / 482.7 MB, free: 7.27 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.799e-05/0.4663, allocations: 110.8 kB / 482.8 MB, free: 7.137 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005369/0.4669, allocations: 419.6 kB / 483.2 MB, free: 6.723 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.4669, allocations: 33.7 kB / 483.2 MB, free: 6.684 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.4671, allocations: 168.3 kB / 483.4 MB, free: 6.512 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.437e-05/0.4671, allocations: 43.53 kB / 483.5 MB, free: 6.469 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.325e-06/0.4671, allocations: 8 kB / 483.5 MB, free: 6.461 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.4673, allocations: 342.8 kB / 483.8 MB, free: 6.117 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.55e-05/0.4674, allocations: 40.38 kB / 483.8 MB, free: 6.074 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.4675, allocations: 136.6 kB / 484 MB, free: 5.91 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.024e-05/0.4676, allocations: 51.92 kB / 484 MB, free: 5.859 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4676, allocations: 0 / 484 MB, free: 5.859 MB / 362.8 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002772/0.4679, allocations: 189.3 kB / 484.2 MB, free: 5.668 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.4679, allocations: 7.953 kB / 484.2 MB, free: 5.66 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.468, allocations: 4 kB / 484.2 MB, free: 5.656 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.468, allocations: 4 kB / 484.2 MB, free: 5.652 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.4681, allocations: 23.92 kB / 484.2 MB, free: 5.629 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.4681, allocations: 4 kB / 484.2 MB, free: 5.625 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.4682, allocations: 19.89 kB / 484.3 MB, free: 5.605 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.4683, allocations: 8 kB / 484.3 MB, free: 5.598 MB / 362.8 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 () * 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.0001108/0.4684, allocations: 127.3 kB / 484.4 MB, free: 5.465 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.907e-05/0.4684, allocations: 35.61 kB / 484.4 MB, free: 5.43 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003559/0.4688, allocations: 210.6 kB / 484.6 MB, free: 5.219 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.4688, allocations: 4 kB / 484.6 MB, free: 5.215 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.4688, allocations: 3.984 kB / 484.6 MB, free: 5.211 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.4688, allocations: 0 / 484.6 MB, free: 5.211 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003111/0.4692, allocations: 325.3 kB / 485 MB, free: 4.844 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4692, allocations: 0 / 485 MB, free: 4.844 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.616e-05/0.4692, allocations: 11.94 kB / 485 MB, free: 4.832 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.4692, allocations: 8 kB / 485 MB, free: 4.824 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.4693, allocations: 7.984 kB / 485 MB, free: 4.816 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.4693, allocations: 3.953 kB / 485 MB, free: 4.812 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4693, allocations: 4 kB / 485 MB, free: 4.809 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003124/0.4696, allocations: 223.6 kB / 485.2 MB, free: 4.574 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.4697, allocations: 124.8 kB / 485.3 MB, free: 4.434 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.194e-05/0.4698, allocations: 8 kB / 485.3 MB, free: 4.426 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.4699, allocations: 15.98 kB / 485.4 MB, free: 4.41 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.387e-05/0.47, allocations: 15.94 kB / 485.4 MB, free: 4.395 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.47, allocations: 11.98 kB / 485.4 MB, free: 4.383 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.000382/0.4704, allocations: 338.1 kB / 485.7 MB, free: 4.055 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4704, allocations: 3.938 kB / 485.7 MB, free: 4.051 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0003149/0.4707, allocations: 75.86 kB / 485.8 MB, free: 3.977 MB / 362.8 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) * 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.001494/0.4722, allocations: 1.057 MB / 486.9 MB, free: 2.965 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0002734/0.4725, allocations: 127.8 kB / 487 MB, free: 2.84 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4725, allocations: 4 kB / 487 MB, free: 2.836 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.4726, allocations: 71.91 kB / 487.1 MB, free: 2.766 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.473, allocations: 62.25 kB / 487.1 MB, free: 2.703 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009948/0.474, allocations: 0.5044 MB / 487.6 MB, free: 2.16 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/0.4745, allocations: 0.7872 MB / 488.4 MB, free: 1.344 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0001477/0.4746, allocations: 58.02 kB / 488.5 MB, free: 1.285 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.4748, allocations: 95.41 kB / 488.6 MB, free: 1.195 MB / 362.8 MB Notification: Performance of SimCode: time 2.8e-07/0.4748, allocations: 0 / 488.6 MB, free: 1.195 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02074/0.4956, allocations: 7.056 MB / 495.6 MB, free: 10.18 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001909/0.4958, allocations: 226.7 kB / 495.8 MB, free: 9.953 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.176/2.672, allocations: 0 / 495.8 MB, free: 9.953 MB / 378.8 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)