Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.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.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",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.002626/0.002626, allocations: 184.7 kB / 7.456 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06037/0.06037, allocations: 10.58 MB / 18.46 MB, free: 2.172 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.498/1.498, allocations: 205.2 MB / 226.5 MB, free: 0.5078 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.001026/0.001026, allocations: 78.94 kB / 276.9 MB, free: 15.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1363/0.1374, allocations: 56.13 MB / 333 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.4207, allocations: 49.98 MB / 383 MB, free: 39.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09311/0.5139, allocations: 76.55 MB / 459.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003017/0.5143, allocations: 71.95 kB / 459.6 MB, free: 11.12 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.006723/0.521, allocations: 2.48 MB / 462.1 MB, free: 8.598 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.5211, allocations: 12 kB / 462.1 MB, free: 8.586 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.835e-05/0.5211, allocations: 15.81 kB / 462.1 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.5214, allocations: 215 kB / 462.4 MB, free: 8.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.5214, allocations: 4 kB / 462.4 MB, free: 8.316 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.573e-05/0.5214, allocations: 7.938 kB / 462.4 MB, free: 8.309 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001003/0.5215, allocations: 35.91 kB / 462.4 MB, free: 8.273 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001498/0.5217, allocations: 73.66 kB / 462.5 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.5217, allocations: 0 / 462.5 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.5217, allocations: 0 / 462.5 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.5217, allocations: 4.844 kB / 462.5 MB, free: 8.191 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005908/0.5223, allocations: 353 kB / 462.8 MB, free: 7.809 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.5225, allocations: 82.66 kB / 462.9 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.975e-05/0.5226, allocations: 49.05 kB / 462.9 MB, free: 7.668 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.5226, allocations: 5.344 kB / 463 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001707/0.5228, allocations: 91.38 kB / 463 MB, free: 7.562 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.883e-06/0.5228, allocations: 0 / 463 MB, free: 7.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004124/0.5232, allocations: 141.4 kB / 463.2 MB, free: 7.418 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.5233, allocations: 59.39 kB / 463.2 MB, free: 7.348 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.5234, allocations: 143.4 kB / 463.4 MB, free: 7.195 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.5234, allocations: 33.7 kB / 463.4 MB, free: 7.156 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.353e-05/0.5235, allocations: 104 kB / 463.5 MB, free: 7.051 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.959e-05/0.5235, allocations: 35.55 kB / 463.5 MB, free: 7.016 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-06/0.5236, allocations: 0 / 463.5 MB, free: 7.016 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.5237, allocations: 326.7 kB / 463.9 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.861e-05/0.5237, allocations: 28 kB / 463.9 MB, free: 6.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.748e-05/0.5238, allocations: 81.33 kB / 464 MB, free: 6.562 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.908e-05/0.5239, allocations: 30.23 kB / 464 MB, free: 6.535 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5239, allocations: 4 kB / 464 MB, free: 6.531 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001947/0.5241, allocations: 134.9 kB / 464.1 MB, free: 6.395 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.5241, allocations: 8 kB / 464.1 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.5241, allocations: 0 / 464.1 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.5242, allocations: 4 kB / 464.2 MB, free: 6.383 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.5243, allocations: 31.92 kB / 464.2 MB, free: 6.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.5244, allocations: 3.984 kB / 464.2 MB, free: 6.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.919e-05/0.5244, allocations: 11.91 kB / 464.2 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.5244, allocations: 4 kB / 464.2 MB, free: 6.332 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.fO_dig_BE.y,fO_dig_BE.y,$PRE.fO_dig_FE.y,fO_dig_FE.y,$PRE.fO_dig_TU.y,fO_dig_TU.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 9.418e-05/0.5245, allocations: 125.8 kB / 464.3 MB, free: 6.203 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.603e-05/0.5246, allocations: 11.81 kB / 464.3 MB, free: 6.191 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.57e-05/0.5246, allocations: 13.47 kB / 464.3 MB, free: 6.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.5246, allocations: 4 kB / 464.4 MB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.5247, allocations: 3.938 kB / 464.4 MB, free: 6.172 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.5247, allocations: 0 / 464.4 MB, free: 6.172 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005657/0.5252, allocations: 406.9 kB / 464.8 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.5252, allocations: 0 / 464.8 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.5254, allocations: 28.48 kB / 464.8 MB, free: 5.703 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.5254, allocations: 0 / 464.8 MB, free: 5.703 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.5254, allocations: 8 kB / 464.8 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.655e-05/0.5254, allocations: 7.891 kB / 464.8 MB, free: 5.688 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.5254, allocations: 0 / 464.8 MB, free: 5.688 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004784/0.5259, allocations: 284.9 kB / 465.1 MB, free: 5.395 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006561/0.5266, allocations: 0.7085 MB / 465.8 MB, free: 4.668 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.705e-05/0.5267, allocations: 88.92 kB / 465.9 MB, free: 4.562 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.392e-05/0.5267, allocations: 0 / 465.9 MB, free: 4.562 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.955e-05/0.5268, allocations: 4 kB / 465.9 MB, free: 4.559 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.556e-05/0.5269, allocations: 7.984 kB / 465.9 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.5269, allocations: 16.11 kB / 465.9 MB, free: 4.535 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.664e-05/0.527, allocations: 116 kB / 466 MB, free: 4.422 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008898/0.5279, allocations: 28.19 kB / 466 MB, free: 4.395 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (fO.y) * Number of discrete variables: 6 ($whenCondition3,$whenCondition2,$whenCondition1,fO_dig_BE.y,fO_dig_FE.y,fO_dig_TU.y) * Number of discrete states: 6 (fO_dig_TU.u,fO_dig_TU.y,fO_dig_FE.u,fO_dig_FE.y,fO_dig_BE.u,fO_dig_BE.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000243/0.5282, allocations: 111.2 kB / 466.1 MB, free: 4.277 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002187/0.5284, allocations: 83.94 kB / 466.2 MB, free: 4.195 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.5284, allocations: 0 / 466.2 MB, free: 4.195 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.985e-05/0.5285, allocations: 44.31 kB / 466.3 MB, free: 4.152 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.5288, allocations: 23.89 kB / 466.3 MB, free: 4.129 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006964/0.5295, allocations: 203.8 kB / 466.5 MB, free: 3.906 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003709/0.5299, allocations: 0.7319 MB / 467.2 MB, free: 3.148 MB / 346.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5299, allocations: 7.938 kB / 467.2 MB, free: 3.141 MB / 346.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1)