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.001247/0.001247, allocations: 103.8 kB / 16.36 MB, free: 5.547 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.0011/0.0011, allocations: 194.5 kB / 17.31 MB, free: 5.184 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.564/1.564, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09241/0.09241, allocations: 10.75 MB / 281.3 MB, free: 1.312 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.001713/0.001713, allocations: 67.91 kB / 342 MB, free: 4.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3047, allocations: 49 MB / 391 MB, free: 49.99 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.00459/0.3093, allocations: 2.296 MB / 393.3 MB, free: 48.4 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002741/0.3121, allocations: 1.373 MB / 394.7 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004817/0.3126, allocations: 8.062 kB / 394.7 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00126/0.3139, allocations: 487.3 kB / 395.2 MB, free: 47.31 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.0007687/0.3147, allocations: 307.3 kB / 395.5 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001313/0.316, allocations: 444.5 kB / 395.9 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007364/0.3168, allocations: 0.5604 MB / 396.4 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002493/0.3171, allocations: 106 kB / 396.5 MB, free: 46.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003206/0.3174, allocations: 239.7 kB / 396.8 MB, free: 46.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003124/0.3177, allocations: 240 kB / 397 MB, free: 46.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.869e-05/0.3178, allocations: 26.59 kB / 397 MB, free: 46.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003599/0.3181, allocations: 162.4 kB / 397.2 MB, free: 46.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000193/0.3183, allocations: 159.8 kB / 397.4 MB, free: 46.37 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000192/0.3185, allocations: 217.5 kB / 397.6 MB, free: 46.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007985/0.3193, allocations: 0.5937 MB / 398.2 MB, free: 45.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3194, allocations: 0.6094 kB / 398.2 MB, free: 45.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3194, allocations: 1.156 kB / 398.2 MB, free: 45.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.3194, allocations: 0 / 398.2 MB, free: 45.97 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.001276/0.3207, allocations: 0.9198 MB / 399.1 MB, free: 45.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.3207, allocations: 9.406 kB / 399.1 MB, free: 45.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.279e-05/0.3208, allocations: 57.12 kB / 399.2 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005383/0.3214, allocations: 466.8 kB / 399.6 MB, free: 44.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.3214, allocations: 15.58 kB / 399.6 MB, free: 44.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.348e-05/0.3214, allocations: 23.75 kB / 399.6 MB, free: 44.72 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003887/0.3218, allocations: 239.7 kB / 399.9 MB, free: 44.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.3218, allocations: 1.25 kB / 399.9 MB, free: 44.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.373e-05/0.3219, allocations: 9.359 kB / 399.9 MB, free: 44.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.3219, allocations: 4.594 kB / 399.9 MB, free: 44.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002483/0.3222, allocations: 126 kB / 400 MB, free: 44.49 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000908/0.3231, allocations: 0.6759 MB / 400.7 MB, free: 43.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004746/0.3236, allocations: 225.2 kB / 400.9 MB, free: 43.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.3237, allocations: 87.59 kB / 401 MB, free: 43.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.188e-05/0.3238, allocations: 2.656 kB / 401 MB, free: 43.76 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003468/0.3241, allocations: 187.7 kB / 401.2 MB, free: 43.62 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.3242, allocations: 0 / 401.2 MB, free: 43.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008374/0.325, allocations: 404.5 kB / 401.6 MB, free: 43.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/0.3251, allocations: 136.9 kB / 401.7 MB, free: 43.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008766/0.326, allocations: 0.7068 MB / 402.4 MB, free: 42.89 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.326, allocations: 42.28 kB / 402.5 MB, free: 42.85 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001722/0.3262, allocations: 245.6 kB / 402.7 MB, free: 42.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.996e-05/0.3262, allocations: 58.67 kB / 402.8 MB, free: 42.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.554e-05/0.3263, allocations: 67.02 kB / 402.8 MB, free: 42.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.3265, allocations: 366.2 kB / 403.2 MB, free: 42.19 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001543/0.3266, allocations: 73.45 kB / 403.3 MB, free: 42.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.3269, allocations: 206.3 kB / 403.5 MB, free: 41.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004673/0.3274, allocations: 274.2 kB / 403.7 MB, free: 41.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3274, allocations: 0.9062 kB / 403.7 MB, free: 41.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005408/0.3279, allocations: 320 kB / 404 MB, free: 41.6 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.855e-05/0.3279, allocations: 11.06 kB / 404 MB, free: 41.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.328, allocations: 1.391 kB / 404 MB, free: 41.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.328, allocations: 4.188 kB / 404.1 MB, free: 41.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.3282, allocations: 41.39 kB / 404.1 MB, free: 41.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.958e-06/0.3282, allocations: 7.953 kB / 404.1 MB, free: 41.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.3283, allocations: 31.92 kB / 404.1 MB, free: 41.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.3284, allocations: 10.81 kB / 404.1 MB, free: 41.56 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.0002696/0.3286, allocations: 260.1 kB / 404.4 MB, free: 41.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.908e-05/0.3287, allocations: 55.94 kB / 404.5 MB, free: 41.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.677e-05/0.3288, allocations: 55.66 kB / 404.5 MB, free: 41.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.3288, allocations: 2.781 kB / 404.5 MB, free: 41.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3288, allocations: 0 / 404.5 MB, free: 41.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.3289, allocations: 7.984 kB / 404.5 MB, free: 41.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003419/0.3292, allocations: 412.9 kB / 404.9 MB, free: 40.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.3292, allocations: 0.875 kB / 404.9 MB, free: 40.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.608e-05/0.3293, allocations: 13.67 kB / 404.9 MB, free: 40.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.3293, allocations: 1.062 kB / 404.9 MB, free: 40.92 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.3293, allocations: 7.844 kB / 404.9 MB, free: 40.92 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/0.3293, allocations: 1.438 kB / 404.9 MB, free: 40.92 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3293, allocations: 0 / 404.9 MB, free: 40.92 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005489/0.3299, allocations: 367.2 kB / 405.3 MB, free: 40.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.899e-05/0.33, allocations: 122.8 kB / 405.4 MB, free: 40.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.165e-05/0.33, allocations: 11.52 kB / 405.4 MB, free: 40.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.3302, allocations: 16.02 kB / 405.4 MB, free: 40.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.765e-05/0.3302, allocations: 19.59 kB / 405.5 MB, free: 40.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.3303, allocations: 10.66 kB / 405.5 MB, free: 40.55 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005765/0.3309, allocations: 0.5131 MB / 406 MB, free: 40.28 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3309, allocations: 0 / 406 MB, free: 40.28 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004729/0.3313, allocations: 97.52 kB / 406.1 MB, free: 40.26 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.001107/0.3325, allocations: 469.1 kB / 406.5 MB, free: 40.03 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005112/0.333, allocations: 228.5 kB / 406.8 MB, free: 39.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.333, allocations: 1.875 kB / 406.8 MB, free: 39.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002097/0.3332, allocations: 116.2 kB / 406.9 MB, free: 39.88 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005669/0.3338, allocations: 138.6 kB / 407 MB, free: 39.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.335, allocations: 0.812 MB / 407.8 MB, free: 39.31 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.3354, allocations: 0.8579 MB / 408.7 MB, free: 38.53 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00021/0.3356, allocations: 87.39 kB / 408.8 MB, free: 38.49 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.884e-05/0.3357, allocations: 45.52 kB / 408.8 MB, free: 38.48 MB / 318.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3357, allocations: 0 / 408.8 MB, free: 38.48 MB / 318.1 MB Notification: Performance of Templates: time 0.0104/0.3461, allocations: 6.4 MB / 415.2 MB, free: 32.12 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 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe 2>&1)