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: "" <> 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/Complex 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 175.4 kB / 7.648 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0706/0.0706, 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.995/1.995, allocations: 205.3 MB / 226.9 MB, free: 7.891 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 74.5 kB / 277.3 MB, free: 5.43 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.828e-05/1.831e-05, allocations: 0 / 333.6 MB, free: 28.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1294, allocations: 50 MB / 383.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4451/0.5746, allocations: 77.21 MB / 460.8 MB, free: 7.148 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.5749, allocations: 76.7 kB / 460.9 MB, free: 7.105 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007933/0.5828, allocations: 3.03 MB / 463.9 MB, free: 4.523 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.5828, allocations: 0 / 463.9 MB, free: 4.523 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.5829, allocations: 4 kB / 463.9 MB, free: 4.52 MB / 330.7 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.0005742/0.5835, allocations: 445.2 kB / 464.4 MB, free: 4.047 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.5835, allocations: 8.031 kB / 464.4 MB, free: 4.039 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.137e-05/0.5836, allocations: 25.95 kB / 464.4 MB, free: 4.016 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002938/0.5839, allocations: 241.5 kB / 464.7 MB, free: 3.75 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.5839, allocations: 4 kB / 464.7 MB, free: 3.746 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.508e-05/0.5839, allocations: 8 kB / 464.7 MB, free: 3.738 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00013/0.5841, allocations: 55.8 kB / 464.7 MB, free: 3.699 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002285/0.5843, allocations: 149.8 kB / 464.9 MB, free: 3.559 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.5843, allocations: 0 / 464.9 MB, free: 3.559 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.176e-05/0.5844, allocations: 4 kB / 464.9 MB, free: 3.555 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.5844, allocations: 0 / 464.9 MB, free: 3.555 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007845/0.5852, allocations: 437.8 kB / 465.3 MB, free: 3.145 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.5854, allocations: 113.7 kB / 465.4 MB, free: 3.059 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.5855, allocations: 64.09 kB / 465.5 MB, free: 3.012 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.5855, allocations: 7.844 kB / 465.5 MB, free: 3.004 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002213/0.5857, allocations: 135.5 kB / 465.6 MB, free: 2.887 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.5857, allocations: 0 / 465.6 MB, free: 2.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=20): time 0.0006971/0.5865, allocations: 271 kB / 465.9 MB, free: 2.656 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.999e-05/0.5866, allocations: 170.1 kB / 466 MB, free: 2.457 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001676/0.5868, allocations: 173.7 kB / 466.2 MB, free: 2.301 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.5868, allocations: 33.58 kB / 466.2 MB, free: 2.266 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.417e-05/0.5869, allocations: 119.8 kB / 466.4 MB, free: 2.164 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.825e-05/0.587, allocations: 55.34 kB / 466.4 MB, free: 2.121 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.835e-06/0.587, allocations: 4 kB / 466.4 MB, free: 2.117 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.5871, allocations: 326.5 kB / 466.7 MB, free: 1.797 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.569e-05/0.5872, allocations: 35.53 kB / 466.8 MB, free: 1.773 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.5874, allocations: 154.3 kB / 466.9 MB, free: 1.594 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.5875, allocations: 63.28 kB / 467 MB, free: 1.547 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.5875, allocations: 4.656 kB / 467 MB, free: 1.543 MB / 330.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003005/0.5878, allocations: 207.5 kB / 467.2 MB, free: 1.367 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.5878, allocations: 8 kB / 467.2 MB, free: 1.359 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.5878, allocations: 0 / 467.2 MB, free: 1.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.5879, allocations: 11.95 kB / 467.2 MB, free: 1.348 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.5881, allocations: 48.3 kB / 467.3 MB, free: 1.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.5881, allocations: 15.86 kB / 467.3 MB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.5882, allocations: 15.84 kB / 467.3 MB, free: 1.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.5883, allocations: 11.94 kB / 467.3 MB, free: 1.262 MB / 330.7 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.0001621/0.5884, allocations: 130.5 kB / 467.4 MB, free: 1.133 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000561/0.589, allocations: 279.3 kB / 467.7 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.572e-05/0.589, allocations: 15.81 kB / 467.7 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.325e-05/0.5891, allocations: 25.58 kB / 467.7 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.5891, allocations: 7.953 kB / 467.7 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.5891, allocations: 0 / 467.7 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.5891, allocations: 0 / 467.7 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008096/0.5899, allocations: 0.5583 MB / 468.3 MB, free: 324 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.59, allocations: 0 / 468.3 MB, free: 324 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.5901, allocations: 23.98 kB / 468.3 MB, free: 300 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.5901, allocations: 4 kB / 468.3 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.5902, allocations: 4.047 kB / 468.3 MB, free: 292 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.5902, allocations: 0 / 468.3 MB, free: 292 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.5902, allocations: 15.88 kB / 468.4 MB, free: 276 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006904/0.5909, allocations: 428.5 kB / 468.8 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.366e-05/0.591, allocations: 92.95 kB / 468.9 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.679e-05/0.591, allocations: 15.92 kB / 468.9 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.5911, allocations: 4.062 kB / 468.9 MB, free: 15.78 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.98e-05/0.5912, allocations: 15.55 kB / 468.9 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.5912, allocations: 11.98 kB / 468.9 MB, free: 15.76 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001065/0.5913, allocations: 134.6 kB / 469 MB, free: 15.64 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5913, allocations: 0 / 469 MB, free: 15.64 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003061/0.5916, allocations: 55.88 kB / 469.1 MB, free: 15.59 MB / 346.7 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.001138/0.5928, allocations: 1.005 MB / 470.1 MB, free: 14.63 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002441/0.593, allocations: 133.2 kB / 470.2 MB, free: 14.54 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.5931, allocations: 4 kB / 470.2 MB, free: 14.53 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.983e-05/0.5932, allocations: 62.61 kB / 470.3 MB, free: 14.49 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.5934, allocations: 34.47 kB / 470.3 MB, free: 14.46 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007366/0.5942, allocations: 304.9 kB / 470.6 MB, free: 14.15 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.5945, allocations: 0.7282 MB / 471.4 MB, free: 13.4 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.181e-05/0.5946, allocations: 26.06 kB / 471.4 MB, free: 13.37 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.221e-05/0.5947, allocations: 56.17 kB / 471.4 MB, free: 13.34 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5947, allocations: 0 / 471.4 MB, free: 13.34 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02501/0.6197, allocations: 3.461 MB / 474.9 MB, free: 9.898 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002344/0.6201, allocations: 176.1 kB / 475.1 MB, free: 9.707 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.925/2.545, allocations: 0 / 475.1 MB, free: 9.707 MB / 346.7 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)