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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_basicLogicOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_basicLogicOperations",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004731/0.004731, allocations: 187 kB / 7.46 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0621/0.0621, allocations: 10.59 MB / 18.45 MB, free: 2.184 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.837/1.837, allocations: 205.2 MB / 226.5 MB, free: 0.5273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001139, allocations: 87.33 kB / 276.9 MB, free: 15.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.194/0.1952, allocations: 56.13 MB / 333 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.5511, allocations: 49.99 MB / 383 MB, free: 39.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.6574, allocations: 80.89 MB / 463.9 MB, free: 6.836 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.6578, allocations: 91.92 kB / 464 MB, free: 6.746 MB / 346.7 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.04524/0.703, allocations: 14.14 MB / 478.1 MB, free: 8.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.411e-05/0.7031, allocations: 12 kB / 478.1 MB, free: 8.508 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003472/0.7035, allocations: 55.33 kB / 478.2 MB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.705, allocations: 0.495 MB / 478.7 MB, free: 7.914 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.66e-05/0.7051, allocations: 8 kB / 478.7 MB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.279e-05/0.7052, allocations: 12 kB / 478.7 MB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003124/0.7055, allocations: 120 kB / 478.8 MB, free: 7.777 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004394/0.7059, allocations: 264.8 kB / 479.1 MB, free: 7.484 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.706, allocations: 4 kB / 479.1 MB, free: 7.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.746e-05/0.706, allocations: 0 / 479.1 MB, free: 7.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.607e-05/0.706, allocations: 7.984 kB / 479.1 MB, free: 7.473 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.7076, allocations: 0.6724 MB / 479.8 MB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.708, allocations: 194.9 kB / 480 MB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.7082, allocations: 81.19 kB / 480 MB, free: 6.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.7082, allocations: 11.94 kB / 480.1 MB, free: 6.469 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002839/0.7085, allocations: 164.9 kB / 480.2 MB, free: 6.293 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 2.384e-06/0.7085, allocations: 0 / 480.2 MB, free: 6.293 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008787/0.7094, allocations: 280.2 kB / 480.5 MB, free: 6.016 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.7095, allocations: 140.5 kB / 480.6 MB, free: 5.848 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/0.7107, allocations: 0.6036 MB / 481.2 MB, free: 5.238 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.574e-05/0.7108, allocations: 33.7 kB / 481.3 MB, free: 5.199 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.7109, allocations: 156.4 kB / 481.4 MB, free: 5.043 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.989e-05/0.711, allocations: 59.27 kB / 481.5 MB, free: 4.984 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.222e-05/0.711, allocations: 0 / 481.5 MB, free: 4.984 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.7113, allocations: 370.8 kB / 481.8 MB, free: 4.613 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.7114, allocations: 64.27 kB / 481.9 MB, free: 4.547 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002495/0.7117, allocations: 209.4 kB / 482.1 MB, free: 4.281 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.7119, allocations: 99.78 kB / 482.2 MB, free: 4.184 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.7119, allocations: 8 kB / 482.2 MB, free: 4.176 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000677/0.7126, allocations: 308.7 kB / 482.5 MB, free: 3.867 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.7126, allocations: 11.94 kB / 482.5 MB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/0.7126, allocations: 4 kB / 482.5 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.964e-05/0.7127, allocations: 4 kB / 482.5 MB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.7129, allocations: 44.25 kB / 482.6 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.245e-05/0.7129, allocations: 19.84 kB / 482.6 MB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003648/0.7133, allocations: 19.92 kB / 482.6 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.305e-05/0.7134, allocations: 15.91 kB / 482.6 MB, free: 3.75 MB / 362.7 MB Warning: Assuming fixed start value for the following 4 variables: xor_gate.y[1]:DISCRETE(fixed = false ) "output vector" type: Boolean [1] or_gate.y[1]:DISCRETE(fixed = false ) "output vector" type: Boolean [1] not_gate.y[1]:DISCRETE(fixed = false ) "output vector" type: Boolean [1] and_gate.y[1]:DISCRETE(fixed = false ) "output vector" type: Boolean [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 31 ($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],$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$PRE.booleanConstant2.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.booleanConstant1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.booleanConstant.combiTimeTable.nextTimeEvent,$whenCondition1,and_gate.u[2],booleanConstant2.combiTimeTable.nextTimeEvent,$PRE.booleanConstant2.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEventScaled,and_gate.u[3],booleanConstant1.combiTimeTable.nextTimeEvent,$PRE.booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEventScaled,and_gate.u[4],booleanConstant.combiTimeTable.nextTimeEvent,$PRE.booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant.combiTimeTable.nextTimeEventScaled,not_gate_C.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 1 * 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.0002578/0.7136, allocations: 145.2 kB / 482.8 MB, free: 3.602 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.7138, allocations: 51.34 kB / 482.8 MB, free: 3.551 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007094/0.7145, allocations: 312 kB / 483.1 MB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.604e-05/0.7145, allocations: 8 kB / 483.1 MB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.7145, allocations: 4.094 kB / 483.1 MB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.7145, allocations: 0 / 483.1 MB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005621/0.7151, allocations: 401.9 kB / 483.5 MB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.7151, allocations: 3.906 kB / 483.5 MB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.625e-05/0.7152, allocations: 15.94 kB / 483.6 MB, free: 2.773 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.7152, allocations: 4 kB / 483.6 MB, free: 2.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.113e-05/0.7153, allocations: 11.98 kB / 483.6 MB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.7153, allocations: 0 / 483.6 MB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.7153, allocations: 0 / 483.6 MB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006038/0.7159, allocations: 320.3 kB / 483.9 MB, free: 2.426 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007494/0.7167, allocations: 0.6965 MB / 484.6 MB, free: 1.707 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002235/0.7169, allocations: 164.3 kB / 484.7 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.813e-05/0.717, allocations: 4 kB / 484.7 MB, free: 1.523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.7172, allocations: 19.98 kB / 484.8 MB, free: 1.504 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.405e-05/0.7173, allocations: 19.97 kB / 484.8 MB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.037e-05/0.7173, allocations: 15.98 kB / 484.8 MB, free: 1.469 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0006462/0.718, allocations: 474.9 kB / 485.3 MB, free: 1.008 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001261/0.7193, allocations: 123.8 kB / 485.4 MB, free: 0.8867 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,and_gate.u[2],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.y[1],xor_gate.y[1],not_gate_C.y[1]) * Number of discrete states: 6 (booleanConstant.combiTimeTable.nextTimeEvent,booleanConstant1.combiTimeTable.nextTimeEvent,booleanConstant2.combiTimeTable.nextTimeEvent,booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 19 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.001172/0.7204, allocations: 367.2 kB / 485.7 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005377/0.721, allocations: 248 kB / 486 MB, free: 332 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.721, allocations: 0 / 486 MB, free: 332 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002112/0.7213, allocations: 119.9 kB / 486.1 MB, free: 212 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006165/0.7219, allocations: 98.83 kB / 486.2 MB, free: 112 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.7234, allocations: 0.6885 MB / 486.9 MB, free: 15.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007691/0.7242, allocations: 0.921 MB / 487.8 MB, free: 14.45 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.7242, allocations: 0 / 487.8 MB, free: 14.45 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_basicLogicOperations_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_basicLogicOperations.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe 2>&1)