Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.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.BasicComparisonComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex") translateModel(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000974/0.0009747, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00702/0.00702, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.881/1.881, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05714/0.05714, allocations: 10.74 MB / 281.5 MB, free: 10.46 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.0005403/0.0005403, allocations: 8.219 kB / 342.2 MB, free: 23.49 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1267, allocations: 50.01 MB / 392.2 MB, free: 5.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002396/0.1292, allocations: 1.385 MB / 393.6 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.1303, allocations: 374.8 kB / 394 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.1304, allocations: 0 / 394 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.007e-05/0.1305, allocations: 7.875 kB / 394 MB, free: 3.637 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001688/0.1307, allocations: 23.86 kB / 394 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004794/0.1312, allocations: 83.86 kB / 394.1 MB, free: 3.531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000292/0.1315, allocations: 155.6 kB / 394.3 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.1316, allocations: 17.69 kB / 394.3 MB, free: 3.363 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.1318, allocations: 59.64 kB / 394.3 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.1319, allocations: 75.61 kB / 394.4 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.217e-05/0.1319, allocations: 8 kB / 394.4 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002017/0.1322, allocations: 79.86 kB / 394.5 MB, free: 3.145 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.96e-05/0.1322, allocations: 35.89 kB / 394.5 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.1323, allocations: 101.2 kB / 394.6 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003287/0.1327, allocations: 183.5 kB / 394.8 MB, free: 2.824 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1327, allocations: 0 / 394.8 MB, free: 2.824 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.796e-06/0.1327, allocations: 3.938 kB / 394.8 MB, free: 2.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.1327, allocations: 0 / 394.8 MB, free: 2.82 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0008835/0.1336, allocations: 455.2 kB / 395.3 MB, free: 2.324 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.1337, allocations: 8.031 kB / 395.3 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.1338, allocations: 20.75 kB / 395.3 MB, free: 2.297 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.1341, allocations: 235.9 kB / 395.5 MB, free: 2.027 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.1342, allocations: 8.562 kB / 395.5 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.366e-05/0.1342, allocations: 12.38 kB / 395.5 MB, free: 2.008 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003632/0.1346, allocations: 178.1 kB / 395.7 MB, free: 1.812 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.1346, allocations: 0 / 395.7 MB, free: 1.812 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.926e-05/0.1347, allocations: 8 kB / 395.7 MB, free: 1.805 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.1347, allocations: 0 / 395.7 MB, free: 1.805 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.1349, allocations: 67.95 kB / 395.8 MB, free: 1.738 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009518/0.1358, allocations: 468.5 kB / 396.2 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003288/0.1362, allocations: 138.5 kB / 396.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.1364, allocations: 76.83 kB / 396.5 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.1364, allocations: 3.984 kB / 396.5 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003871/0.1368, allocations: 151.2 kB / 396.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 2.544e-06/0.1368, allocations: 0 / 396.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005926/0.1374, allocations: 261.4 kB / 396.9 MB, free: 0.582 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.1375, allocations: 166.2 kB / 397 MB, free: 392 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.1378, allocations: 206.4 kB / 397.2 MB, free: 172 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.901e-05/0.1378, allocations: 37.7 kB / 397.3 MB, free: 128 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.822e-05/0.1379, allocations: 120.4 kB / 397.4 MB, free: 4 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.138, allocations: 59.25 kB / 397.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.407e-05/0.1381, allocations: 33.7 kB / 397.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.1383, allocations: 330.8 kB / 397.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.1384, allocations: 48.27 kB / 397.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002075/0.1386, allocations: 171.1 kB / 398 MB, free: 15.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004219/0.1391, allocations: 238.8 kB / 398.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.1391, allocations: 3.938 kB / 398.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004513/0.1395, allocations: 253.1 kB / 398.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.1396, allocations: 10.97 kB / 398.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.1396, allocations: 0 / 398.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.1396, allocations: 8.312 kB / 398.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000239/0.1399, allocations: 55.92 kB / 398.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.1399, allocations: 7.984 kB / 398.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000141/0.14, allocations: 19.84 kB / 398.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.1401, allocations: 12 kB / 398.6 MB, free: 14.66 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: cplxP_dig_TU.u_pre1:DISCRETE(fixed = true protected = true ) type: Real cplxP_dig_FE.u_pre1:DISCRETE(fixed = true protected = true ) type: Real cplxP_dig_BE.u_pre1:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.cplxP_dig_TU.u_pre1,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_FE.u_pre1,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_BE.u_pre1,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y_pre1,$PRE.cplxP_dig_BE.y_pre1,$whenCondition3,$whenCondition2,$whenCondition1,cplxP_dig_TU.y,$PRE.cplxP_dig_TU.y,cplxP_dig_FE.y,$PRE.cplxP_dig_FE.y,cplxP_dig_BE.y,$PRE.cplxP_dig_BE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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 0.0002213/0.1403, allocations: 151.3 kB / 398.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.692e-05/0.1404, allocations: 23.81 kB / 398.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.174e-05/0.1404, allocations: 21.88 kB / 398.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1404, allocations: 4 kB / 398.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.1404, allocations: 0 / 398.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1404, allocations: 3.984 kB / 398.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006802/0.1411, allocations: 0.5328 MB / 399.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1411, allocations: 0 / 399.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.1413, allocations: 23.98 kB / 399.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.1413, allocations: 4 kB / 399.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.1414, allocations: 7.984 kB / 399.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.1414, allocations: 4 kB / 399.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1414, allocations: 0 / 399.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006259/0.142, allocations: 383.1 kB / 399.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.1422, allocations: 88.95 kB / 399.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.742e-05/0.1422, allocations: 16 kB / 399.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.1423, allocations: 7.984 kB / 399.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.811e-05/0.1424, allocations: 23.91 kB / 399.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.1424, allocations: 15.92 kB / 399.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002355/0.1427, allocations: 144.2 kB / 400 MB, free: 13.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1427, allocations: 0 / 400 MB, free: 13.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003751/0.1431, allocations: 56.06 kB / 400.1 MB, free: 13.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (cplxP.y,cplxP.dy) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,cplxP_dig_BE.y,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y_pre1,cplxP_dig_FE.y,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y_pre1,cplxP_dig_TU.y,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y_pre1) * Number of discrete states: 12 (cplxP_dig_TU.u,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y,cplxP_dig_TU.y_pre1,cplxP_dig_FE.u,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y,cplxP_dig_FE.y_pre1,cplxP_dig_BE.u,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y,cplxP_dig_BE.y_pre1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0002417/0.1433, allocations: 135.4 kB / 400.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003851/0.1437, allocations: 164.5 kB / 400.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1437, allocations: 0 / 400.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.1439, allocations: 71.98 kB / 400.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003752/0.1443, allocations: 43.69 kB / 400.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009841/0.1453, allocations: 390.6 kB / 400.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006831/0.146, allocations: 0.7287 MB / 401.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.1461, allocations: 21.94 kB / 401.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.941e-05/0.1462, allocations: 19.44 kB / 401.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1462, allocations: 0 / 401.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of Templates: time 0.007944/0.1541, allocations: 2.213 MB / 403.9 MB, free: 9.238 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.makefile Environment - environmentSimulation: (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.sim & ./IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1) Environment - environmentSimulation: