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: translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001491/0.00149, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.657/1.657, allocations: 205.1 MB / 223.2 MB, free: 12.11 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05629/0.05629, allocations: 10.74 MB / 281.3 MB, free: 1.285 MB / 222.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.001486/0.001486, allocations: 72.58 kB / 342 MB, free: 4.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3063, allocations: 49 MB / 391 MB, free: 49.95 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003539/0.3099, allocations: 1.961 MB / 392.9 MB, free: 48.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.3118, allocations: 1.118 MB / 394.1 MB, free: 47.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.312, allocations: 5 kB / 394.1 MB, free: 47.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000998/0.3131, allocations: 323.1 kB / 394.4 MB, free: 47.72 MB / 318.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.0005038/0.3136, allocations: 201.1 kB / 394.6 MB, free: 47.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007691/0.3143, allocations: 267 kB / 394.8 MB, free: 47.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000417/0.3148, allocations: 346.2 kB / 395.2 MB, free: 47.36 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.3149, allocations: 36.17 kB / 395.2 MB, free: 47.35 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.3151, allocations: 147.4 kB / 395.4 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.3153, allocations: 157.3 kB / 395.5 MB, free: 47.22 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.833e-05/0.3154, allocations: 16.25 kB / 395.5 MB, free: 47.22 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002257/0.3156, allocations: 91.62 kB / 395.6 MB, free: 47.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.3157, allocations: 93.44 kB / 395.7 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.3158, allocations: 126.4 kB / 395.8 MB, free: 47.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004551/0.3163, allocations: 368.3 kB / 396.2 MB, free: 46.92 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3163, allocations: 0 / 396.2 MB, free: 46.92 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3163, allocations: 1.25 kB / 396.2 MB, free: 46.92 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.3163, allocations: 0 / 396.2 MB, free: 46.92 MB / 318.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.0009195/0.3173, allocations: 0.667 MB / 396.9 MB, free: 46.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.3173, allocations: 12.92 kB / 396.9 MB, free: 46.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.733e-05/0.3174, allocations: 37.41 kB / 396.9 MB, free: 46.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/0.3178, allocations: 345.5 kB / 397.2 MB, free: 46.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.3178, allocations: 4.75 kB / 397.3 MB, free: 46.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.807e-05/0.3179, allocations: 15.14 kB / 397.3 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002661/0.3181, allocations: 135.1 kB / 397.4 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.3182, allocations: 1.156 kB / 397.4 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.3182, allocations: 6.562 kB / 397.4 MB, free: 45.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.3182, allocations: 1.188 kB / 397.4 MB, free: 45.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001531/0.3184, allocations: 58.28 kB / 397.5 MB, free: 45.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006417/0.319, allocations: 459.5 kB / 397.9 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003014/0.3193, allocations: 142 kB / 398.1 MB, free: 45.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.3194, allocations: 49.59 kB / 398.1 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.3195, allocations: 3.312 kB / 398.1 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00024/0.3197, allocations: 134.1 kB / 398.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.3197, allocations: 0 / 398.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005045/0.3202, allocations: 226.7 kB / 398.5 MB, free: 45.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.3203, allocations: 109.9 kB / 398.6 MB, free: 45.14 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005118/0.3208, allocations: 472.5 kB / 399 MB, free: 44.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.3208, allocations: 29.23 kB / 399.1 MB, free: 44.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.3209, allocations: 173.9 kB / 399.2 MB, free: 44.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.899e-05/0.321, allocations: 38.61 kB / 399.3 MB, free: 44.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.245e-05/0.3211, allocations: 40.66 kB / 399.3 MB, free: 44.7 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.3212, allocations: 346.1 kB / 399.6 MB, free: 44.37 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.3213, allocations: 40.22 kB / 399.7 MB, free: 44.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.3214, allocations: 130.4 kB / 399.8 MB, free: 44.24 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.3216, allocations: 135.2 kB / 399.9 MB, free: 44.14 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.3216, allocations: 2.656 kB / 399.9 MB, free: 44.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003388/0.322, allocations: 202.3 kB / 400.1 MB, free: 44.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.322, allocations: 8.594 kB / 400.1 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.322, allocations: 4.938 kB / 400.2 MB, free: 44.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/0.3221, allocations: 3.406 kB / 400.2 MB, free: 44.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.3222, allocations: 26.92 kB / 400.2 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.3222, allocations: 10.25 kB / 400.2 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.3224, allocations: 11.95 kB / 400.2 MB, free: 43.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/0.3224, allocations: 10.12 kB / 400.2 MB, free: 43.99 MB / 318.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.0001804/0.3226, allocations: 177.2 kB / 400.4 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.516e-05/0.3226, allocations: 39.53 kB / 400.4 MB, free: 43.81 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.622e-05/0.3227, allocations: 39.92 kB / 400.5 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.3227, allocations: 1.469 kB / 400.5 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3227, allocations: 4 kB / 400.5 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3227, allocations: 1.438 kB / 400.5 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002799/0.323, allocations: 295.3 kB / 400.8 MB, free: 43.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.323, allocations: 1.531 kB / 400.8 MB, free: 43.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.617e-05/0.3231, allocations: 18.34 kB / 400.8 MB, free: 43.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.3231, allocations: 0 / 400.8 MB, free: 43.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.3231, allocations: 2.719 kB / 400.8 MB, free: 43.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3231, allocations: 1.062 kB / 400.8 MB, free: 43.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3231, allocations: 3.984 kB / 400.8 MB, free: 43.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003943/0.3235, allocations: 218 kB / 401 MB, free: 43.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.68e-05/0.3236, allocations: 105.4 kB / 401.1 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.844e-05/0.3237, allocations: 11.48 kB / 401.1 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.468e-05/0.3238, allocations: 8.844 kB / 401.1 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.706e-05/0.3238, allocations: 9.109 kB / 401.1 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.681e-05/0.3239, allocations: 14.05 kB / 401.1 MB, free: 43.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003948/0.3243, allocations: 344.7 kB / 401.5 MB, free: 43 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3243, allocations: 3.938 kB / 401.5 MB, free: 43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003615/0.3246, allocations: 61.67 kB / 401.5 MB, free: 42.98 MB / 318.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.001078/0.3257, allocations: 438.4 kB / 402 MB, free: 42.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003859/0.3261, allocations: 123.3 kB / 402.1 MB, free: 42.72 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3261, allocations: 0 / 402.1 MB, free: 42.72 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001754/0.3263, allocations: 64.94 kB / 402.2 MB, free: 42.7 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004783/0.3268, allocations: 75.38 kB / 402.2 MB, free: 42.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.328, allocations: 0.5063 MB / 402.7 MB, free: 42.34 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.3283, allocations: 0.7796 MB / 403.5 MB, free: 41.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.3284, allocations: 43.75 kB / 403.6 MB, free: 41.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.223e-05/0.3285, allocations: 29.28 kB / 403.6 MB, free: 41.56 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3285, allocations: 0 / 403.6 MB, free: 41.56 MB / 318.1 MB Notification: Performance of Templates: time 0.009234/0.3377, allocations: 4.043 MB / 407.6 MB, free: 39.53 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.makefile (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 & ./IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe 2>&1)