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.001074/0.001074, allocations: 108 kB / 15.61 MB, free: 152 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.00112/0.00112, allocations: 195.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07624/0.07624, allocations: 10.74 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.002469/0.002469, allocations: 71.89 kB / 340.7 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1351, allocations: 49.01 MB / 389.7 MB, free: 6.148 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003916/0.1391, allocations: 1.961 MB / 391.6 MB, free: 4.172 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001784/0.1409, allocations: 1.112 MB / 392.7 MB, free: 3.051 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.141, allocations: 0 / 392.7 MB, free: 3.051 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007985/0.1418, allocations: 315.2 kB / 393 MB, free: 2.742 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.0004487/0.1423, allocations: 211.3 kB / 393.3 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006415/0.1429, allocations: 263.3 kB / 393.5 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003477/0.1433, allocations: 351.1 kB / 393.9 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.1434, allocations: 44.58 kB / 393.9 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001923/0.1436, allocations: 143.5 kB / 394 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.1438, allocations: 151.4 kB / 394.2 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.796e-05/0.1439, allocations: 16 kB / 394.2 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.1441, allocations: 87.89 kB / 394.3 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.1442, allocations: 87.73 kB / 394.4 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.1443, allocations: 135.2 kB / 394.5 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.1447, allocations: 362.8 kB / 394.9 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1447, allocations: 0 / 394.9 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1448, allocations: 0 / 394.9 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.1448, allocations: 0 / 394.9 MB, free: 0.9258 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.0009716/0.1457, allocations: 0.6649 MB / 395.5 MB, free: 204 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1458, allocations: 11.89 kB / 395.5 MB, free: 192 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.272e-05/0.1458, allocations: 42.73 kB / 395.6 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.57e-05/0.1459, allocations: 40.41 kB / 395.6 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004254/0.1464, allocations: 334.4 kB / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.1464, allocations: 8.375 kB / 395.9 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.865e-05/0.1464, allocations: 19.92 kB / 396 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002661/0.1467, allocations: 130.8 kB / 396.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.1467, allocations: 0 / 396.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.1467, allocations: 0 / 396.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.1467, allocations: 0 / 396.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001506/0.1469, allocations: 67.95 kB / 396.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006404/0.1476, allocations: 476.3 kB / 396.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003159/0.1479, allocations: 126.8 kB / 396.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.148, allocations: 56.7 kB / 396.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.148, allocations: 0 / 396.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002439/0.1483, allocations: 115.3 kB / 396.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.703e-06/0.1483, allocations: 0 / 396.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005136/0.1488, allocations: 237.3 kB / 397.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.974e-05/0.1489, allocations: 110.7 kB / 397.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004776/0.1494, allocations: 473.6 kB / 397.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.1494, allocations: 29.7 kB / 397.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.1495, allocations: 168.3 kB / 397.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.198e-05/0.1496, allocations: 43.45 kB / 398 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.664e-05/0.1497, allocations: 41.7 kB / 398 MB, free: 13.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1498, allocations: 350.8 kB / 398.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.1499, allocations: 39.98 kB / 398.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.1501, allocations: 125.4 kB / 398.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002365/0.1503, allocations: 141.9 kB / 398.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1503, allocations: 0 / 398.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003466/0.1507, allocations: 197.1 kB / 398.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.1507, allocations: 4 kB / 398.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.1507, allocations: 7.984 kB / 398.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.1508, allocations: 0 / 398.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.1509, allocations: 23.94 kB / 398.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.1509, allocations: 7.984 kB / 398.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.151, allocations: 19.84 kB / 398.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.151, allocations: 4.047 kB / 398.9 MB, free: 12.56 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.0001717/0.1512, allocations: 188.1 kB / 399.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.789e-05/0.1513, allocations: 31.56 kB / 399.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.413e-05/0.1513, allocations: 38.98 kB / 399.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1514, allocations: 3.984 kB / 399.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1514, allocations: 0 / 399.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.1514, allocations: 0 / 399.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002631/0.1516, allocations: 301.4 kB / 399.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.968e-06/0.1517, allocations: 7.875 kB / 399.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.394e-05/0.1517, allocations: 8.125 kB / 399.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.1517, allocations: 8 kB / 399.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.1517, allocations: 11.98 kB / 399.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1517, allocations: 0 / 399.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1517, allocations: 0 / 399.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000369/0.1521, allocations: 216.5 kB / 399.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.804e-05/0.1522, allocations: 112.7 kB / 399.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.561e-05/0.1523, allocations: 4 kB / 399.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.887e-05/0.1524, allocations: 11.98 kB / 399.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.243e-05/0.1524, allocations: 15.98 kB / 399.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.1524, allocations: 4 kB / 399.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003576/0.1528, allocations: 351.1 kB / 400.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1528, allocations: 0 / 400.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002961/0.1531, allocations: 55.91 kB / 400.2 MB, free: 11.11 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.001542/0.1547, allocations: 1.086 MB / 401.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003299/0.155, allocations: 131.8 kB / 401.5 MB, free: 9.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.155, allocations: 0 / 401.5 MB, free: 9.973 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001324/0.1552, allocations: 63.91 kB / 401.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004144/0.1556, allocations: 74.67 kB / 401.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003449/0.159, allocations: 3.033 MB / 404.6 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.1594, allocations: 0.7792 MB / 405.4 MB, free: 5.895 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001275/0.1595, allocations: 46.25 kB / 405.4 MB, free: 5.852 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.1596, allocations: 91.41 kB / 405.5 MB, free: 5.762 MB / 302.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1597, allocations: 0 / 405.5 MB, free: 5.762 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02825/0.1879, allocations: 7.443 MB / 413 MB, free: 14.32 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.858/8.046, allocations: 20.31 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 & /home/hudson/saved_omc/OMSimulator/install/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)