Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.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.LinearSystems.Examples.BasicComparisonLL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL") translateModel(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005936/0.005936, allocations: 103 kB / 15.74 MB, free: 6.496 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.001281/0.001281, allocations: 192.2 kB / 16.68 MB, free: 6.375 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.52/1.52, allocations: 205.1 MB / 222.5 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05782/0.05782, allocations: 10.74 MB / 280.6 MB, free: 10.41 MB / 238.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.001695/0.001695, allocations: 66.72 kB / 390.8 MB, free: 5.023 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3604/0.3621, allocations: 49.02 MB / 439.9 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL): time 0.003128/0.3653, allocations: 1.632 MB / 441.5 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006487/0.3659, allocations: 310.6 kB / 441.8 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.682e-05/0.366, allocations: 1.375 kB / 441.8 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.44e-05/0.3661, allocations: 9.281 kB / 441.8 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.3662, allocations: 25.98 kB / 441.8 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004111/0.3666, allocations: 90.28 kB / 441.9 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000213/0.3668, allocations: 135.2 kB / 442 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.367, allocations: 21.73 kB / 442.1 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.859e-05/0.367, allocations: 50.84 kB / 442.1 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.3671, allocations: 68.62 kB / 442.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.929e-05/0.3672, allocations: 11.72 kB / 442.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.764e-05/0.3673, allocations: 39.81 kB / 442.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.179e-05/0.3673, allocations: 39.36 kB / 442.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.775e-05/0.3674, allocations: 57.3 kB / 442.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002417/0.3676, allocations: 136.1 kB / 442.5 MB, free: 3.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3676, allocations: 4 kB / 442.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3676, allocations: 0 / 442.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.3677, allocations: 3.938 kB / 442.5 MB, free: 3.621 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006159/0.3683, allocations: 459.7 kB / 442.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.3683, allocations: 14.62 kB / 442.9 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.664e-05/0.3684, allocations: 17.28 kB / 442.9 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002131/0.3686, allocations: 229.5 kB / 443.2 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.3686, allocations: 4.688 kB / 443.2 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.157e-05/0.3687, allocations: 13.72 kB / 443.2 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002391/0.3689, allocations: 140 kB / 443.3 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.3689, allocations: 1.562 kB / 443.3 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.369, allocations: 10.11 kB / 443.3 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.369, allocations: 1.375 kB / 443.3 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001419/0.3691, allocations: 49.8 kB / 443.4 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006077/0.3697, allocations: 415.1 kB / 443.8 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002121/0.37, allocations: 115 kB / 443.9 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.3701, allocations: 65.88 kB / 444 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.3701, allocations: 5.078 kB / 444 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/0.3704, allocations: 109.3 kB / 444.1 MB, free: 2.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.854e-06/0.3704, allocations: 0 / 444.1 MB, free: 2.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004508/0.3708, allocations: 197.2 kB / 444.3 MB, free: 2.234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.3709, allocations: 163.7 kB / 444.4 MB, free: 2.043 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.3711, allocations: 192.5 kB / 444.6 MB, free: 1.906 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.3711, allocations: 33.02 kB / 444.7 MB, free: 1.871 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.764e-05/0.3712, allocations: 115.5 kB / 444.8 MB, free: 1.766 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.3712, allocations: 44.73 kB / 444.8 MB, free: 1.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.516e-05/0.3713, allocations: 40.38 kB / 444.9 MB, free: 1.703 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.035e-05/0.3713, allocations: 332.5 kB / 445.2 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.262e-05/0.3714, allocations: 40.48 kB / 445.2 MB, free: 1.363 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001263/0.3716, allocations: 111.8 kB / 445.3 MB, free: 1.258 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.3717, allocations: 132.7 kB / 445.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3717, allocations: 1.219 kB / 445.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002586/0.372, allocations: 166 kB / 445.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.372, allocations: 6.844 kB / 445.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.372, allocations: 1.469 kB / 445.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.3721, allocations: 2.562 kB / 445.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.3722, allocations: 39.72 kB / 445.7 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.3722, allocations: 3.203 kB / 445.7 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.3724, allocations: 23.81 kB / 445.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.3724, allocations: 5.469 kB / 445.7 MB, free: 1.055 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: 9 ($whenCondition3,$whenCondition2,$whenCondition1,ll_dig_TU.y,$PRE.ll_dig_TU.y,ll_dig_FE.y,$PRE.ll_dig_FE.y,ll_dig_BE.y,$PRE.ll_dig_BE.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 8.602e-05/0.3725, allocations: 127.8 kB / 445.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.3725, allocations: 15.56 kB / 445.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.451e-05/0.3726, allocations: 19.91 kB / 445.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3726, allocations: 10.02 kB / 445.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3726, allocations: 1.219 kB / 445.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.3726, allocations: 4.922 kB / 445.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004602/0.3731, allocations: 470 kB / 446.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3731, allocations: 0 / 446.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.3732, allocations: 22.52 kB / 446.4 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.3732, allocations: 3.938 kB / 446.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.3732, allocations: 4.312 kB / 446.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.3732, allocations: 0.75 kB / 446.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3732, allocations: 4 kB / 446.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004198/0.3737, allocations: 316 kB / 446.7 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.642e-05/0.3737, allocations: 95.77 kB / 446.8 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.3738, allocations: 3.984 kB / 446.8 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.3739, allocations: 15 kB / 446.8 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.123e-05/0.374, allocations: 11.86 kB / 446.8 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.374, allocations: 13.78 kB / 446.8 MB, free: 192 kB / 318.1 MB Notification: Performance of sorting global known variables: time 9.988e-05/0.3741, allocations: 145.3 kB / 447 MB, free: 92 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3741, allocations: 0 / 447 MB, free: 92 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002705/0.3744, allocations: 37.12 kB / 447 MB, free: 84 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (ll.dy) * Number of discrete variables: 6 ($whenCondition3,$whenCondition2,$whenCondition1,ll_dig_BE.y,ll_dig_FE.y,ll_dig_TU.y) * Number of discrete states: 6 (ll_dig_TU.u,ll_dig_TU.y,ll_dig_FE.u,ll_dig_FE.y,ll_dig_BE.u,ll_dig_BE.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000145/0.3745, allocations: 116 kB / 447.1 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003043/0.3748, allocations: 114.2 kB / 447.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3749, allocations: 5.312 kB / 447.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.375, allocations: 54.78 kB / 447.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.3753, allocations: 31.52 kB / 447.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007354/0.3761, allocations: 322.3 kB / 447.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.3764, allocations: 0.7241 MB / 448.3 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.231e-05/0.3765, allocations: 22.14 kB / 448.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.889e-05/0.3765, allocations: 17.78 kB / 448.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of SimCode: time 1.9e-07/0.3765, allocations: 0 / 448.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of Templates: time 0.005981/0.3825, allocations: 1.891 MB / 450.3 MB, free: 14.3 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.sim & ./IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe 2>&1)