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: "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex",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.0007541/0.0007541, allocations: 91.22 kB / 15.06 MB, free: 1.098 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.0007969/0.0007969, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.206/1.206, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0519/0.0519, allocations: 10.74 MB / 281.1 MB, free: 10.55 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.0004406/0.0004406, allocations: 16 kB / 341.7 MB, free: 23.74 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07074/0.07119, allocations: 50 MB / 391.7 MB, free: 5.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.001466/0.07268, allocations: 1.343 MB / 393.1 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005481/0.07324, allocations: 355.1 kB / 393.4 MB, free: 3.969 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.327e-05/0.07329, allocations: 0 / 393.4 MB, free: 3.969 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.177e-05/0.07332, allocations: 7.875 kB / 393.4 MB, free: 3.961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.795e-05/0.0734, allocations: 7.875 kB / 393.4 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.07367, allocations: 95.67 kB / 393.5 MB, free: 3.859 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.07383, allocations: 139.6 kB / 393.7 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.208e-05/0.07392, allocations: 21.67 kB / 393.7 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.333e-05/0.07398, allocations: 59.7 kB / 393.7 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.003e-05/0.07407, allocations: 67.67 kB / 393.8 MB, free: 3.578 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.356e-05/0.0741, allocations: 8 kB / 393.8 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.07421, allocations: 75.92 kB / 393.9 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.056e-05/0.07425, allocations: 35.78 kB / 393.9 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.121e-05/0.0743, allocations: 65.55 kB / 394 MB, free: 3.391 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001473/0.07445, allocations: 131.8 kB / 394.1 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.07446, allocations: 0 / 394.1 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.07447, allocations: 0 / 394.1 MB, free: 3.262 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.07448, allocations: 0 / 394.1 MB, free: 3.262 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.0005108/0.07499, allocations: 447.2 kB / 394.6 MB, free: 2.773 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.07503, allocations: 8.031 kB / 394.6 MB, free: 2.766 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.214e-05/0.07508, allocations: 46.55 kB / 394.6 MB, free: 2.711 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.951e-05/0.07512, allocations: 23.77 kB / 394.6 MB, free: 2.688 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.07533, allocations: 238.5 kB / 394.9 MB, free: 2.414 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.07536, allocations: 12.17 kB / 394.9 MB, free: 2.402 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.897e-05/0.07539, allocations: 12 kB / 394.9 MB, free: 2.391 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002574/0.07566, allocations: 171.5 kB / 395.1 MB, free: 2.203 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.07568, allocations: 4 kB / 395.1 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.0757, allocations: 4 kB / 395.1 MB, free: 2.195 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.07571, allocations: 4 kB / 395.1 MB, free: 2.191 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001478/0.07586, allocations: 60.53 kB / 395.1 MB, free: 2.133 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006459/0.07651, allocations: 473.3 kB / 395.6 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.07673, allocations: 122.7 kB / 395.7 MB, free: 1.492 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001215/0.07687, allocations: 79.95 kB / 395.8 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.07688, allocations: 0 / 395.8 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/0.07715, allocations: 155.1 kB / 395.9 MB, free: 1.25 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.423e-06/0.07716, allocations: 7.938 kB / 396 MB, free: 1.242 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.000448/0.07761, allocations: 253.4 kB / 396.2 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.809e-05/0.07769, allocations: 166.2 kB / 396.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/0.07784, allocations: 194.6 kB / 396.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.07788, allocations: 41.69 kB / 396.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.585e-05/0.07795, allocations: 128.3 kB / 396.7 MB, free: 420 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.627e-05/0.07799, allocations: 55.27 kB / 396.8 MB, free: 364 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.546e-06/0.07801, allocations: 4 kB / 396.8 MB, free: 360 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.776e-05/0.07811, allocations: 338.8 kB / 397.1 MB, free: 12 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.07823, allocations: 52.19 kB / 397.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.07839, allocations: 167.1 kB / 397.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001278/0.07853, allocations: 75.88 kB / 397.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.07855, allocations: 4 kB / 397.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003494/0.0789, allocations: 249.1 kB / 397.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.07892, allocations: 11.94 kB / 397.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.07893, allocations: 4 kB / 397.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.07896, allocations: 8 kB / 397.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/0.07915, allocations: 48.3 kB / 397.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.07917, allocations: 15.92 kB / 397.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.07928, allocations: 19.84 kB / 397.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.0793, allocations: 12 kB / 397.8 MB, free: 15.3 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,$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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001428/0.07945, allocations: 159.7 kB / 397.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/0.07948, allocations: 19.72 kB / 397.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.115e-05/0.07953, allocations: 21.88 kB / 398 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.07954, allocations: 7.984 kB / 398 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.07955, allocations: 4 kB / 398 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.07956, allocations: 0 / 398 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000531/0.08009, allocations: 0.525 MB / 398.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.08011, allocations: 0 / 398.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.08025, allocations: 27.98 kB / 398.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.08027, allocations: 4 kB / 398.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.0803, allocations: 7.984 kB / 398.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.0803, allocations: 4 kB / 398.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.08031, allocations: 0 / 398.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004726/0.08079, allocations: 383.6 kB / 398.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.784e-05/0.08085, allocations: 92.95 kB / 399 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.825e-05/0.08089, allocations: 19.98 kB / 399 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.081, allocations: 4 kB / 399 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.918e-05/0.08104, allocations: 15.98 kB / 399 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.08106, allocations: 7.984 kB / 399 MB, free: 13.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.959e-05/0.08117, allocations: 144.5 kB / 399.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08118, allocations: 0 / 399.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000289/0.08147, allocations: 52 kB / 399.2 MB, free: 13.71 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 (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.0007365/0.08221, allocations: 0.9541 MB / 400.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000291/0.08252, allocations: 167.5 kB / 400.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.08253, allocations: 0 / 400.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.08266, allocations: 71.91 kB / 400.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.08296, allocations: 51.39 kB / 400.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.08452, allocations: 1.16 MB / 401.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.08481, allocations: 0.7209 MB / 402.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.535e-05/0.0849, allocations: 33.92 kB / 402.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.949e-05/0.08497, allocations: 51.42 kB / 402.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.08498, allocations: 0 / 402.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01377/0.09876, allocations: 3.955 MB / 406.4 MB, free: 6.562 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001443/0.09892, allocations: 219.8 kB / 406.6 MB, free: 6.324 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/1.83, allocations: 0 / 406.6 MB, free: 6.324 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1) Environment - environmentSimulation: