Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7247/0.7247, allocations: 141.8 MB / 149.1 MB, free: 4.594 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 179.8 kB / 181.9 MB, free: 260 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 221.3 MB / 436 MB, free: 9.43 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 100.7 kB / 0.507 GB, free: 24.15 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001824/0.001824, allocations: 266.4 kB / 0.5884 GB, free: 12.4 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.227e-06/9.347e-06, allocations: 4 kB / 0.6759 GB, free: 2.766 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.391/0.391, allocations: 82.76 MB / 0.7567 GB, free: 113 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1174/0.5085, allocations: 110.9 MB / 0.8651 GB, free: 1.879 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/0.5088, allocations: 83.77 kB / 0.8652 GB, free: 1.801 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.016/0.5248, allocations: 5.546 MB / 0.8706 GB, free: 12.29 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 1.621e-05/0.5249, allocations: 6.531 kB / 0.8706 GB, free: 12.29 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008738/0.5257, allocations: 0.5579 MB / 0.8711 GB, free: 11.68 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.5258, allocations: 13.22 kB / 0.8711 GB, free: 11.66 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.5259, allocations: 31.72 kB / 0.8712 GB, free: 11.63 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005543/0.5265, allocations: 298.3 kB / 0.8714 GB, free: 11.3 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/0.5265, allocations: 4 kB / 0.8715 GB, free: 11.3 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.671e-05/0.5265, allocations: 8 kB / 0.8715 GB, free: 11.29 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002504/0.5268, allocations: 128.2 kB / 0.8716 GB, free: 11.16 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003702/0.5272, allocations: 219.1 kB / 0.8718 GB, free: 10.92 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.5272, allocations: 0 / 0.8718 GB, free: 10.92 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.34e-05/0.5272, allocations: 0 / 0.8718 GB, free: 10.92 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.5272, allocations: 11.91 kB / 0.8718 GB, free: 10.91 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.5283, allocations: 0.7022 MB / 0.8725 GB, free: 10.16 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002284/0.5285, allocations: 150.5 kB / 0.8726 GB, free: 10.01 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.5287, allocations: 101 kB / 0.8727 GB, free: 9.906 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.5287, allocations: 4 kB / 0.8727 GB, free: 9.902 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001991/0.5289, allocations: 169 kB / 0.8729 GB, free: 9.719 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.5289, allocations: 8 kB / 0.8729 GB, free: 9.711 MB / 0.5419 GB Notification: Performance of matching and sorting (n=15): time 0.0004534/0.5294, allocations: 233.3 kB / 0.8731 GB, free: 9.477 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.978e-05/0.5294, allocations: 132.5 kB / 0.8732 GB, free: 9.316 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002269/0.5297, allocations: 221 kB / 0.8735 GB, free: 9.094 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.5297, allocations: 37.69 kB / 0.8735 GB, free: 9.051 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 7.836e-05/0.5298, allocations: 124.2 kB / 0.8736 GB, free: 8.926 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 4.334e-05/0.5299, allocations: 43.39 kB / 0.8737 GB, free: 8.883 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.462e-05/0.5299, allocations: 4 kB / 0.8737 GB, free: 8.879 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.53, allocations: 337.5 kB / 0.874 GB, free: 8.543 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.5302, allocations: 92.16 kB / 0.8741 GB, free: 8.449 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001581/0.5303, allocations: 137.5 kB / 0.8742 GB, free: 8.297 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.5305, allocations: 90.64 kB / 0.8743 GB, free: 8.211 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.5305, allocations: 0 / 0.8743 GB, free: 8.211 MB / 0.5419 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004156/0.5309, allocations: 269.2 kB / 0.8745 GB, free: 7.941 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.531, allocations: 4 kB / 0.8745 GB, free: 7.938 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.531, allocations: 0 / 0.8745 GB, free: 7.938 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.531, allocations: 4 kB / 0.8746 GB, free: 7.934 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001582/0.5312, allocations: 27.98 kB / 0.8746 GB, free: 7.906 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.749e-06/0.5312, allocations: 3.984 kB / 0.8746 GB, free: 7.902 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.5314, allocations: 39.92 kB / 0.8746 GB, free: 7.863 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.611e-05/0.5314, allocations: 12 kB / 0.8746 GB, free: 7.852 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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.0001334/0.5316, allocations: 147.4 kB / 0.8748 GB, free: 7.695 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.806e-05/0.5316, allocations: 27.72 kB / 0.8748 GB, free: 7.668 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.518e-05/0.5317, allocations: 25.77 kB / 0.8748 GB, free: 7.648 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.5317, allocations: 3.906 kB / 0.8748 GB, free: 7.645 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.5317, allocations: 0 / 0.8748 GB, free: 7.645 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.5317, allocations: 4 kB / 0.8748 GB, free: 7.641 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002516/0.5319, allocations: 262 kB / 0.8751 GB, free: 7.348 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.532, allocations: 7.906 kB / 0.8751 GB, free: 7.34 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.5321, allocations: 23.98 kB / 0.8751 GB, free: 7.316 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.5321, allocations: 0 / 0.8751 GB, free: 7.316 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.452e-05/0.5321, allocations: 4 kB / 0.8751 GB, free: 7.312 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.5322, allocations: 0 / 0.8751 GB, free: 7.312 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.5322, allocations: 0 / 0.8751 GB, free: 7.312 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006316/0.5328, allocations: 412.6 kB / 0.8755 GB, free: 6.891 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.2e-05/0.5329, allocations: 100.9 kB / 0.8756 GB, free: 6.773 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.005e-05/0.5329, allocations: 8.969 kB / 0.8756 GB, free: 6.766 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.5331, allocations: 31.97 kB / 0.8756 GB, free: 6.734 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.902e-05/0.5332, allocations: 39.84 kB / 0.8757 GB, free: 6.695 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3e-05/0.5332, allocations: 8 kB / 0.8757 GB, free: 6.688 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0001515/0.5334, allocations: 177.2 kB / 0.8759 GB, free: 6.516 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0003385/0.5337, allocations: 63.92 kB / 0.8759 GB, free: 6.453 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.000233/0.534, allocations: 138.8 kB / 0.8761 GB, free: 6.309 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0003143/0.5343, allocations: 209.6 kB / 0.8763 GB, free: 6.098 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.5343, allocations: 4.188 kB / 0.8763 GB, free: 6.094 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.5345, allocations: 144.7 kB / 0.8764 GB, free: 5.949 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.5348, allocations: 32.39 kB / 0.8764 GB, free: 5.918 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000886/0.5357, allocations: 344.6 kB / 0.8768 GB, free: 5.555 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003957/0.5361, allocations: 0.7706 MB / 0.8775 GB, free: 4.758 MB / 0.5419 GB Notification: Performance of SimCode: time 2.41e-07/0.5361, allocations: 0 / 0.8775 GB, free: 4.758 MB / 0.5419 GB Notification: Performance of Templates: time 0.006037/0.5421, allocations: 2.512 MB / 0.88 GB, free: 2.305 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)