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.001325/0.001325, allocations: 100 kB / 15.05 MB, free: 1.105 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.001253/0.001253, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.797/1.797, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05576/0.05576, allocations: 10.74 MB / 281.1 MB, free: 10.56 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.0005375/0.0005375, allocations: 12 kB / 341.7 MB, free: 23.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.147, allocations: 50.01 MB / 391.7 MB, free: 5.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003516/0.1506, allocations: 1.598 MB / 393.3 MB, free: 4.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002419/0.1531, allocations: 1.015 MB / 394.3 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001753/0.1533, allocations: 0 / 394.3 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001137/0.1544, allocations: 275.4 kB / 394.6 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005149/0.155, allocations: 179.5 kB / 394.8 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008403/0.1558, allocations: 227.4 kB / 395 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003862/0.1562, allocations: 211.6 kB / 395.2 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001925/0.1564, allocations: 44.28 kB / 395.2 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002144/0.1566, allocations: 127.5 kB / 395.4 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.1569, allocations: 115.6 kB / 395.5 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.314e-05/0.1569, allocations: 8 kB / 395.5 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002178/0.1571, allocations: 67.88 kB / 395.5 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.1573, allocations: 67.81 kB / 395.6 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.1574, allocations: 77.45 kB / 395.7 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004381/0.1578, allocations: 275.6 kB / 395.9 MB, free: 1.422 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1579, allocations: 0 / 395.9 MB, free: 1.422 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.1579, allocations: 3.938 kB / 396 MB, free: 1.418 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1579, allocations: 0 / 396 MB, free: 1.418 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.001349/0.1592, allocations: 0.6222 MB / 396.6 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.226e-05/0.1593, allocations: 8.031 kB / 396.6 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.399e-05/0.1594, allocations: 38.56 kB / 396.6 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.714e-05/0.1595, allocations: 31.62 kB / 396.7 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000634/0.1601, allocations: 329.3 kB / 397 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.1602, allocations: 8 kB / 397 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.271e-05/0.1602, allocations: 8 kB / 397 MB, free: 276 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000347/0.1606, allocations: 139.1 kB / 397.1 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.1606, allocations: 3.953 kB / 397.1 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.1606, allocations: 4 kB / 397.1 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.1606, allocations: 8 kB / 397.1 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001601/0.1608, allocations: 51.97 kB / 397.2 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009415/0.1618, allocations: 484.3 kB / 397.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003606/0.1621, allocations: 126.8 kB / 397.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.276e-05/0.1622, allocations: 8.219 kB / 397.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003/0.1625, allocations: 127.2 kB / 397.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.472e-06/0.1625, allocations: 0 / 397.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006147/0.1631, allocations: 225.3 kB / 398.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.1633, allocations: 102.8 kB / 398.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006132/0.1639, allocations: 473.5 kB / 398.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.1639, allocations: 33.7 kB / 398.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.1641, allocations: 168.4 kB / 398.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.029e-05/0.1642, allocations: 39.45 kB / 398.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.395e-05/0.1642, allocations: 4 kB / 398.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002206/0.1644, allocations: 350.7 kB / 399.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.1645, allocations: 40.36 kB / 399.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.1647, allocations: 126.2 kB / 399.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.1649, allocations: 51.94 kB / 399.5 MB, free: 13.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1649, allocations: 7.938 kB / 399.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003739/0.1653, allocations: 185.2 kB / 399.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.1653, allocations: 8 kB / 399.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1653, allocations: 0 / 399.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/0.1654, allocations: 4 kB / 399.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.1655, allocations: 31.92 kB / 399.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.1655, allocations: 0 / 399.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.1657, allocations: 27.98 kB / 399.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/0.1657, allocations: 8 kB / 399.8 MB, free: 13.3 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 ($PRE.flipFlopSR.y1,flipFlopSR.y1,$PRE.flipFlopSR.y2,flipFlopSR.y2,$whenCondition3,$PRE.resetSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.setSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition1,resetSIGNAL.y,resetSIGNAL.combiTimeTable.nextTimeEvent,$PRE.resetSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.y,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.0002401/0.1659, allocations: 176 kB / 399.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.532e-05/0.166, allocations: 31.62 kB / 400 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.356e-05/0.1661, allocations: 42.92 kB / 400 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.1661, allocations: 0 / 400 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.1661, allocations: 128 / 400 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.1661, allocations: 0 / 400 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003678/0.1665, allocations: 297.5 kB / 400.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/0.1665, allocations: 7.938 kB / 400.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.929e-05/0.1666, allocations: 12.05 kB / 400.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.255e-06/0.1666, allocations: 3.984 kB / 400.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/0.1666, allocations: 7.938 kB / 400.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1666, allocations: 0 / 400.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1666, allocations: 0 / 400.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004627/0.1671, allocations: 232.3 kB / 400.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.1673, allocations: 120.6 kB / 400.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.785e-05/0.1673, allocations: 4 kB / 400.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.484e-05/0.1674, allocations: 11.98 kB / 400.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.979e-05/0.1675, allocations: 11.98 kB / 400.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.919e-05/0.1675, allocations: 8 kB / 400.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004533/0.168, allocations: 347.1 kB / 401 MB, free: 11.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.168, allocations: 0 / 401 MB, free: 11.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003887/0.1684, allocations: 51.98 kB / 401.1 MB, free: 11.88 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 (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.002014/0.1704, allocations: 1.085 MB / 402.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000411/0.1709, allocations: 120.1 kB / 402.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.1709, allocations: 0 / 402.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001524/0.171, allocations: 67.84 kB / 402.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004955/0.1716, allocations: 65.97 kB / 402.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004019/0.1756, allocations: 2.615 MB / 405 MB, free: 7.922 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005831/0.1762, allocations: 0.7835 MB / 405.8 MB, free: 7.113 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002079/0.1764, allocations: 42.27 kB / 405.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.1766, allocations: 99.39 kB / 406 MB, free: 6.977 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1766, allocations: 0 / 406 MB, free: 6.977 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.2017, allocations: 6.797 MB / 412.8 MB, free: 240 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003117/0.2021, allocations: 254.7 kB / 413 MB, free: 15.9 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.065/2.267, allocations: 8 kB / 413 MB, free: 15.89 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/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) Environment - environmentSimulation: