Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.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.basicLogicOperations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations") translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001178/0.001178, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.191/1.191, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08371/0.08371, allocations: 10.73 MB / 281.2 MB, free: 1.371 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.00136/0.00136, allocations: 71.89 kB / 341.2 MB, free: 5.184 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1878/0.1892, allocations: 49 MB / 390.2 MB, free: 49.69 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.003008/0.1923, allocations: 2.279 MB / 392.5 MB, free: 48.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.1939, allocations: 1.384 MB / 393.9 MB, free: 47.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.194, allocations: 8.062 kB / 393.9 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009167/0.195, allocations: 482.6 kB / 394.4 MB, free: 47 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.0005048/0.1955, allocations: 309.3 kB / 394.7 MB, free: 46.88 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008216/0.1963, allocations: 437.2 kB / 395.1 MB, free: 46.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004538/0.1968, allocations: 0.5572 MB / 395.6 MB, free: 46.42 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.1969, allocations: 111.9 kB / 395.8 MB, free: 46.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.1972, allocations: 242.4 kB / 396 MB, free: 46.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000225/0.1974, allocations: 239.7 kB / 396.2 MB, free: 46.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.576e-05/0.1975, allocations: 26.56 kB / 396.3 MB, free: 46.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002428/0.1977, allocations: 155.5 kB / 396.4 MB, free: 46.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.1979, allocations: 154.9 kB / 396.6 MB, free: 46.06 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001561/0.198, allocations: 217.3 kB / 396.8 MB, free: 45.9 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005419/0.1986, allocations: 0.5817 MB / 397.3 MB, free: 45.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1986, allocations: 4 kB / 397.4 MB, free: 45.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1986, allocations: 0 / 397.4 MB, free: 45.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.1986, allocations: 1.438 kB / 397.4 MB, free: 45.66 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009988/0.1996, allocations: 0.915 MB / 398.3 MB, free: 44.9 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.96e-05/0.1996, allocations: 10.12 kB / 398.3 MB, free: 44.9 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.813e-05/0.1997, allocations: 59.09 kB / 398.3 MB, free: 44.87 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004795/0.2002, allocations: 466.8 kB / 398.8 MB, free: 44.53 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.2002, allocations: 13.02 kB / 398.8 MB, free: 44.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.193e-05/0.2003, allocations: 20.94 kB / 398.8 MB, free: 44.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003857/0.2007, allocations: 248.4 kB / 399.1 MB, free: 44.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.2007, allocations: 0 / 399.1 MB, free: 44.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.127e-05/0.2007, allocations: 7.531 kB / 399.1 MB, free: 44.38 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.2007, allocations: 5.406 kB / 399.1 MB, free: 44.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002343/0.201, allocations: 133.7 kB / 399.2 MB, free: 44.33 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007128/0.2017, allocations: 0.673 MB / 399.9 MB, free: 43.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004121/0.2021, allocations: 225 kB / 400.1 MB, free: 43.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.2023, allocations: 91.56 kB / 400.2 MB, free: 43.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.2023, allocations: 6.25 kB / 400.2 MB, free: 43.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002813/0.2026, allocations: 187.8 kB / 400.4 MB, free: 43.46 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.2026, allocations: 0 / 400.4 MB, free: 43.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006853/0.2033, allocations: 399.8 kB / 400.8 MB, free: 43.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.2034, allocations: 142 kB / 400.9 MB, free: 43.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006634/0.204, allocations: 0.7062 MB / 401.6 MB, free: 42.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.2041, allocations: 42.56 kB / 401.7 MB, free: 42.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.2042, allocations: 241.8 kB / 401.9 MB, free: 42.47 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.163e-05/0.2042, allocations: 62.72 kB / 402 MB, free: 42.42 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.872e-05/0.2043, allocations: 62.44 kB / 402 MB, free: 42.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.207e-05/0.2044, allocations: 367 kB / 402.4 MB, free: 42.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.2045, allocations: 73.92 kB / 402.4 MB, free: 41.99 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.2047, allocations: 199.2 kB / 402.6 MB, free: 41.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003599/0.2051, allocations: 279.5 kB / 402.9 MB, free: 41.6 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2051, allocations: 0 / 402.9 MB, free: 41.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004693/0.2056, allocations: 329.3 kB / 403.2 MB, free: 41.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.2056, allocations: 10.06 kB / 403.2 MB, free: 41.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.2056, allocations: 2.281 kB / 403.3 MB, free: 41.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2056, allocations: 4.312 kB / 403.3 MB, free: 41.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.2058, allocations: 40.95 kB / 403.3 MB, free: 41.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.2058, allocations: 3.906 kB / 403.3 MB, free: 41.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.206, allocations: 32.73 kB / 403.3 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.206, allocations: 13.59 kB / 403.3 MB, free: 41.39 MB / 318.1 MB Warning: Assuming fixed start value for the following 4 variables: xor_gate.y[1]:DISCRETE(flow=false fixed = true ) "output vector" type: Boolean [1] or_gate.y[1]:DISCRETE(flow=false fixed = true ) "output vector" type: Boolean [1] not_gate.y[1]:DISCRETE(flow=false fixed = true ) "output vector" type: Boolean [1] and_gate.y[1]:DISCRETE(flow=false fixed = true ) "output vector" type: Boolean [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.xor_gate.y[1],xor_gate.y[1],$PRE.or_gate.y[1],or_gate.y[1],$PRE.not_gate.y[1],not_gate.y[1],$PRE.and_gate.y[1],and_gate.y[1],$PRE.booleanConstant2.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.booleanConstant1.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.booleanConstant.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,or_gate.u[2],booleanConstant2.combiTimeTable.nextTimeEventScaled,$PRE.booleanConstant2.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEvent,booleanConstant1.combiTimeTable.nextTimeEventScaled,$PRE.booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEvent,and_gate.u[3],not_gate_C.y[1],booleanConstant.combiTimeTable.nextTimeEventScaled,$PRE.booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant.combiTimeTable.nextTimeEvent,and_gate.u[4]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 1 * 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.0002206/0.2062, allocations: 251.7 kB / 403.6 MB, free: 41.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.417e-05/0.2063, allocations: 52.19 kB / 403.6 MB, free: 41.17 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.075e-05/0.2064, allocations: 54.91 kB / 403.7 MB, free: 41.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.178e-06/0.2064, allocations: 2.312 kB / 403.7 MB, free: 41.14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2064, allocations: 1.125 kB / 403.7 MB, free: 41.14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.2064, allocations: 7.984 kB / 403.7 MB, free: 41.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002829/0.2067, allocations: 412.7 kB / 404.1 MB, free: 40.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.2067, allocations: 1.312 kB / 404.1 MB, free: 40.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.226e-05/0.2067, allocations: 13.17 kB / 404.1 MB, free: 40.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.2068, allocations: 1.438 kB / 404.1 MB, free: 40.77 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.2068, allocations: 10.83 kB / 404.1 MB, free: 40.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2068, allocations: 2.125 kB / 404.1 MB, free: 40.76 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.2068, allocations: 0 / 404.1 MB, free: 40.76 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004855/0.2073, allocations: 371.3 kB / 404.5 MB, free: 40.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.844e-05/0.2074, allocations: 123 kB / 404.6 MB, free: 40.42 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.029e-05/0.2074, allocations: 20.23 kB / 404.6 MB, free: 40.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.2075, allocations: 14.8 kB / 404.7 MB, free: 40.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.849e-05/0.2076, allocations: 16.48 kB / 404.7 MB, free: 40.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.2076, allocations: 14.17 kB / 404.7 MB, free: 40.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004658/0.2081, allocations: 0.5125 MB / 405.2 MB, free: 40.11 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2081, allocations: 0 / 405.2 MB, free: 40.11 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003532/0.2085, allocations: 102.8 kB / 405.3 MB, free: 40.08 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: 18 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,and_gate.u[3],and_gate.u[4],and_gate.y[1],booleanConstant.combiTimeTable.nextTimeEvent,booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEvent,booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEvent,booleanConstant2.combiTimeTable.nextTimeEventScaled,not_gate.y[1],or_gate.u[2],or_gate.y[1],xor_gate.y[1],not_gate_C.y[1]) * Number of discrete states: 6 (booleanConstant2.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant.combiTimeTable.nextTimeEvent,booleanConstant1.combiTimeTable.nextTimeEvent,booleanConstant2.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 13 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0009067/0.2094, allocations: 458.9 kB / 405.7 MB, free: 39.87 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004691/0.2099, allocations: 254.8 kB / 406 MB, free: 39.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2099, allocations: 4.438 kB / 406 MB, free: 39.76 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.2101, allocations: 117.8 kB / 406.1 MB, free: 39.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005118/0.2106, allocations: 121.5 kB / 406.2 MB, free: 39.64 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.2116, allocations: 0.8861 MB / 407.1 MB, free: 39.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.2119, allocations: 0.8576 MB / 408 MB, free: 38.31 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.427e-05/0.212, allocations: 42.44 kB / 408 MB, free: 38.3 MB / 318.1 MB Notification: Performance of SimCode: time 1.9e-07/0.2121, allocations: 0 / 408 MB, free: 38.3 MB / 318.1 MB Notification: Performance of Templates: time 0.008335/0.2204, allocations: 7.222 MB / 415.2 MB, free: 31.41 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe 2>&1)