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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.005957/0.005957, allocations: 186 kB / 7.457 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06625/0.06625, allocations: 10.58 MB / 18.46 MB, free: 2.188 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.516/1.516, allocations: 205.2 MB / 226.5 MB, free: 0.6758 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.000993/0.0009928, allocations: 101.1 kB / 276.9 MB, free: 1.875 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1146/0.1156, allocations: 56.12 MB / 333 MB, free: 9.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.3939, allocations: 49.99 MB / 383 MB, free: 39.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.4985, allocations: 76.83 MB / 459.8 MB, free: 11.15 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.4987, allocations: 75.95 kB / 459.9 MB, free: 11.08 MB / 346.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.008796/0.5075, allocations: 3.172 MB / 463.1 MB, free: 7.859 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.5076, allocations: 8 kB / 463.1 MB, free: 7.852 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.961e-05/0.5077, allocations: 19.81 kB / 463.1 MB, free: 7.832 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003369/0.508, allocations: 242.7 kB / 463.4 MB, free: 7.555 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.5081, allocations: 4 kB / 463.4 MB, free: 7.551 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.524e-05/0.5081, allocations: 11.94 kB / 463.4 MB, free: 7.539 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001462/0.5083, allocations: 56.2 kB / 463.4 MB, free: 7.484 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.5086, allocations: 159.3 kB / 463.6 MB, free: 7.309 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.5086, allocations: 0 / 463.6 MB, free: 7.309 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.5086, allocations: 0 / 463.6 MB, free: 7.309 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.5086, allocations: 4 kB / 463.6 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007511/0.5094, allocations: 405.6 kB / 464 MB, free: 6.871 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.5096, allocations: 110.7 kB / 464.1 MB, free: 6.754 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.5097, allocations: 52.86 kB / 464.1 MB, free: 6.699 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.5097, allocations: 8 kB / 464.2 MB, free: 6.691 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001915/0.5099, allocations: 131 kB / 464.3 MB, free: 6.555 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 2.154e-06/0.51, allocations: 0 / 464.3 MB, free: 6.555 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.0007522/0.5107, allocations: 257.2 kB / 464.5 MB, free: 6.297 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.957e-05/0.5108, allocations: 162.2 kB / 464.7 MB, free: 6.102 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001841/0.511, allocations: 178.5 kB / 464.9 MB, free: 5.918 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.5111, allocations: 33.7 kB / 464.9 MB, free: 5.879 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.226e-05/0.5111, allocations: 104.4 kB / 465 MB, free: 5.773 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.092e-05/0.5112, allocations: 55.27 kB / 465.1 MB, free: 5.719 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.246e-06/0.5112, allocations: 0 / 465.1 MB, free: 5.719 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.5114, allocations: 330.8 kB / 465.4 MB, free: 5.387 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.659e-05/0.5114, allocations: 40.28 kB / 465.4 MB, free: 5.344 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.5116, allocations: 143.2 kB / 465.6 MB, free: 5.152 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000132/0.5118, allocations: 65.81 kB / 465.6 MB, free: 5.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.5118, allocations: 4 kB / 465.6 MB, free: 5.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003491/0.5121, allocations: 201.2 kB / 465.8 MB, free: 4.883 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.5122, allocations: 4 kB / 465.8 MB, free: 4.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.5122, allocations: 11.92 kB / 465.8 MB, free: 4.867 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.5122, allocations: 7.906 kB / 465.8 MB, free: 4.859 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002541/0.5125, allocations: 48.28 kB / 465.9 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.5125, allocations: 12 kB / 465.9 MB, free: 4.801 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.5126, allocations: 19.83 kB / 465.9 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.5126, allocations: 12 kB / 465.9 MB, free: 4.77 MB / 346.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.0001943/0.5128, allocations: 130.6 kB / 466.1 MB, free: 4.637 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.11e-05/0.5129, allocations: 27.72 kB / 466.1 MB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.597e-05/0.513, allocations: 25.58 kB / 466.1 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.513, allocations: 3.938 kB / 466.1 MB, free: 4.578 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.513, allocations: 4 kB / 466.1 MB, free: 4.574 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.513, allocations: 0 / 466.1 MB, free: 4.574 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008673/0.5139, allocations: 0.5416 MB / 466.7 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.5139, allocations: 0 / 466.7 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001888/0.5141, allocations: 23.98 kB / 466.7 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.044e-06/0.5141, allocations: 11.91 kB / 466.7 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/0.5141, allocations: 7.984 kB / 466.7 MB, free: 3.945 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.5142, allocations: 4 kB / 466.7 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5142, allocations: 0 / 466.7 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007937/0.515, allocations: 419.2 kB / 467.1 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001028/0.516, allocations: 0.8415 MB / 468 MB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.169e-05/0.5161, allocations: 96.86 kB / 468.1 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.694e-05/0.5162, allocations: 11.98 kB / 468.1 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.5163, allocations: 4 kB / 468.1 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.372e-05/0.5164, allocations: 7.984 kB / 468.1 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.822e-05/0.5164, allocations: 19.89 kB / 468.1 MB, free: 2.504 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001466/0.5166, allocations: 131.3 kB / 468.2 MB, free: 2.375 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001019/0.5176, allocations: 55.92 kB / 468.3 MB, free: 2.32 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.0003075/0.5179, allocations: 152.1 kB / 468.4 MB, free: 2.164 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003516/0.5183, allocations: 140.3 kB / 468.6 MB, free: 2.027 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.5183, allocations: 4 kB / 468.6 MB, free: 2.023 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001213/0.5184, allocations: 59.94 kB / 468.6 MB, free: 1.965 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.5187, allocations: 27.97 kB / 468.7 MB, free: 1.938 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000699/0.5194, allocations: 245.5 kB / 468.9 MB, free: 1.672 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005119/0.5199, allocations: 0.7469 MB / 469.6 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of SimCode: time 6.92e-07/0.52, allocations: 0 / 469.6 MB, free: 0.8984 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)