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.001612/0.001613, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07691/0.07691, allocations: 10.66 MB / 18.73 MB, free: 1.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.019/2.019, allocations: 205.3 MB / 226.9 MB, free: 7.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001223/0.001223, allocations: 94.41 kB / 277.3 MB, free: 5.445 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.227e-05, allocations: 4 kB / 333.6 MB, free: 28.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1473, allocations: 50 MB / 383.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5131/0.6604, allocations: 80.41 MB / 464 MB, free: 4.254 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.6608, allocations: 84.2 kB / 464.1 MB, free: 4.211 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02428/0.6851, allocations: 8.99 MB / 473.1 MB, free: 12.78 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.6851, allocations: 3.938 kB / 473.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.792e-05/0.6852, allocations: 8 kB / 473.1 MB, free: 12.77 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.0008136/0.686, allocations: 0.5741 MB / 473.7 MB, free: 12.15 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.686, allocations: 8.031 kB / 473.7 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.674e-05/0.6861, allocations: 43.11 kB / 473.7 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000566/0.6867, allocations: 351.6 kB / 474.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.6867, allocations: 7.688 kB / 474.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.194e-05/0.6868, allocations: 4 kB / 474.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000131/0.6869, allocations: 49.92 kB / 474.1 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/0.6871, allocations: 128 kB / 474.3 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.6871, allocations: 0 / 474.3 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.6872, allocations: 4 kB / 474.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.6872, allocations: 4 kB / 474.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006828/0.6879, allocations: 470.1 kB / 474.7 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.6881, allocations: 119.4 kB / 474.9 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.148e-05/0.6881, allocations: 45.72 kB / 474.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.6882, allocations: 0 / 474.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001829/0.6883, allocations: 107.4 kB / 475 MB, free: 10.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.6884, allocations: 0 / 475 MB, free: 10.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004038/0.6888, allocations: 193 kB / 475.2 MB, free: 10.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.6888, allocations: 118 kB / 475.3 MB, free: 10.65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000456/0.6893, allocations: 403.8 kB / 475.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.6893, allocations: 29.7 kB / 475.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.6895, allocations: 169.8 kB / 475.9 MB, free: 10.19 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.921e-05/0.6895, allocations: 33.55 kB / 475.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-06/0.6895, allocations: 0 / 475.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.6897, allocations: 346.4 kB / 476.3 MB, free: 9.828 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.492e-05/0.6897, allocations: 36.67 kB / 476.3 MB, free: 9.801 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.6899, allocations: 122.3 kB / 476.4 MB, free: 9.672 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.703e-05/0.69, allocations: 57.72 kB / 476.5 MB, free: 9.629 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.69, allocations: 0 / 476.5 MB, free: 9.629 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000261/0.6903, allocations: 174.2 kB / 476.6 MB, free: 9.484 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.6903, allocations: 4 kB / 476.7 MB, free: 9.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.6903, allocations: 4 kB / 476.7 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.6903, allocations: 0 / 476.7 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.6905, allocations: 31.88 kB / 476.7 MB, free: 9.445 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.024e-06/0.6905, allocations: 4 kB / 476.7 MB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.6906, allocations: 20.05 kB / 476.7 MB, free: 9.422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.6906, allocations: 11.56 kB / 476.7 MB, free: 9.414 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 () * 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.0001079/0.6907, allocations: 107.2 kB / 476.8 MB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003141/0.691, allocations: 191.1 kB / 477 MB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.6911, allocations: 31.62 kB / 477 MB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003488/0.6915, allocations: 206.6 kB / 477.2 MB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.6915, allocations: 7.938 kB / 477.3 MB, free: 8.934 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.6915, allocations: 4 kB / 477.3 MB, free: 8.93 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.6915, allocations: 0 / 477.3 MB, free: 8.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002819/0.6918, allocations: 286.7 kB / 477.5 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.6918, allocations: 4 kB / 477.5 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.167e-05/0.6919, allocations: 15.92 kB / 477.6 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.6919, allocations: 0 / 477.6 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.6919, allocations: 7.438 kB / 477.6 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.6919, allocations: 4 kB / 477.6 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.6919, allocations: 3.953 kB / 477.6 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003088/0.6922, allocations: 222.2 kB / 477.8 MB, free: 8.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.6923, allocations: 130.9 kB / 477.9 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.641e-05/0.6924, allocations: 0 / 477.9 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.93e-05/0.6925, allocations: 11.98 kB / 477.9 MB, free: 8.281 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.726e-05/0.6926, allocations: 15.38 kB / 477.9 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.6926, allocations: 11.98 kB / 478 MB, free: 8.258 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003451/0.6929, allocations: 317.9 kB / 478.3 MB, free: 8.027 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.693, allocations: 4 kB / 478.3 MB, free: 8.023 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003354/0.6933, allocations: 71.36 kB / 478.3 MB, free: 7.957 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) * 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.001347/0.6946, allocations: 1.037 MB / 479.4 MB, free: 6.945 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002467/0.6949, allocations: 124.5 kB / 479.5 MB, free: 6.855 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.6949, allocations: 0 / 479.5 MB, free: 6.855 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.695, allocations: 62.25 kB / 479.6 MB, free: 6.812 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.6954, allocations: 65.39 kB / 479.6 MB, free: 6.766 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008879/0.6963, allocations: 499.2 kB / 480.1 MB, free: 6.305 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.6967, allocations: 0.7892 MB / 480.9 MB, free: 5.5 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.6969, allocations: 50.05 kB / 480.9 MB, free: 5.453 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.697, allocations: 95.97 kB / 481 MB, free: 5.422 MB / 346.7 MB Notification: Performance of SimCode: time 3.01e-07/0.697, allocations: 4 kB / 481 MB, free: 5.418 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/0.7237, allocations: 6.426 MB / 487.5 MB, free: 14.99 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002379/0.7241, allocations: 197 kB / 487.7 MB, free: 14.72 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.12/2.844, allocations: 0 / 487.7 MB, free: 14.72 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)