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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005098/0.005098, allocations: 100.3 kB / 15.73 MB, free: 6.484 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.00124/0.00124, allocations: 193.2 kB / 16.68 MB, free: 6.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.2011/0.2011, allocations: 11.18 MB / 301.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 63.91 kB / 417.4 MB, free: 6.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3106, allocations: 51.97 MB / 469.3 MB, free: 16.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.003328/0.314, allocations: 2.28 MB / 471.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.3162, allocations: 1.464 MB / 473.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001777/0.3164, allocations: 12.56 kB / 473.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001089/0.3175, allocations: 482.6 kB / 473.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005669/0.3181, allocations: 317.7 kB / 473.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.3192, allocations: 483 kB / 474.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000586/0.3198, allocations: 0.5642 MB / 474.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.32, allocations: 100.7 kB / 475 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002455/0.3203, allocations: 240.1 kB / 475.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002263/0.3205, allocations: 246 kB / 475.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.532e-05/0.3206, allocations: 27.5 kB / 475.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003124/0.3209, allocations: 161.7 kB / 475.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.3211, allocations: 154 kB / 475.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.3212, allocations: 211.1 kB / 476 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005951/0.3218, allocations: 0.603 MB / 476.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.3219, allocations: 0 / 476.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3219, allocations: 1.125 kB / 476.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.3219, allocations: 3.938 kB / 476.6 MB, free: 12.12 MB / 350.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.001093/0.323, allocations: 0.9324 MB / 477.6 MB, free: 11.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.323, allocations: 13.97 kB / 477.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.555e-05/0.3231, allocations: 52.39 kB / 477.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.441e-05/0.3232, allocations: 62.91 kB / 477.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004808/0.3237, allocations: 469.6 kB / 478.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.3237, allocations: 16.19 kB / 478.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.783e-05/0.3237, allocations: 22.98 kB / 478.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003785/0.3241, allocations: 241.4 kB / 478.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.3241, allocations: 4 kB / 478.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.251e-05/0.3242, allocations: 6.344 kB / 478.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.024e-05/0.3242, allocations: 4.344 kB / 478.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000248/0.3244, allocations: 134.1 kB / 478.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008225/0.3253, allocations: 0.6714 MB / 479.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000447/0.3257, allocations: 231.3 kB / 479.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.3259, allocations: 84.19 kB / 479.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.797e-05/0.326, allocations: 6.172 kB / 479.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002986/0.3263, allocations: 177.3 kB / 479.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.3263, allocations: 0 / 479.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007785/0.3271, allocations: 421.5 kB / 480.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.3271, allocations: 134.1 kB / 480.3 MB, free: 9.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007225/0.3279, allocations: 0.7067 MB / 481 MB, free: 8.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.3279, allocations: 37.98 kB / 481 MB, free: 8.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.328, allocations: 245.7 kB / 481.2 MB, free: 8.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.633e-05/0.3281, allocations: 70.59 kB / 481.3 MB, free: 8.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.156e-05/0.3282, allocations: 55.27 kB / 481.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.219e-05/0.3283, allocations: 374.1 kB / 481.7 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001515/0.3284, allocations: 74.05 kB / 481.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001998/0.3286, allocations: 203.8 kB / 482 MB, free: 7.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003859/0.329, allocations: 275.5 kB / 482.3 MB, free: 7.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.329, allocations: 0 / 482.3 MB, free: 7.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005109/0.3296, allocations: 328.8 kB / 482.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.3296, allocations: 9.891 kB / 482.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.3296, allocations: 6.625 kB / 482.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.3296, allocations: 4.938 kB / 482.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.3298, allocations: 40.7 kB / 482.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.3298, allocations: 3.125 kB / 482.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.33, allocations: 36.86 kB / 482.7 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.479e-05/0.33, allocations: 14.16 kB / 482.7 MB, free: 7.57 MB / 350.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.0002498/0.3303, allocations: 245.1 kB / 482.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.997e-05/0.3304, allocations: 56.94 kB / 483 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.27e-05/0.3305, allocations: 55.41 kB / 483.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.3305, allocations: 2.812 kB / 483.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.3305, allocations: 0 / 483.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.3305, allocations: 5.109 kB / 483.1 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003245/0.3308, allocations: 408.5 kB / 483.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3308, allocations: 0 / 483.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.444e-05/0.3309, allocations: 10.5 kB / 483.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3309, allocations: 1.094 kB / 483.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.3309, allocations: 11.45 kB / 483.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.3309, allocations: 5.031 kB / 483.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3309, allocations: 0 / 483.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005277/0.3315, allocations: 364 kB / 483.8 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.933e-05/0.3316, allocations: 136.1 kB / 484 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.108e-05/0.3316, allocations: 10.3 kB / 484 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.3317, allocations: 16.12 kB / 484 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.429e-05/0.3318, allocations: 15.83 kB / 484 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.3318, allocations: 22.14 kB / 484 MB, free: 6.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000503/0.3323, allocations: 0.5096 MB / 484.6 MB, free: 6.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3324, allocations: 3.938 kB / 484.6 MB, free: 6.289 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003898/0.3327, allocations: 98.23 kB / 484.7 MB, free: 6.266 MB / 350.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.002079/0.3348, allocations: 1.252 MB / 485.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005109/0.3354, allocations: 232.2 kB / 486.1 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3354, allocations: 1.375 kB / 486.1 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002103/0.3356, allocations: 112.5 kB / 486.2 MB, free: 5.254 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006003/0.3362, allocations: 121.1 kB / 486.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005034/0.3412, allocations: 4.486 MB / 490.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/0.3415, allocations: 0.8611 MB / 491.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000218/0.3418, allocations: 85.77 kB / 491.8 MB, free: 1.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/0.342, allocations: 168.3 kB / 492 MB, free: 1.402 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.342, allocations: 1.812 kB / 492 MB, free: 1.402 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03566/0.3776, allocations: 11.99 MB / 0.4921 GB, free: 6.293 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.506/8.884, allocations: 8.234 kB / 0.4921 GB, free: 6.281 MB / 366.1 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_basicLogicOperations.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe 2>&1)