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.001836/0.001836, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002525/0.002525, allocations: 192.8 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.394/3.394, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08732/0.08732, allocations: 10.75 MB / 280.5 MB, free: 10.5 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.002507/0.002507, allocations: 63.91 kB / 340.7 MB, free: 23.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1231, allocations: 49.02 MB / 389.7 MB, free: 6.133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.005659/0.1289, allocations: 1.953 MB / 391.6 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002894/0.1318, allocations: 1.112 MB / 392.7 MB, free: 3.039 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000271/0.1321, allocations: 0 / 392.7 MB, free: 3.039 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001241/0.1334, allocations: 315.2 kB / 393 MB, free: 2.73 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0007704/0.1342, allocations: 211.3 kB / 393.2 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.1353, allocations: 271.3 kB / 393.5 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006856/0.136, allocations: 339.2 kB / 393.8 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.1362, allocations: 44.58 kB / 393.9 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003644/0.1366, allocations: 143.5 kB / 394 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003746/0.1369, allocations: 151.4 kB / 394.2 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.382e-05/0.1371, allocations: 20 kB / 394.2 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003575/0.1374, allocations: 91.89 kB / 394.3 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001995/0.1376, allocations: 87.73 kB / 394.4 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002309/0.1379, allocations: 127.2 kB / 394.5 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008332/0.1387, allocations: 358.8 kB / 394.8 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1387, allocations: 0 / 394.8 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1388, allocations: 0 / 394.8 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.073e-05/0.1388, allocations: 0 / 394.8 MB, free: 0.9219 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.001667/0.1405, allocations: 0.6766 MB / 395.5 MB, free: 188 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.1405, allocations: 11.89 kB / 395.5 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.107e-05/0.1406, allocations: 42.73 kB / 395.6 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.1408, allocations: 36.47 kB / 395.6 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007197/0.1415, allocations: 330.4 kB / 395.9 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.1415, allocations: 8.312 kB / 395.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.591e-05/0.1416, allocations: 19.92 kB / 396 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004339/0.142, allocations: 131 kB / 396.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.1421, allocations: 4 kB / 396.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.1421, allocations: 4 kB / 396.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.1421, allocations: 0 / 396.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002344/0.1424, allocations: 59.95 kB / 396.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.1434, allocations: 472.3 kB / 396.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004543/0.1439, allocations: 134.8 kB / 396.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.1441, allocations: 52.77 kB / 396.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.413e-05/0.1441, allocations: 7.938 kB / 396.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003352/0.1445, allocations: 119.1 kB / 396.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.974e-06/0.1445, allocations: 0 / 396.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000789/0.1453, allocations: 233.3 kB / 397.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.1454, allocations: 110.7 kB / 397.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007747/0.1462, allocations: 473.6 kB / 397.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.1462, allocations: 33.7 kB / 397.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001854/0.1464, allocations: 172.3 kB / 397.9 MB, free: 13.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.135e-05/0.1465, allocations: 39.45 kB / 398 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.251e-05/0.1466, allocations: 41.7 kB / 398 MB, free: 13.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.1468, allocations: 346.8 kB / 398.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.147, allocations: 39.98 kB / 398.4 MB, free: 13.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002412/0.1472, allocations: 129.4 kB / 398.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000347/0.1476, allocations: 145.9 kB / 398.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.1476, allocations: 0 / 398.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005185/0.1481, allocations: 189.1 kB / 398.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.1482, allocations: 4 kB / 398.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1482, allocations: 0 / 398.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.695e-05/0.1482, allocations: 7.984 kB / 398.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.1484, allocations: 27.94 kB / 398.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/0.1484, allocations: 12.14 kB / 398.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001995/0.1486, allocations: 19.84 kB / 398.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.1487, allocations: 4 kB / 398.9 MB, free: 12.54 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.000246/0.1489, allocations: 176 kB / 399.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.871e-05/0.149, allocations: 35.56 kB / 399.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001266/0.1491, allocations: 34.97 kB / 399.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/0.1492, allocations: 4 kB / 399.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.1492, allocations: 0 / 399.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.1492, allocations: 7.984 kB / 399.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003942/0.1496, allocations: 301.4 kB / 399.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.1496, allocations: 3.938 kB / 399.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.407e-05/0.1497, allocations: 11.94 kB / 399.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1497, allocations: 3.938 kB / 399.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.1497, allocations: 4.109 kB / 399.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.1497, allocations: 8 kB / 399.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1497, allocations: 0 / 399.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005468/0.1503, allocations: 220.5 kB / 399.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001204/0.1504, allocations: 112.7 kB / 399.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.21e-05/0.1505, allocations: 4 kB / 399.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.1506, allocations: 11.98 kB / 399.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.86e-05/0.1507, allocations: 11.98 kB / 399.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.861e-05/0.1508, allocations: 8 kB / 399.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005327/0.1513, allocations: 339.1 kB / 400.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1513, allocations: 4 kB / 400.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004737/0.1518, allocations: 59.89 kB / 400.2 MB, free: 11.1 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.002156/0.154, allocations: 1.078 MB / 401.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004857/0.1545, allocations: 140 kB / 401.5 MB, free: 9.969 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1545, allocations: 3.938 kB / 401.5 MB, free: 9.965 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001929/0.1547, allocations: 67.91 kB / 401.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006054/0.1553, allocations: 70.34 kB / 401.6 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005461/0.1608, allocations: 3.029 MB / 404.6 MB, free: 6.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/0.1613, allocations: 0.7792 MB / 405.4 MB, free: 5.891 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002233/0.1616, allocations: 46.27 kB / 405.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002204/0.1618, allocations: 91.41 kB / 405.5 MB, free: 5.758 MB / 302.1 MB Notification: Performance of SimCode: time 7.02e-07/0.1618, allocations: 0 / 405.5 MB, free: 5.758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04434/0.2061, allocations: 7.44 MB / 413 MB, free: 14.31 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.34/15.54, allocations: 15.94 kB / 413 MB, free: 14.3 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe 2>&1)