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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7774/0.7774, allocations: 143.4 MB / 159.2 MB, free: 4.914 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 192.4 kB / 191.9 MB, free: 5.711 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 447.3 MB, free: 5.84 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 111.7 kB / 0.517 GB, free: 3.684 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001883/0.001883, allocations: 283.5 kB / 0.5973 GB, free: 49.35 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 87.88 kB / 0.6885 GB, free: 3.816 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3272, allocations: 81.29 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002595/0.3298, allocations: 1.998 MB / 0.7699 GB, free: 25.65 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009615/0.3308, allocations: 0.7287 MB / 0.7706 GB, free: 24.92 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.997e-05/0.3309, allocations: 7.938 kB / 0.7706 GB, free: 24.91 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001907/0.3311, allocations: 75.75 kB / 0.7707 GB, free: 24.84 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 8.798e-05/0.3312, allocations: 79.7 kB / 0.7707 GB, free: 24.76 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004122/0.3316, allocations: 162.3 kB / 0.7709 GB, free: 24.6 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001848/0.3318, allocations: 243.4 kB / 0.7711 GB, free: 24.36 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.3319, allocations: 57.89 kB / 0.7712 GB, free: 24.3 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.359e-05/0.332, allocations: 103.7 kB / 0.7713 GB, free: 24.2 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.3322, allocations: 143.5 kB / 0.7714 GB, free: 24.06 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.3322, allocations: 12 kB / 0.7714 GB, free: 24.05 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001101/0.3323, allocations: 79.94 kB / 0.7715 GB, free: 23.97 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 5.994e-05/0.3324, allocations: 55.75 kB / 0.7716 GB, free: 23.92 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 7.166e-05/0.3325, allocations: 95.41 kB / 0.7717 GB, free: 23.82 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.3327, allocations: 287 kB / 0.7719 GB, free: 23.54 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3327, allocations: 0 / 0.7719 GB, free: 23.54 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3327, allocations: 0 / 0.7719 GB, free: 23.54 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.3327, allocations: 0 / 0.7719 GB, free: 23.54 MB / 458.7 MB 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.0006649/0.3334, allocations: 0.5819 MB / 0.7725 GB, free: 22.91 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.3334, allocations: 8.031 kB / 0.7725 GB, free: 22.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.919e-05/0.3335, allocations: 32.56 kB / 0.7725 GB, free: 22.87 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003473/0.3339, allocations: 302.9 kB / 0.7728 GB, free: 22.53 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.3339, allocations: 16.38 kB / 0.7728 GB, free: 22.52 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.67e-05/0.3339, allocations: 12.38 kB / 0.7729 GB, free: 22.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.3342, allocations: 224.4 kB / 0.7731 GB, free: 22.26 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.3343, allocations: 4 kB / 0.7731 GB, free: 22.26 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.3343, allocations: 4 kB / 0.7731 GB, free: 22.25 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-06/0.3343, allocations: 8 kB / 0.7731 GB, free: 22.25 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002188/0.3345, allocations: 131.4 kB / 0.7732 GB, free: 22.12 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006229/0.3351, allocations: 0.6885 MB / 0.7739 GB, free: 21.38 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.3355, allocations: 166.6 kB / 0.774 GB, free: 21.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.3356, allocations: 100.8 kB / 0.7741 GB, free: 21.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/0.3356, allocations: 0 / 0.7741 GB, free: 21.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002492/0.3359, allocations: 177.1 kB / 0.7743 GB, free: 20.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.3359, allocations: 0 / 0.7743 GB, free: 20.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005365/0.3364, allocations: 371.5 kB / 0.7747 GB, free: 20.54 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.3365, allocations: 140.5 kB / 0.7748 GB, free: 20.37 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001924/0.3367, allocations: 282.5 kB / 0.7751 GB, free: 20.09 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.3367, allocations: 33.8 kB / 0.7751 GB, free: 20.05 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.128e-05/0.3368, allocations: 156.2 kB / 0.7752 GB, free: 19.89 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.997e-05/0.3368, allocations: 47.36 kB / 0.7753 GB, free: 19.85 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-05/0.3369, allocations: 37.72 kB / 0.7753 GB, free: 19.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.312e-05/0.3369, allocations: 334.8 kB / 0.7756 GB, free: 19.47 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.3371, allocations: 91.89 kB / 0.7757 GB, free: 19.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.3372, allocations: 136.3 kB / 0.7759 GB, free: 19.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002537/0.3375, allocations: 241.3 kB / 0.7761 GB, free: 18.97 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3375, allocations: 0 / 0.7761 GB, free: 18.97 MB / 458.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003838/0.3379, allocations: 334.9 kB / 0.7764 GB, free: 18.63 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.3379, allocations: 33.7 kB / 0.7764 GB, free: 18.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.338, allocations: 4 kB / 0.7764 GB, free: 18.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.338, allocations: 0 / 0.7764 GB, free: 18.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.3381, allocations: 27.92 kB / 0.7765 GB, free: 18.56 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.3381, allocations: 0 / 0.7765 GB, free: 18.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.3382, allocations: 31.92 kB / 0.7765 GB, free: 18.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.3382, allocations: 4 kB / 0.7765 GB, free: 18.53 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000119/0.3384, allocations: 200.9 kB / 0.7767 GB, free: 18.32 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.01e-05/0.3384, allocations: 23.72 kB / 0.7767 GB, free: 18.29 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.51e-05/0.3385, allocations: 37.77 kB / 0.7768 GB, free: 18.26 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3385, allocations: 0 / 0.7768 GB, free: 18.26 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3385, allocations: 0 / 0.7768 GB, free: 18.26 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3385, allocations: 4 kB / 0.7768 GB, free: 18.25 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.3387, allocations: 293.3 kB / 0.777 GB, free: 17.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3387, allocations: 0 / 0.777 GB, free: 17.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.419e-05/0.3388, allocations: 15.98 kB / 0.7771 GB, free: 17.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3388, allocations: 0 / 0.7771 GB, free: 17.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.3388, allocations: 4 kB / 0.7771 GB, free: 17.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3388, allocations: 0 / 0.7771 GB, free: 17.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3388, allocations: 8 kB / 0.7771 GB, free: 17.89 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0031/0.3419, allocations: 2.982 MB / 0.78 GB, free: 14.73 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.617e-05/0.342, allocations: 100.8 kB / 0.7801 GB, free: 14.62 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.342, allocations: 4 kB / 0.7801 GB, free: 14.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.906e-05/0.3421, allocations: 19.92 kB / 0.7801 GB, free: 14.59 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.728e-05/0.3422, allocations: 27.95 kB / 0.7801 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.3422, allocations: 8.062 kB / 0.7801 GB, free: 14.56 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001267/0.3424, allocations: 205.9 kB / 0.7803 GB, free: 14.36 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3424, allocations: 0 / 0.7803 GB, free: 14.36 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003449/0.3427, allocations: 72 kB / 0.7804 GB, free: 14.29 MB / 458.7 MB 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 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001436/0.3429, allocations: 128.5 kB / 0.7805 GB, free: 14.15 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0003711/0.3432, allocations: 291.4 kB / 0.7808 GB, free: 13.85 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3433, allocations: 0 / 0.7808 GB, free: 13.85 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.3434, allocations: 183.4 kB / 0.781 GB, free: 13.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.3437, allocations: 36.53 kB / 0.781 GB, free: 13.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.3447, allocations: 0.7505 MB / 0.7817 GB, free: 12.83 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001895/0.3449, allocations: 0.7518 MB / 0.7825 GB, free: 12.05 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 9.253e-05/0.345, allocations: 25.53 kB / 0.7825 GB, free: 12.03 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.479e-05/0.3451, allocations: 15.44 kB / 0.7825 GB, free: 12.01 MB / 458.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3451, allocations: 0 / 0.7825 GB, free: 12.01 MB / 458.7 MB Notification: Performance of Templates: time 0.005558/0.3507, allocations: 3.051 MB / 0.7855 GB, free: 8.984 MB / 458.7 MB 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)