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.7929/0.7929, allocations: 143.4 MB / 158.3 MB, free: 5.781 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.001017/0.001017, allocations: 175.5 kB / 191.5 MB, free: 5.766 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.394/1.394, allocations: 223.2 MB / 447.7 MB, free: 6.453 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.0009214/0.0009216, allocations: 100.2 kB / 0.5188 GB, free: 2.805 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00174/0.00174, allocations: 267.6 kB / 0.6005 GB, free: 48.98 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004316/0.0004314, allocations: 12 kB / 0.6929 GB, free: 2.309 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4275/0.428, allocations: 82.77 MB / 0.7737 GB, free: 26.23 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1528/0.5808, allocations: 111.8 MB / 0.8828 GB, free: 10.34 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/0.5812, allocations: 91.81 kB / 0.8829 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01657/0.5978, allocations: 5.902 MB / 0.8887 GB, free: 4.336 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.515e-06/0.5978, allocations: 0 / 0.8887 GB, free: 4.336 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.116e-05/0.5978, allocations: 15.94 kB / 0.8887 GB, free: 4.32 MB / 0.5417 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.0009183/0.5988, allocations: 0.5857 MB / 0.8893 GB, free: 3.68 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.5988, allocations: 8.562 kB / 0.8893 GB, free: 3.672 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.763e-05/0.5989, allocations: 27.72 kB / 0.8893 GB, free: 3.645 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004618/0.5994, allocations: 293.5 kB / 0.8896 GB, free: 3.316 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.5994, allocations: 12 kB / 0.8896 GB, free: 3.305 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.5994, allocations: 16 kB / 0.8896 GB, free: 3.289 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004716/0.5999, allocations: 256.2 kB / 0.8899 GB, free: 3.012 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.6, allocations: 7.938 kB / 0.8899 GB, free: 3.004 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.546e-05/0.6, allocations: 4 kB / 0.8899 GB, free: 3 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.6, allocations: 4 kB / 0.8899 GB, free: 2.996 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.6003, allocations: 163.4 kB / 0.89 GB, free: 2.84 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009867/0.6013, allocations: 0.7315 MB / 0.8908 GB, free: 2.051 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004897/0.6018, allocations: 226.6 kB / 0.891 GB, free: 1.82 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.6018, allocations: 0 / 0.891 GB, free: 1.82 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000348/0.6022, allocations: 201 kB / 0.8912 GB, free: 1.605 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.6022, allocations: 4 kB / 0.8912 GB, free: 1.602 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15): time 0.001131/0.6033, allocations: 0.5619 MB / 0.8917 GB, free: 1.012 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.508e-05/0.6035, allocations: 132.5 kB / 0.8918 GB, free: 0.8516 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.6038, allocations: 257.8 kB / 0.8921 GB, free: 0.6016 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/0.6038, allocations: 29.7 kB / 0.8921 GB, free: 0.5664 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.6039, allocations: 152.3 kB / 0.8923 GB, free: 424 kB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.608e-05/0.604, allocations: 43.38 kB / 0.8923 GB, free: 380 kB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.461e-05/0.604, allocations: 8 kB / 0.8923 GB, free: 372 kB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.6042, allocations: 338.8 kB / 0.8926 GB, free: 24 kB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002632/0.6044, allocations: 112.1 kB / 0.8927 GB, free: 15.91 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/0.6047, allocations: 162.9 kB / 0.8929 GB, free: 15.73 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.605, allocations: 155.1 kB / 0.893 GB, free: 15.58 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.605, allocations: 0 / 0.893 GB, free: 15.58 MB / 0.5573 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007207/0.6057, allocations: 413.6 kB / 0.8934 GB, free: 15.17 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 6.361e-05/0.6058, allocations: 42.78 kB / 0.8935 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.6058, allocations: 3.953 kB / 0.8935 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.6058, allocations: 4 kB / 0.8935 GB, free: 15.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.606, allocations: 32.08 kB / 0.8935 GB, free: 15.08 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.606, allocations: 96 / 0.8935 GB, free: 15.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.6062, allocations: 51.69 kB / 0.8936 GB, free: 15.03 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.351e-05/0.6063, allocations: 12 kB / 0.8936 GB, free: 15.02 MB / 0.5573 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002135/0.6065, allocations: 188.1 kB / 0.8938 GB, free: 14.82 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.469e-05/0.6066, allocations: 27.72 kB / 0.8938 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.6067, allocations: 29.83 kB / 0.8938 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.6067, allocations: 3.953 kB / 0.8938 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.6067, allocations: 4 kB / 0.8938 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.6067, allocations: 0 / 0.8938 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003239/0.607, allocations: 297.4 kB / 0.8941 GB, free: 14.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.607, allocations: 0 / 0.8941 GB, free: 14.41 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/0.6072, allocations: 27.97 kB / 0.8941 GB, free: 14.39 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/0.6072, allocations: 7.938 kB / 0.8941 GB, free: 14.38 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.978e-05/0.6072, allocations: 4 kB / 0.8941 GB, free: 14.38 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.6073, allocations: 4 kB / 0.8941 GB, free: 14.37 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.6073, allocations: 3.953 kB / 0.8941 GB, free: 14.37 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.6084, allocations: 0.58 MB / 0.8947 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 8.057e-05/0.6085, allocations: 100.8 kB / 0.8948 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.215e-05/0.6085, allocations: 8 kB / 0.8948 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/0.6087, allocations: 36.03 kB / 0.8949 GB, free: 13.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.6088, allocations: 31.89 kB / 0.8949 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.981e-05/0.6088, allocations: 23.92 kB / 0.8949 GB, free: 13.55 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001957/0.609, allocations: 198 kB / 0.8951 GB, free: 13.35 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.6e-07/0.609, allocations: 0 / 0.8951 GB, free: 13.35 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0003568/0.6094, allocations: 67.92 kB / 0.8952 GB, free: 13.29 MB / 0.5573 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) * 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 (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.0002699/0.6097, allocations: 127.2 kB / 0.8953 GB, free: 13.15 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0005748/0.6103, allocations: 323.4 kB / 0.8956 GB, free: 12.82 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.6103, allocations: 0 / 0.8956 GB, free: 12.82 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002888/0.6106, allocations: 199.3 kB / 0.8958 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.6109, allocations: 30.78 kB / 0.8958 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.612, allocations: 0.5185 MB / 0.8963 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.6124, allocations: 0.756 MB / 0.8971 GB, free: 11.27 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 8.684e-05/0.6125, allocations: 17.42 kB / 0.8971 GB, free: 11.25 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.982e-05/0.6126, allocations: 19.44 kB / 0.8971 GB, free: 11.23 MB / 0.5573 GB Notification: Performance of SimCode: time 3.51e-07/0.6126, allocations: 3.938 kB / 0.8971 GB, free: 11.23 MB / 0.5573 GB Notification: Performance of Templates: time 0.005709/0.6183, allocations: 2.51 MB / 0.8995 GB, free: 8.742 MB / 0.5573 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)