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") [: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.005575/0.005575, allocations: 178.3 kB / 7.454 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07658/0.07658, allocations: 10.59 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.92/1.92, allocations: 205.2 MB / 226.5 MB, free: 0.5391 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.001078/0.001078, allocations: 80.39 kB / 276.9 MB, free: 15.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.176e-06/8.286e-06, allocations: 0 / 332.9 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3247, allocations: 49.99 MB / 382.9 MB, free: 39.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1001/0.4248, allocations: 76.83 MB / 459.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.4251, allocations: 67.97 kB / 459.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.008371/0.4335, allocations: 2.747 MB / 462.6 MB, free: 8.062 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.664e-05/0.4336, allocations: 8 kB / 462.6 MB, free: 8.055 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.0006503/0.4343, allocations: 445.8 kB / 463 MB, free: 7.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.4343, allocations: 8.031 kB / 463 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.078e-05/0.4344, allocations: 23.94 kB / 463 MB, free: 7.539 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003476/0.4347, allocations: 230.7 kB / 463.3 MB, free: 7.273 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.4348, allocations: 11.92 kB / 463.3 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.17e-05/0.4348, allocations: 19.83 kB / 463.3 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001336/0.435, allocations: 46.06 kB / 463.3 MB, free: 7.199 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002488/0.4352, allocations: 151.4 kB / 463.5 MB, free: 7.031 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.4352, allocations: 0 / 463.5 MB, free: 7.031 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/0.4353, allocations: 3.984 kB / 463.5 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.4353, allocations: 4 kB / 463.5 MB, free: 7.023 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007409/0.436, allocations: 413.6 kB / 463.9 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001912/0.4362, allocations: 98.72 kB / 464 MB, free: 6.477 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.4364, allocations: 64.78 kB / 464.1 MB, free: 6.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.4364, allocations: 4 kB / 464.1 MB, free: 6.406 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001956/0.4366, allocations: 135 kB / 464.2 MB, free: 6.266 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.533e-06/0.4366, allocations: 0 / 464.2 MB, free: 6.266 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.0007064/0.4373, allocations: 249.3 kB / 464.4 MB, free: 6.016 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.4374, allocations: 166.2 kB / 464.6 MB, free: 5.816 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.4376, allocations: 175.2 kB / 464.8 MB, free: 5.637 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.4377, allocations: 25.7 kB / 464.8 MB, free: 5.605 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.477e-05/0.4378, allocations: 116.4 kB / 464.9 MB, free: 5.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.571e-05/0.4378, allocations: 51.27 kB / 465 MB, free: 5.438 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/0.4378, allocations: 0 / 465 MB, free: 5.438 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.438, allocations: 334.8 kB / 465.3 MB, free: 5.102 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.559e-05/0.4381, allocations: 37.69 kB / 465.3 MB, free: 5.062 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001566/0.4383, allocations: 151.1 kB / 465.5 MB, free: 4.863 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/0.4384, allocations: 59.86 kB / 465.5 MB, free: 4.805 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.4384, allocations: 7.906 kB / 465.5 MB, free: 4.797 MB / 346.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003096/0.4387, allocations: 198.6 kB / 465.7 MB, free: 4.598 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.4387, allocations: 4 kB / 465.7 MB, free: 4.594 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.155e-05/0.4388, allocations: 7.906 kB / 465.7 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.4388, allocations: 4 kB / 465.7 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002427/0.439, allocations: 55.91 kB / 465.8 MB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.439, allocations: 7.938 kB / 465.8 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.4392, allocations: 20.12 kB / 465.8 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.4392, allocations: 12 kB / 465.8 MB, free: 4.488 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.0001978/0.4394, allocations: 123.2 kB / 466 MB, free: 4.363 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.65e-05/0.4395, allocations: 23.72 kB / 466 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.935e-05/0.4395, allocations: 21.53 kB / 466 MB, free: 4.316 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.4395, allocations: 8.031 kB / 466 MB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.4396, allocations: 7.922 kB / 466 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.4396, allocations: 4 kB / 466 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009047/0.4405, allocations: 0.5455 MB / 466.6 MB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.4405, allocations: 3.906 kB / 466.6 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001755/0.4407, allocations: 19.98 kB / 466.6 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/0.4407, allocations: 7.984 kB / 466.6 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.4407, allocations: 0 / 466.6 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.4407, allocations: 4 kB / 466.6 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4407, allocations: 4 kB / 466.6 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007543/0.4415, allocations: 423.6 kB / 467 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.212e-05/0.4416, allocations: 100.8 kB / 467.1 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.448e-05/0.4416, allocations: 4 kB / 467.1 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.4418, allocations: 11.98 kB / 467.1 MB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.443e-05/0.4418, allocations: 11.89 kB / 467.1 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.4419, allocations: 11.98 kB / 467.2 MB, free: 3.086 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001191/0.442, allocations: 139.4 kB / 467.3 MB, free: 2.949 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003185/0.4423, allocations: 55.92 kB / 467.3 MB, free: 2.895 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.0002098/0.4425, allocations: 140.1 kB / 467.5 MB, free: 2.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002562/0.4428, allocations: 140 kB / 467.6 MB, free: 2.613 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4428, allocations: 0.75 kB / 467.6 MB, free: 2.613 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.4429, allocations: 60.62 kB / 467.7 MB, free: 2.555 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.4432, allocations: 27.98 kB / 467.7 MB, free: 2.527 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006299/0.4438, allocations: 244.7 kB / 467.9 MB, free: 2.262 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003784/0.4442, allocations: 0.7469 MB / 468.7 MB, free: 1.488 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4442, allocations: 0 / 468.7 MB, free: 1.488 MB / 346.7 MB Notification: Performance of Templates: time 0.005554/0.4498, allocations: 2.19 MB / 470.9 MB, free: 15.32 MB / 362.7 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)