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.000771/0.000771, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008422/0.0008423, allocations: 172.7 kB / 15.95 MB, free: 208 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.209/1.209, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05141/0.05141, allocations: 10.75 MB / 281.1 MB, free: 10.54 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.0004568/0.0004569, allocations: 22.97 kB / 341.7 MB, free: 23.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06692/0.06738, allocations: 50 MB / 391.7 MB, free: 5.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.001914/0.06933, allocations: 1.621 MB / 393.4 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.07079, allocations: 1.038 MB / 394.4 MB, free: 2.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.07092, allocations: 4 kB / 394.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006489/0.07158, allocations: 287.3 kB / 394.7 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003632/0.07195, allocations: 183.5 kB / 394.9 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005663/0.07253, allocations: 227.6 kB / 395.1 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000324/0.07286, allocations: 307.1 kB / 395.4 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.07297, allocations: 40.23 kB / 395.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.07315, allocations: 127.5 kB / 395.5 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.07331, allocations: 131.5 kB / 395.7 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.644e-05/0.07335, allocations: 8 kB / 395.7 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000149/0.0735, allocations: 75.88 kB / 395.8 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.664e-05/0.0736, allocations: 75.75 kB / 395.8 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.768e-05/0.07366, allocations: 69.56 kB / 395.9 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.07393, allocations: 267.6 kB / 396.2 MB, free: 1.207 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.07394, allocations: 0 / 396.2 MB, free: 1.207 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.07395, allocations: 0 / 396.2 MB, free: 1.207 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.07396, allocations: 4 kB / 396.2 MB, free: 1.203 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.0007468/0.07471, allocations: 0.6256 MB / 396.8 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.07476, allocations: 12.03 kB / 396.8 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.512e-05/0.0748, allocations: 34.56 kB / 396.8 MB, free: 476 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.507e-05/0.07486, allocations: 43.55 kB / 396.9 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000352/0.07522, allocations: 325.3 kB / 397.2 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.07524, allocations: 8 kB / 397.2 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.012e-05/0.07527, allocations: 12 kB / 397.2 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002344/0.07551, allocations: 134.8 kB / 397.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.07553, allocations: 3.953 kB / 397.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.07554, allocations: 0 / 397.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.07555, allocations: 4 kB / 397.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.07569, allocations: 59.91 kB / 397.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005375/0.07623, allocations: 472.3 kB / 397.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002618/0.07651, allocations: 138.8 kB / 398 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.594e-05/0.07661, allocations: 48.83 kB / 398.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.07664, allocations: 7.984 kB / 398.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001971/0.07685, allocations: 115.3 kB / 398.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.07686, allocations: 0 / 398.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004298/0.07729, allocations: 233.3 kB / 398.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.07735, allocations: 106.8 kB / 398.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004438/0.0778, allocations: 473.5 kB / 399 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.07783, allocations: 29.7 kB / 399 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.07794, allocations: 164.4 kB / 399.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.07799, allocations: 43.45 kB / 399.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.515e-06/0.078, allocations: 4 kB / 399.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.07812, allocations: 350.8 kB / 399.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.462e-05/0.07822, allocations: 40.36 kB / 399.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.07836, allocations: 130.1 kB / 399.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001036/0.07848, allocations: 48 kB / 399.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.07848, allocations: 0 / 399.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003105/0.0788, allocations: 185.2 kB / 399.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.07883, allocations: 11.98 kB / 400 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.07884, allocations: 0 / 400 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.07885, allocations: 7.938 kB / 400 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.07896, allocations: 27.98 kB / 400 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.07897, allocations: 7.922 kB / 400 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.07908, allocations: 20 kB / 400 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.07911, allocations: 12 kB / 400 MB, free: 13.04 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.0001415/0.07925, allocations: 184.1 kB / 400.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.723e-05/0.0793, allocations: 31.62 kB / 400.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.648e-05/0.07937, allocations: 38.97 kB / 400.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.07938, allocations: 0 / 400.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.07938, allocations: 0 / 400.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.07939, allocations: 0 / 400.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000231/0.07963, allocations: 301.4 kB / 400.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.07964, allocations: 4 kB / 400.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.596e-05/0.07968, allocations: 15.94 kB / 400.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.07969, allocations: 0 / 400.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.07971, allocations: 7.984 kB / 400.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.07971, allocations: 0 / 400.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.07972, allocations: 0 / 400.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003127/0.08004, allocations: 220.3 kB / 400.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.866e-05/0.08012, allocations: 120.6 kB / 400.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.08017, allocations: 11.98 kB / 400.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-05/0.08026, allocations: 8 kB / 401 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.08031, allocations: 11.98 kB / 401 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.08033, allocations: 11.98 kB / 401 MB, free: 11.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003239/0.08066, allocations: 347.1 kB / 401.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08067, allocations: 0 / 401.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.08095, allocations: 52 kB / 401.4 MB, free: 11.61 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.001288/0.08224, allocations: 1.089 MB / 402.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002568/0.08251, allocations: 119.8 kB / 402.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.08252, allocations: 320 / 402.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.08265, allocations: 71.91 kB / 402.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.083, allocations: 65.97 kB / 402.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.0853, allocations: 1.768 MB / 404.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.08558, allocations: 0.7796 MB / 405.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.08572, allocations: 50.5 kB / 405.3 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.08585, allocations: 91.41 kB / 405.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.08585, allocations: 0 / 405.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01683/0.1027, allocations: 6.816 MB / 412.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.1029, allocations: 260.5 kB / 412.5 MB, free: 468 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/1.827, allocations: 0 / 412.5 MB, free: 468 kB / 302.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: