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.863/0.863, allocations: 141.8 MB / 149.3 MB, free: 9.211 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.001006/0.001006, allocations: 180.9 kB / 182.2 MB, free: 9.434 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.427/1.427, allocations: 221.5 MB / 436.4 MB, free: 13.34 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.0008472/0.0008471, allocations: 89.75 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001695/0.001695, allocations: 276.5 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 3.412e-05/3.423e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4296/0.4297, allocations: 82.77 MB / 0.7575 GB, free: 31.92 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1363/0.5661, allocations: 111 MB / 0.8659 GB, free: 0.7461 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.5663, allocations: 87.94 kB / 0.866 GB, free: 0.6602 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01635/0.5827, allocations: 5.855 MB / 0.8717 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.533e-06/0.5827, allocations: 0 / 0.8717 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.841e-05/0.5828, allocations: 4 kB / 0.8717 GB, free: 10.79 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.0008167/0.5836, allocations: 0.558 MB / 0.8722 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.5836, allocations: 12.03 kB / 0.8722 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.289e-05/0.5837, allocations: 31.66 kB / 0.8723 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/0.5842, allocations: 289.5 kB / 0.8725 GB, free: 9.82 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.5842, allocations: 8 kB / 0.8726 GB, free: 9.812 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.184e-05/0.5843, allocations: 8 kB / 0.8726 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00023/0.5845, allocations: 132.2 kB / 0.8727 GB, free: 9.672 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.5848, allocations: 220.1 kB / 0.8729 GB, free: 9.434 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.5848, allocations: 0 / 0.8729 GB, free: 9.434 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.311e-05/0.5849, allocations: 0 / 0.8729 GB, free: 9.434 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.5849, allocations: 4 kB / 0.8729 GB, free: 9.43 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008727/0.5858, allocations: 0.6929 MB / 0.8736 GB, free: 8.691 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002135/0.586, allocations: 146.5 kB / 0.8737 GB, free: 8.539 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.5861, allocations: 112.9 kB / 0.8738 GB, free: 8.426 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.5862, allocations: 0 / 0.8738 GB, free: 8.426 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002838/0.5865, allocations: 186.5 kB / 0.874 GB, free: 8.227 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.5865, allocations: 4 kB / 0.874 GB, free: 8.223 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15): time 0.0006235/0.5871, allocations: 294.9 kB / 0.8743 GB, free: 7.93 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.608e-05/0.5872, allocations: 136.5 kB / 0.8744 GB, free: 7.766 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002238/0.5874, allocations: 226 kB / 0.8746 GB, free: 7.543 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.5875, allocations: 33.7 kB / 0.8747 GB, free: 7.504 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.5876, allocations: 152.2 kB / 0.8748 GB, free: 7.352 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.632e-05/0.5876, allocations: 47.33 kB / 0.8749 GB, free: 7.305 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.314e-05/0.5876, allocations: 0 / 0.8749 GB, free: 7.305 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.5878, allocations: 342.8 kB / 0.8752 GB, free: 6.961 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.5879, allocations: 88.16 kB / 0.8753 GB, free: 6.871 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.5881, allocations: 137.5 kB / 0.8754 GB, free: 6.719 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.5883, allocations: 88.77 kB / 0.8755 GB, free: 6.633 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.5883, allocations: 8.031 kB / 0.8755 GB, free: 6.625 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000531/0.5888, allocations: 325.8 kB / 0.8758 GB, free: 6.301 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 5.505e-05/0.5889, allocations: 37.7 kB / 0.8758 GB, free: 6.258 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.719e-06/0.5889, allocations: 0 / 0.8758 GB, free: 6.258 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.829e-05/0.5889, allocations: 7.953 kB / 0.8758 GB, free: 6.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.5891, allocations: 27.92 kB / 0.8759 GB, free: 6.223 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.5891, allocations: 4 kB / 0.8759 GB, free: 6.219 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.5893, allocations: 40 kB / 0.8759 GB, free: 6.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.668e-05/0.5894, allocations: 8 kB / 0.8759 GB, free: 6.172 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.0001398/0.5895, allocations: 152.8 kB / 0.8761 GB, free: 6.012 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004926/0.59, allocations: 324.4 kB / 0.8764 GB, free: 5.691 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.787e-05/0.5901, allocations: 27.67 kB / 0.8764 GB, free: 5.664 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.799e-05/0.5901, allocations: 29.95 kB / 0.8764 GB, free: 5.629 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.5901, allocations: 192 / 0.8764 GB, free: 5.629 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.5902, allocations: 4 kB / 0.8764 GB, free: 5.625 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.5902, allocations: 3.938 kB / 0.8764 GB, free: 5.621 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002844/0.5905, allocations: 265.9 kB / 0.8767 GB, free: 5.324 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.5905, allocations: 0 / 0.8767 GB, free: 5.324 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000129/0.5906, allocations: 23.98 kB / 0.8767 GB, free: 5.301 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.5906, allocations: 0 / 0.8767 GB, free: 5.301 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.5906, allocations: 8 kB / 0.8767 GB, free: 5.293 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.5906, allocations: 7.891 kB / 0.8767 GB, free: 5.285 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.5907, allocations: 2.188 kB / 0.8767 GB, free: 5.285 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006713/0.5913, allocations: 482.2 kB / 0.8772 GB, free: 4.797 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.164e-05/0.5914, allocations: 100.8 kB / 0.8773 GB, free: 4.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.672e-05/0.5915, allocations: 8 kB / 0.8773 GB, free: 4.672 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.5916, allocations: 32.05 kB / 0.8773 GB, free: 4.641 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.27e-05/0.5917, allocations: 35.89 kB / 0.8774 GB, free: 4.605 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.5918, allocations: 8 kB / 0.8774 GB, free: 4.598 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001412/0.5919, allocations: 178 kB / 0.8775 GB, free: 4.422 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5919, allocations: 0 / 0.8775 GB, free: 4.422 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002948/0.5922, allocations: 60.06 kB / 0.8776 GB, free: 4.363 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.0008036/0.593, allocations: 0.9678 MB / 0.8785 GB, free: 3.371 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000318/0.5933, allocations: 267.3 kB / 0.8788 GB, free: 3.098 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5934, allocations: 0 / 0.8788 GB, free: 3.098 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.5935, allocations: 171.3 kB / 0.879 GB, free: 2.918 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.5938, allocations: 28.75 kB / 0.879 GB, free: 2.891 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009312/0.5947, allocations: 420.6 kB / 0.8794 GB, free: 2.445 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.595, allocations: 0.7555 MB / 0.8801 GB, free: 1.664 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.946e-05/0.5951, allocations: 13.2 kB / 0.8801 GB, free: 1.645 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.5952, allocations: 75.41 kB / 0.8802 GB, free: 1.574 MB / 0.5417 GB Notification: Performance of SimCode: time 2.9e-07/0.5952, allocations: 0 / 0.8802 GB, free: 1.574 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02119/0.6164, allocations: 4.367 MB / 0.8845 GB, free: 13.26 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/0.6166, allocations: 155.6 kB / 0.8846 GB, free: 13.06 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.86/2.477, allocations: 0 / 0.8846 GB, free: 13.06 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)