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/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: 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/Complex 3.2.3+maint.om/package.mo): time 0.00105/0.00105, allocations: 170.2 kB / 7.64 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05854/0.05854, allocations: 10.66 MB / 18.73 MB, free: 1.32 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.455/1.455, allocations: 205.3 MB / 226.9 MB, free: 7.973 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008153/0.0008153, allocations: 102.4 kB / 277.3 MB, free: 5.496 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 1.496e-05/1.498e-05, allocations: 0 / 333.5 MB, free: 28.51 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09419/0.09423, allocations: 50 MB / 383.5 MB, free: 10.46 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3248/0.4191, allocations: 77.2 MB / 460.7 MB, free: 7.605 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/0.4193, allocations: 81.8 kB / 460.8 MB, free: 7.562 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.00879/0.4281, allocations: 3.028 MB / 463.8 MB, free: 4.977 MB / 330.8 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4282, allocations: 0 / 463.8 MB, free: 4.977 MB / 330.8 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.4282, allocations: 0 / 463.8 MB, free: 4.977 MB / 330.8 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.0006592/0.4289, allocations: 444.4 kB / 464.3 MB, free: 4.504 MB / 330.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.712e-05/0.429, allocations: 12.03 kB / 464.3 MB, free: 4.492 MB / 330.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.663e-05/0.429, allocations: 19.77 kB / 464.3 MB, free: 4.473 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003542/0.4294, allocations: 244.4 kB / 464.5 MB, free: 4.207 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.515e-05/0.4294, allocations: 4 kB / 464.5 MB, free: 4.203 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.078e-05/0.4295, allocations: 8.656 kB / 464.5 MB, free: 4.195 MB / 330.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001465/0.4296, allocations: 46.61 kB / 464.6 MB, free: 4.164 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000255/0.4299, allocations: 152.5 kB / 464.7 MB, free: 4.02 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.4299, allocations: 11.47 kB / 464.8 MB, free: 4.012 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.43, allocations: 0 / 464.8 MB, free: 4.012 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.43, allocations: 4 kB / 464.8 MB, free: 4.008 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007824/0.4308, allocations: 430.8 kB / 465.2 MB, free: 3.602 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002031/0.431, allocations: 112.6 kB / 465.3 MB, free: 3.516 MB / 330.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.099e-05/0.4311, allocations: 55.55 kB / 465.3 MB, free: 3.477 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.4311, allocations: 8.297 kB / 465.3 MB, free: 3.469 MB / 330.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/0.4314, allocations: 137.4 kB / 465.5 MB, free: 3.352 MB / 330.8 MB Notification: Performance of pre-optimization done (n=20): time 1.593e-06/0.4314, allocations: 0 / 465.5 MB, free: 3.352 MB / 330.8 MB Notification: Performance of matching and sorting (n=20): time 0.0006967/0.4321, allocations: 276.1 kB / 465.8 MB, free: 3.117 MB / 330.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.4322, allocations: 161.6 kB / 465.9 MB, free: 2.926 MB / 330.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.4324, allocations: 177.8 kB / 466.1 MB, free: 2.766 MB / 330.8 MB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.4324, allocations: 25.7 kB / 466.1 MB, free: 2.734 MB / 330.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.64e-05/0.4325, allocations: 125.9 kB / 466.2 MB, free: 2.629 MB / 330.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.715e-05/0.4326, allocations: 56.94 kB / 466.3 MB, free: 2.582 MB / 330.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/0.4326, allocations: 0 / 466.3 MB, free: 2.582 MB / 330.8 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.4327, allocations: 332.5 kB / 466.6 MB, free: 2.258 MB / 330.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.4328, allocations: 38.47 kB / 466.7 MB, free: 2.23 MB / 330.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.433, allocations: 146.7 kB / 466.8 MB, free: 2.059 MB / 330.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.4331, allocations: 72.22 kB / 466.9 MB, free: 2.004 MB / 330.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.4331, allocations: 0 / 466.9 MB, free: 2.004 MB / 330.8 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000295/0.4334, allocations: 206.2 kB / 467.1 MB, free: 1.828 MB / 330.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.4334, allocations: 4 kB / 467.1 MB, free: 1.824 MB / 330.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.4335, allocations: 4 kB / 467.1 MB, free: 1.82 MB / 330.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.4335, allocations: 11.89 kB / 467.1 MB, free: 1.809 MB / 330.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/0.4337, allocations: 50.97 kB / 467.1 MB, free: 1.762 MB / 330.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.4338, allocations: 4 kB / 467.1 MB, free: 1.758 MB / 330.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.4339, allocations: 23.83 kB / 467.2 MB, free: 1.734 MB / 330.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.4339, allocations: 11.31 kB / 467.2 MB, free: 1.727 MB / 330.8 MB Warning: Assuming fixed start value for the following 3 variables: cplxP_dig_TU.u_pre1:DISCRETE(fixed = false protected = true ) type: Real cplxP_dig_FE.u_pre1:DISCRETE(fixed = false protected = true ) type: Real cplxP_dig_BE.u_pre1:DISCRETE(fixed = false 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,$PRE.cplxP_dig_TU.y_pre1,cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_FE.u_pre1,cplxP_dig_FE.u_pre1,$PRE.cplxP_dig_FE.y_pre1,cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_BE.u_pre1,cplxP_dig_BE.u_pre1,$PRE.cplxP_dig_BE.y_pre1,cplxP_dig_BE.y_pre1,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.cplxP_dig_BE.y,cplxP_dig_BE.y,$PRE.cplxP_dig_FE.y,cplxP_dig_FE.y,$PRE.cplxP_dig_TU.y,cplxP_dig_TU.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001636/0.4341, allocations: 129.9 kB / 467.3 MB, free: 1.598 MB / 330.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.135e-05/0.4341, allocations: 19.81 kB / 467.3 MB, free: 1.578 MB / 330.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.211e-05/0.4342, allocations: 20.39 kB / 467.3 MB, free: 1.559 MB / 330.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.4342, allocations: 4 kB / 467.3 MB, free: 1.555 MB / 330.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.4342, allocations: 4.859 kB / 467.3 MB, free: 1.551 MB / 330.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.4342, allocations: 0 / 467.3 MB, free: 1.551 MB / 330.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009611/0.4352, allocations: 0.5656 MB / 467.9 MB, free: 1.012 MB / 330.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4352, allocations: 0 / 467.9 MB, free: 1.012 MB / 330.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.4354, allocations: 23.98 kB / 467.9 MB, free: 0.9883 MB / 330.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.4354, allocations: 3.938 kB / 467.9 MB, free: 0.9844 MB / 330.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/0.4354, allocations: 9.125 kB / 467.9 MB, free: 0.9766 MB / 330.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.4354, allocations: 0 / 467.9 MB, free: 0.9766 MB / 330.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/0.4354, allocations: 3.953 kB / 468 MB, free: 0.9727 MB / 330.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007135/0.4361, allocations: 435.5 kB / 468.4 MB, free: 0.6016 MB / 330.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.093e-05/0.4362, allocations: 88.95 kB / 468.5 MB, free: 0.4961 MB / 330.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.653e-05/0.4363, allocations: 11.36 kB / 468.5 MB, free: 500 kB / 330.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.4364, allocations: 4 kB / 468.5 MB, free: 496 kB / 330.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.601e-05/0.4364, allocations: 18.94 kB / 468.5 MB, free: 480 kB / 330.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.4365, allocations: 15.98 kB / 468.5 MB, free: 464 kB / 330.8 MB Notification: Performance of sorting global known variables: time 0.0001022/0.4366, allocations: 133.5 kB / 468.6 MB, free: 348 kB / 330.8 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4366, allocations: 0 / 468.6 MB, free: 348 kB / 330.8 MB Notification: Performance of remove unused functions: time 0.0003264/0.4369, allocations: 55.17 kB / 468.7 MB, free: 296 kB / 330.8 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) * 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 (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.0001925/0.4371, allocations: 147.5 kB / 468.8 MB, free: 144 kB / 330.8 MB Notification: Performance of simCode: created initialization part: time 0.0002634/0.4374, allocations: 131.7 kB / 469 MB, free: 44 kB / 330.8 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4374, allocations: 0 / 469 MB, free: 44 kB / 330.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.4375, allocations: 66.34 kB / 469 MB, free: 15.99 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003207/0.4379, allocations: 31.58 kB / 469.1 MB, free: 15.97 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005518/0.4384, allocations: 248.3 kB / 469.3 MB, free: 15.73 MB / 346.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.4387, allocations: 0.7281 MB / 470 MB, free: 14.98 MB / 346.8 MB Notification: Performance of simCode: alias equations: time 9.214e-05/0.4388, allocations: 26.06 kB / 470.1 MB, free: 14.95 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.976e-05/0.4389, allocations: 19.44 kB / 470.1 MB, free: 14.93 MB / 346.8 MB Notification: Performance of SimCode: time 2.9e-07/0.4389, allocations: 0 / 470.1 MB, free: 14.93 MB / 346.8 MB Notification: Performance of Templates: time 0.004745/0.4436, allocations: 1.995 MB / 472.1 MB, free: 12.95 MB / 346.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.makefile (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)