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.001524/0.001524, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002106/0.002106, allocations: 191.5 kB / 16.25 MB, free: 6.629 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.666/1.666, allocations: 205.1 MB / 222.1 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06841/0.06841, allocations: 10.73 MB / 280.2 MB, free: 10.66 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.001339/0.001339, allocations: 75.77 kB / 340.1 MB, free: 23.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1077, allocations: 49.01 MB / 389.2 MB, free: 6.512 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.006091/0.1139, allocations: 2.014 MB / 391.2 MB, free: 4.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003651/0.1176, allocations: 1.096 MB / 392.3 MB, free: 3.375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002444/0.1179, allocations: 11.94 kB / 392.3 MB, free: 3.363 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00142/0.1194, allocations: 307.4 kB / 392.6 MB, free: 3.062 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008485/0.1202, allocations: 191.5 kB / 392.8 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001275/0.1215, allocations: 255.5 kB / 393 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007577/0.1223, allocations: 347.2 kB / 393.4 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/0.1225, allocations: 44.56 kB / 393.4 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004305/0.123, allocations: 143.5 kB / 393.5 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003779/0.1234, allocations: 155.4 kB / 393.7 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.548e-05/0.1235, allocations: 19.98 kB / 393.7 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003109/0.1238, allocations: 83.89 kB / 393.8 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001831/0.124, allocations: 91.72 kB / 393.9 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002712/0.1243, allocations: 139.2 kB / 394 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007222/0.125, allocations: 358.7 kB / 394.4 MB, free: 1.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1251, allocations: 0 / 394.4 MB, free: 1.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1251, allocations: 0 / 394.4 MB, free: 1.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.1251, allocations: 4 kB / 394.4 MB, free: 1.266 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.001947/0.1271, allocations: 0.6644 MB / 395 MB, free: 0.543 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.044e-05/0.1272, allocations: 15.89 kB / 395 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.354e-05/0.1272, allocations: 34.75 kB / 395.1 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.1274, allocations: 40.47 kB / 395.1 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007874/0.1282, allocations: 338.3 kB / 395.5 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/0.1283, allocations: 8.375 kB / 395.5 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.107e-05/0.1283, allocations: 11.94 kB / 395.5 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005019/0.1288, allocations: 136.2 kB / 395.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.1289, allocations: 3.984 kB / 395.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.359e-05/0.1289, allocations: 0 / 395.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1289, allocations: 8 kB / 395.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002861/0.1292, allocations: 51.97 kB / 395.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.1303, allocations: 476.3 kB / 396.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00056/0.1309, allocations: 134.8 kB / 396.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/0.1311, allocations: 44.84 kB / 396.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.903e-05/0.1312, allocations: 7.922 kB / 396.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004029/0.1316, allocations: 119.3 kB / 396.4 MB, free: 15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.595e-06/0.1316, allocations: 4 kB / 396.4 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008567/0.1325, allocations: 233.1 kB / 396.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.1326, allocations: 118.7 kB / 396.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009274/0.1336, allocations: 465.7 kB / 397.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.017e-05/0.1336, allocations: 33.7 kB / 397.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.1339, allocations: 168.3 kB / 397.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.287e-05/0.134, allocations: 43.44 kB / 397.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.1341, allocations: 41.7 kB / 397.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002568/0.1344, allocations: 346.8 kB / 397.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.1346, allocations: 47.91 kB / 397.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000381/0.135, allocations: 122.5 kB / 398 MB, free: 13.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004523/0.1355, allocations: 133.9 kB / 398.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.1355, allocations: 0 / 398.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007178/0.1362, allocations: 201.2 kB / 398.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.35e-05/0.1363, allocations: 8 kB / 398.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.1363, allocations: 4 kB / 398.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.1364, allocations: 4 kB / 398.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000224/0.1366, allocations: 23.92 kB / 398.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.1366, allocations: 4 kB / 398.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002408/0.1369, allocations: 23.83 kB / 398.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.1369, allocations: 12.16 kB / 398.4 MB, free: 12.89 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.0002949/0.1372, allocations: 172.1 kB / 398.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.433e-05/0.1374, allocations: 35.56 kB / 398.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.1375, allocations: 34.92 kB / 398.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.1375, allocations: 4 kB / 398.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.1375, allocations: 0 / 398.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.1375, allocations: 0 / 398.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005056/0.1381, allocations: 301.4 kB / 399 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/0.1381, allocations: 7.922 kB / 399 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.071e-05/0.1382, allocations: 11.94 kB / 399 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.678e-06/0.1382, allocations: 4 kB / 399 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/0.1382, allocations: 0 / 399 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1382, allocations: 0 / 399 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1383, allocations: 0 / 399 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006809/0.1389, allocations: 220.6 kB / 399.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.1391, allocations: 108.7 kB / 399.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.146e-05/0.1392, allocations: 11.94 kB / 399.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.1394, allocations: 11.98 kB / 399.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.776e-05/0.1395, allocations: 16.02 kB / 399.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-05/0.1396, allocations: 11.98 kB / 399.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006666/0.1402, allocations: 343.1 kB / 399.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1403, allocations: 0 / 399.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006106/0.1409, allocations: 59.89 kB / 399.7 MB, free: 11.46 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.002816/0.1437, allocations: 1.078 MB / 400.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006037/0.1443, allocations: 135.8 kB / 401 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.1444, allocations: 4 kB / 401 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002616/0.1446, allocations: 64.17 kB / 401 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007683/0.1454, allocations: 86.52 kB / 401.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00591/0.1514, allocations: 3.087 MB / 404.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.1518, allocations: 0.7831 MB / 405 MB, free: 6.164 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001561/0.152, allocations: 38.27 kB / 405 MB, free: 6.129 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001756/0.1522, allocations: 99.39 kB / 405.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of SimCode: time 1.382e-06/0.1522, allocations: 0 / 405.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02096/0.1732, allocations: 7.3 MB / 412.4 MB, free: 14.76 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002667/0.1735, allocations: 279.8 kB / 412.7 MB, free: 14.38 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.133/2.307, allocations: 0 / 412.7 MB, free: 14.38 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)