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: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7186/0.7186, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 185.4 kB / 187.3 MB, free: 11.88 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.276/1.276, allocations: 221.3 MB / 441.4 MB, free: 4.648 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.0009085/0.0009085, allocations: 95.81 kB / 0.5124 GB, free: 24.19 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001708/0.001708, allocations: 265.9 kB / 0.5939 GB, free: 7.965 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.913e-05/3.917e-05, allocations: 7.938 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4071/0.4072, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1164/0.5236, allocations: 111.7 MB / 0.8734 GB, free: 12.84 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/0.524, allocations: 84.8 kB / 0.8735 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01689/0.5409, allocations: 5.883 MB / 0.8793 GB, free: 6.887 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.944e-06/0.5409, allocations: 0 / 0.8793 GB, free: 6.887 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.601e-05/0.541, allocations: 4 kB / 0.8793 GB, free: 6.883 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.0008624/0.5418, allocations: 0.558 MB / 0.8798 GB, free: 6.273 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.5419, allocations: 8.031 kB / 0.8798 GB, free: 6.266 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.562e-05/0.5419, allocations: 58.48 kB / 0.8799 GB, free: 6.199 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.633e-05/0.542, allocations: 31.72 kB / 0.8799 GB, free: 6.168 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004592/0.5425, allocations: 289.5 kB / 0.8802 GB, free: 5.848 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.5425, allocations: 12 kB / 0.8802 GB, free: 5.836 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.182e-05/0.5426, allocations: 15.91 kB / 0.8802 GB, free: 5.82 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000397/0.543, allocations: 239.1 kB / 0.8804 GB, free: 5.559 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.543, allocations: 4 kB / 0.8804 GB, free: 5.555 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.553e-05/0.543, allocations: 8 kB / 0.8804 GB, free: 5.547 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.5431, allocations: 0 / 0.8804 GB, free: 5.547 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002288/0.5433, allocations: 140.4 kB / 0.8806 GB, free: 5.41 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000998/0.5443, allocations: 0.7354 MB / 0.8813 GB, free: 4.617 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002609/0.5446, allocations: 158.6 kB / 0.8814 GB, free: 4.453 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.5447, allocations: 105 kB / 0.8815 GB, free: 4.348 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.607e-05/0.5447, allocations: 0 / 0.8815 GB, free: 4.348 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002619/0.545, allocations: 193 kB / 0.8817 GB, free: 4.141 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.545, allocations: 0 / 0.8817 GB, free: 4.141 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15): time 0.0006015/0.5456, allocations: 336.5 kB / 0.8821 GB, free: 3.801 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.538e-05/0.5457, allocations: 132.5 kB / 0.8822 GB, free: 3.641 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002511/0.546, allocations: 251.1 kB / 0.8824 GB, free: 3.395 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.546, allocations: 37.62 kB / 0.8825 GB, free: 3.352 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.5462, allocations: 156.2 kB / 0.8826 GB, free: 3.195 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.428e-05/0.5462, allocations: 43.44 kB / 0.8826 GB, free: 3.152 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.5462, allocations: 4 kB / 0.8827 GB, free: 3.148 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.5464, allocations: 334.8 kB / 0.883 GB, free: 2.812 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001442/0.5465, allocations: 96.16 kB / 0.8831 GB, free: 2.715 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.5467, allocations: 142.7 kB / 0.8832 GB, free: 2.559 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.5469, allocations: 123.3 kB / 0.8833 GB, free: 2.434 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.5469, allocations: 0 / 0.8833 GB, free: 2.434 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004963/0.5474, allocations: 370.9 kB / 0.8837 GB, free: 2.059 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.144e-05/0.5474, allocations: 45.64 kB / 0.8837 GB, free: 2.008 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.5474, allocations: 0 / 0.8837 GB, free: 2.008 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.5474, allocations: 0 / 0.8837 GB, free: 2.008 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.5476, allocations: 31.98 kB / 0.8837 GB, free: 1.977 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.5476, allocations: 4 kB / 0.8837 GB, free: 1.973 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.5478, allocations: 43.81 kB / 0.8838 GB, free: 1.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.571e-05/0.5478, allocations: 12 kB / 0.8838 GB, free: 1.918 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.0001156/0.548, allocations: 148.7 kB / 0.8839 GB, free: 1.762 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.697e-05/0.548, allocations: 23.72 kB / 0.884 GB, free: 1.738 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.061e-05/0.5481, allocations: 37.91 kB / 0.884 GB, free: 1.699 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.5481, allocations: 0 / 0.884 GB, free: 1.699 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.5481, allocations: 0 / 0.884 GB, free: 1.699 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.5481, allocations: 7.984 kB / 0.884 GB, free: 1.691 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002731/0.5484, allocations: 297.5 kB / 0.8843 GB, free: 1.352 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.5484, allocations: 96 / 0.8843 GB, free: 1.352 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/0.5485, allocations: 23.92 kB / 0.8843 GB, free: 1.328 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.5485, allocations: 0 / 0.8843 GB, free: 1.328 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/0.5485, allocations: 7.984 kB / 0.8843 GB, free: 1.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-06/0.5486, allocations: 7.953 kB / 0.8843 GB, free: 1.312 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.5486, allocations: 4 kB / 0.8843 GB, free: 1.309 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007629/0.5493, allocations: 0.5331 MB / 0.8849 GB, free: 0.7539 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.263e-05/0.5494, allocations: 96.84 kB / 0.8849 GB, free: 0.6406 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.242e-05/0.5495, allocations: 8 kB / 0.885 GB, free: 0.6328 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001548/0.5496, allocations: 27.98 kB / 0.885 GB, free: 0.6055 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.193e-05/0.5497, allocations: 35.97 kB / 0.885 GB, free: 0.5703 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.619e-05/0.5498, allocations: 11.98 kB / 0.885 GB, free: 0.5586 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001788/0.5499, allocations: 199.1 kB / 0.8852 GB, free: 368 kB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5499, allocations: 0 / 0.8852 GB, free: 368 kB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002787/0.5502, allocations: 71.95 kB / 0.8853 GB, free: 296 kB / 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.0009385/0.5512, allocations: 1 MB / 0.8863 GB, free: 15.25 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0003631/0.5515, allocations: 279.2 kB / 0.8865 GB, free: 14.97 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.5516, allocations: 0 / 0.8865 GB, free: 14.97 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001982/0.5518, allocations: 171.4 kB / 0.8867 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.552, allocations: 28.5 kB / 0.8867 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009558/0.553, allocations: 445.8 kB / 0.8871 GB, free: 14.29 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.5533, allocations: 0.7558 MB / 0.8879 GB, free: 13.51 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 7.646e-05/0.5534, allocations: 13.2 kB / 0.8879 GB, free: 13.49 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.5535, allocations: 67.41 kB / 0.888 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of SimCode: time 3.51e-07/0.5535, allocations: 0 / 0.888 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01587/0.5694, allocations: 4.899 MB / 0.8927 GB, free: 8.727 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/0.5696, allocations: 162.5 kB / 0.8929 GB, free: 8.504 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.872/2.441, allocations: 6.734 kB / 0.8929 GB, free: 8.5 MB / 0.5573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)