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.9018/0.9018, allocations: 141.8 MB / 149.3 MB, free: 9.223 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.001475/0.001475, allocations: 180.9 kB / 182.2 MB, free: 9.477 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.512/1.512, allocations: 221.5 MB / 436.4 MB, free: 13.31 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.0009465/0.0009465, allocations: 96.05 kB / 0.5074 GB, free: 10.13 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001787/0.001787, allocations: 277.1 kB / 0.5889 GB, free: 54.69 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.665e-05/1.692e-05, allocations: 4 kB / 0.6765 GB, free: 12.85 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4978/0.4978, allocations: 82.77 MB / 0.7574 GB, free: 32.04 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.196/0.6939, allocations: 111 MB / 0.8658 GB, free: 0.8711 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003594/0.6944, allocations: 91.75 kB / 0.8659 GB, free: 0.7852 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01786/0.7123, allocations: 5.848 MB / 0.8716 GB, free: 10.93 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7123, allocations: 0 / 0.8716 GB, free: 10.93 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.678e-05/0.7124, allocations: 8 kB / 0.8716 GB, free: 10.92 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.001009/0.7134, allocations: 0.5463 MB / 0.8721 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.7134, allocations: 12.02 kB / 0.8721 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.7136, allocations: 27.72 kB / 0.8722 GB, free: 10.28 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005301/0.7141, allocations: 289.5 kB / 0.8724 GB, free: 9.961 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.7141, allocations: 8 kB / 0.8725 GB, free: 9.953 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.788e-05/0.7142, allocations: 8 kB / 0.8725 GB, free: 9.945 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000279/0.7145, allocations: 128.2 kB / 0.8726 GB, free: 9.816 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003496/0.7149, allocations: 227 kB / 0.8728 GB, free: 9.57 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.7149, allocations: 0 / 0.8728 GB, free: 9.57 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.7149, allocations: 0 / 0.8728 GB, free: 9.57 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.7149, allocations: 4 kB / 0.8728 GB, free: 9.566 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.716, allocations: 0.689 MB / 0.8735 GB, free: 8.832 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.7163, allocations: 154.5 kB / 0.8736 GB, free: 8.672 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.7164, allocations: 105 kB / 0.8737 GB, free: 8.566 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.7165, allocations: 3.984 kB / 0.8737 GB, free: 8.562 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002394/0.7167, allocations: 185 kB / 0.8739 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.7167, allocations: 3.938 kB / 0.8739 GB, free: 8.359 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15): time 0.0006402/0.7174, allocations: 298.9 kB / 0.8742 GB, free: 8.062 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.675e-05/0.7175, allocations: 136.5 kB / 0.8743 GB, free: 7.898 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.7177, allocations: 226 kB / 0.8745 GB, free: 7.676 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.644e-05/0.7178, allocations: 33.7 kB / 0.8746 GB, free: 7.637 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.7179, allocations: 152.2 kB / 0.8747 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.761e-05/0.718, allocations: 39.45 kB / 0.8748 GB, free: 7.445 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.277e-05/0.718, allocations: 0 / 0.8748 GB, free: 7.445 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000157/0.7182, allocations: 338.8 kB / 0.8751 GB, free: 7.105 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.7183, allocations: 96.16 kB / 0.8752 GB, free: 7.008 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.7185, allocations: 130.7 kB / 0.8753 GB, free: 6.863 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001912/0.7187, allocations: 95.84 kB / 0.8754 GB, free: 6.77 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.7187, allocations: 0 / 0.8754 GB, free: 6.77 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005671/0.7193, allocations: 330.2 kB / 0.8757 GB, free: 6.441 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.604e-05/0.7193, allocations: 45.62 kB / 0.8757 GB, free: 6.391 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.7193, allocations: 0 / 0.8757 GB, free: 6.391 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.7194, allocations: 7.953 kB / 0.8757 GB, free: 6.383 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.7195, allocations: 23.98 kB / 0.8758 GB, free: 6.359 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.7196, allocations: 11.88 kB / 0.8758 GB, free: 6.348 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/0.7197, allocations: 40 kB / 0.8758 GB, free: 6.309 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.696e-05/0.7198, allocations: 8 kB / 0.8758 GB, free: 6.301 MB / 0.5417 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.0001442/0.7199, allocations: 147.7 kB / 0.876 GB, free: 6.145 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.803e-05/0.72, allocations: 23.72 kB / 0.876 GB, free: 6.121 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.753e-05/0.7201, allocations: 25.95 kB / 0.876 GB, free: 6.094 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.7201, allocations: 4 kB / 0.876 GB, free: 6.09 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.7201, allocations: 11.95 kB / 0.876 GB, free: 6.078 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.7201, allocations: 0 / 0.876 GB, free: 6.078 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/0.7204, allocations: 270 kB / 0.8763 GB, free: 5.777 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.7204, allocations: 0 / 0.8763 GB, free: 5.777 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001347/0.7206, allocations: 23.92 kB / 0.8763 GB, free: 5.754 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.7206, allocations: 0 / 0.8763 GB, free: 5.754 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/0.7206, allocations: 4 kB / 0.8763 GB, free: 5.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.7206, allocations: 4 kB / 0.8763 GB, free: 5.746 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.7206, allocations: 0 / 0.8763 GB, free: 5.746 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007942/0.7214, allocations: 491.5 kB / 0.8768 GB, free: 5.246 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.731e-05/0.7215, allocations: 92.86 kB / 0.8769 GB, free: 5.137 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.04e-05/0.7216, allocations: 8 kB / 0.8769 GB, free: 5.129 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.7217, allocations: 32.03 kB / 0.8769 GB, free: 5.098 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.145e-05/0.7218, allocations: 31.95 kB / 0.8769 GB, free: 5.066 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/0.7219, allocations: 11.94 kB / 0.877 GB, free: 5.055 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001768/0.7221, allocations: 178 kB / 0.8771 GB, free: 4.879 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.51e-07/0.7221, allocations: 0 / 0.8771 GB, free: 4.879 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003726/0.7224, allocations: 67.86 kB / 0.8772 GB, free: 4.812 MB / 0.5417 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.0002735/0.7227, allocations: 136.8 kB / 0.8773 GB, free: 4.672 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003795/0.7231, allocations: 263.3 kB / 0.8776 GB, free: 4.402 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.7231, allocations: 4 kB / 0.8776 GB, free: 4.398 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001811/0.7233, allocations: 167.3 kB / 0.8777 GB, free: 4.223 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/0.7236, allocations: 25.34 kB / 0.8778 GB, free: 4.199 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008718/0.7245, allocations: 347.3 kB / 0.8781 GB, free: 3.84 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.7249, allocations: 0.76 MB / 0.8788 GB, free: 3.055 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001041/0.725, allocations: 17.2 kB / 0.8789 GB, free: 3.035 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.699e-05/0.725, allocations: 19.42 kB / 0.8789 GB, free: 3.02 MB / 0.5417 GB Notification: Performance of SimCode: time 2.4e-07/0.725, allocations: 0 / 0.8789 GB, free: 3.02 MB / 0.5417 GB Notification: Performance of Templates: time 0.0063/0.7313, allocations: 2.345 MB / 0.8812 GB, free: 0.7109 MB / 0.5417 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)