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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.00758/0.00758, allocations: 96.56 kB / 15.73 MB, free: 6.043 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.001667/0.001667, allocations: 195.5 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1669/0.1669, allocations: 11.18 MB / 301.7 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 59.91 kB / 417.4 MB, free: 6.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2283, allocations: 51.97 MB / 469.3 MB, free: 16.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.002734/0.2311, allocations: 1.969 MB / 471.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001553/0.2327, allocations: 1.195 MB / 472.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.739e-05/0.2328, allocations: 2.594 kB / 472.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007061/0.2335, allocations: 308.5 kB / 472.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003778/0.2339, allocations: 215.4 kB / 473 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005966/0.2345, allocations: 294.1 kB / 473.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003322/0.2348, allocations: 349.3 kB / 473.6 MB, free: 14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.2349, allocations: 44.39 kB / 473.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.2351, allocations: 143.2 kB / 473.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001873/0.2353, allocations: 146.4 kB / 474 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.254e-05/0.2353, allocations: 16.5 kB / 474 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002126/0.2356, allocations: 98.47 kB / 474.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.2357, allocations: 93.89 kB / 474.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.2358, allocations: 122.2 kB / 474.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004209/0.2362, allocations: 371.3 kB / 474.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2363, allocations: 0 / 474.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2363, allocations: 1.344 kB / 474.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.2363, allocations: 0 / 474.6 MB, free: 13.47 MB / 350.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.0008089/0.2371, allocations: 0.6834 MB / 475.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.2371, allocations: 17.36 kB / 475.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.19e-05/0.2372, allocations: 41.05 kB / 475.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.265e-05/0.2372, allocations: 36.3 kB / 475.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003327/0.2376, allocations: 347.2 kB / 475.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.2376, allocations: 5.281 kB / 475.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/0.2376, allocations: 13.78 kB / 475.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.2379, allocations: 130.3 kB / 475.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.2379, allocations: 4 kB / 475.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.2379, allocations: 9.312 kB / 475.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.2379, allocations: 1.375 kB / 475.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001366/0.2381, allocations: 54.22 kB / 476 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004819/0.2385, allocations: 466.5 kB / 476.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002926/0.2389, allocations: 139.4 kB / 476.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.336e-05/0.239, allocations: 47.84 kB / 476.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.239, allocations: 2.344 kB / 476.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002088/0.2392, allocations: 128 kB / 476.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.2392, allocations: 4 kB / 476.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000465/0.2397, allocations: 229.9 kB / 477 MB, free: 11.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.013e-05/0.2397, allocations: 113.2 kB / 477.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004325/0.2402, allocations: 473.8 kB / 477.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.2402, allocations: 32.33 kB / 477.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.438e-05/0.2403, allocations: 165 kB / 477.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.194e-05/0.2403, allocations: 42.05 kB / 477.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.542e-05/0.2404, allocations: 45.55 kB / 477.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.31e-05/0.2405, allocations: 347.9 kB / 478.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.2406, allocations: 38.95 kB / 478.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.2407, allocations: 130.5 kB / 478.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.2409, allocations: 140.1 kB / 478.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2409, allocations: 1.125 kB / 478.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003009/0.2412, allocations: 203.7 kB / 478.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.2413, allocations: 6.562 kB / 478.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.2413, allocations: 1.031 kB / 478.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.2413, allocations: 3.031 kB / 478.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.2414, allocations: 26.7 kB / 478.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.2414, allocations: 7.031 kB / 478.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.2415, allocations: 12.06 kB / 478.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.2416, allocations: 14.52 kB / 478.7 MB, free: 10.12 MB / 350.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.0001308/0.2417, allocations: 177.3 kB / 478.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.348e-05/0.2418, allocations: 46.7 kB / 479 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.357e-05/0.2418, allocations: 32.02 kB / 479 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.2418, allocations: 2.156 kB / 479 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.2418, allocations: 0 / 479 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.2419, allocations: 4.875 kB / 479 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002092/0.2421, allocations: 296.4 kB / 479.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2421, allocations: 7.938 kB / 479.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.468e-05/0.2421, allocations: 15.45 kB / 479.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.2421, allocations: 0 / 479.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.2421, allocations: 6.594 kB / 479.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2421, allocations: 1.188 kB / 479.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2422, allocations: 0 / 479.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003089/0.2425, allocations: 218.2 kB / 479.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.926e-05/0.2425, allocations: 113.8 kB / 479.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.084e-05/0.2426, allocations: 6.5 kB / 479.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.303e-05/0.2427, allocations: 13.48 kB / 479.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.2427, allocations: 16.98 kB / 479.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.2428, allocations: 9.406 kB / 479.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003673/0.2431, allocations: 349.5 kB / 480 MB, free: 9.125 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2431, allocations: 0 / 480 MB, free: 9.125 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002897/0.2434, allocations: 54.3 kB / 480.1 MB, free: 9.113 MB / 350.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.001814/0.2453, allocations: 1.08 MB / 481.2 MB, free: 8.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002999/0.2456, allocations: 123.2 kB / 481.3 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2456, allocations: 0 / 481.3 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.2457, allocations: 75.86 kB / 481.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000391/0.2461, allocations: 81.2 kB / 481.4 MB, free: 8.195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002915/0.249, allocations: 2.999 MB / 484.4 MB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001888/0.2492, allocations: 0.7875 MB / 485.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.2494, allocations: 48.59 kB / 485.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.2495, allocations: 89.09 kB / 485.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2495, allocations: 0 / 485.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02962/0.2791, allocations: 7.577 MB / 492.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.169/8.448, allocations: 12.55 kB / 492.9 MB, free: 1.387 MB / 350.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)