Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.413/1.413, allocations: 251.9 MB / 266.9 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001062/0.001062, allocations: 183.3 kB / 326.5 MB, free: 2.211 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.807/1.807, allocations: 205.4 MB / 0.5775 GB, free: 20.53 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009057/0.0009054, allocations: 101.1 kB / 0.6821 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000413/0.0004132, allocations: 8.875 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2671, allocations: 106.4 MB / 0.9002 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002176/0.2694, allocations: 1.608 MB / 0.9017 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.2704, allocations: 0.7062 MB / 0.9024 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.2706, allocations: 0 / 0.9024 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.2707, allocations: 75.75 kB / 0.9025 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001783/0.2709, allocations: 87.78 kB / 0.9026 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005234/0.2715, allocations: 130 kB / 0.9027 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002092/0.2717, allocations: 151.7 kB / 0.9028 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.2718, allocations: 53.66 kB / 0.9029 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.2719, allocations: 87.67 kB / 0.903 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000154/0.2721, allocations: 111.6 kB / 0.9031 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.214e-05/0.2721, allocations: 4 kB / 0.9031 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.2722, allocations: 63.94 kB / 0.9031 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.037e-05/0.2723, allocations: 47.77 kB / 0.9032 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.671e-05/0.2724, allocations: 65.58 kB / 0.9033 GB, free: 61 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.2726, allocations: 211.8 kB / 0.9035 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.2726, allocations: 0 / 0.9035 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2726, allocations: 0 / 0.9035 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.87e-06/0.2726, allocations: 3.938 kB / 0.9035 GB, free: 60.79 MB / 0.6042 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.0007877/0.2734, allocations: 0.5507 MB / 0.904 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.2735, allocations: 12.03 kB / 0.904 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.699e-05/0.2735, allocations: 46.55 kB / 0.9041 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.325e-05/0.2736, allocations: 31.67 kB / 0.9041 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004471/0.274, allocations: 301.5 kB / 0.9044 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.2741, allocations: 16 kB / 0.9044 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.136e-05/0.2741, allocations: 12 kB / 0.9044 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003541/0.2745, allocations: 227.1 kB / 0.9046 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.2745, allocations: 3.984 kB / 0.9046 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.2745, allocations: 4 kB / 0.9046 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.371e-06/0.2745, allocations: 4 kB / 0.9046 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002274/0.2748, allocations: 144.2 kB / 0.9048 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007742/0.2755, allocations: 0.6809 MB / 0.9054 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003227/0.2759, allocations: 178.5 kB / 0.9056 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.542e-05/0.2759, allocations: 0 / 0.9056 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002908/0.2762, allocations: 173.2 kB / 0.9058 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.2762, allocations: 0 / 0.9058 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of matching and sorting (n=15): time 0.0006389/0.2769, allocations: 474.6 kB / 0.9062 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.2769, allocations: 132.5 kB / 0.9063 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002084/0.2772, allocations: 286.6 kB / 0.9066 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.2772, allocations: 29.7 kB / 0.9066 GB, free: 57.24 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.414e-05/0.2773, allocations: 156.2 kB / 0.9068 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.465e-05/0.2773, allocations: 47.44 kB / 0.9068 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.447e-06/0.2773, allocations: 0 / 0.9068 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.158e-05/0.2774, allocations: 338.8 kB / 0.9072 GB, free: 56.7 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.2776, allocations: 88.14 kB / 0.9072 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.2777, allocations: 136.7 kB / 0.9074 GB, free: 56.46 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001525/0.2779, allocations: 120 kB / 0.9075 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2779, allocations: 0 / 0.9075 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004136/0.2783, allocations: 342.9 kB / 0.9078 GB, free: 56 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.822e-05/0.2784, allocations: 40.52 kB / 0.9079 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.2784, allocations: 0 / 0.9079 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.2784, allocations: 4 kB / 0.9079 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.2785, allocations: 27.92 kB / 0.9079 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.2786, allocations: 0 / 0.9079 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.2787, allocations: 31.83 kB / 0.9079 GB, free: 55.89 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.2787, allocations: 4.062 kB / 0.9079 GB, free: 55.89 MB / 0.6042 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.0001596/0.2789, allocations: 201.5 kB / 0.9081 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.903e-05/0.2789, allocations: 27.66 kB / 0.9081 GB, free: 55.65 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.928e-05/0.279, allocations: 29.83 kB / 0.9082 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.279, allocations: 4 kB / 0.9082 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.279, allocations: 0 / 0.9082 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.279, allocations: 0 / 0.9082 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.2792, allocations: 293.3 kB / 0.9085 GB, free: 55.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2792, allocations: 0 / 0.9085 GB, free: 55.28 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.2793, allocations: 27.92 kB / 0.9085 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2793, allocations: 0 / 0.9085 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.2794, allocations: 8 kB / 0.9085 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.2794, allocations: 0 / 0.9085 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2794, allocations: 0 / 0.9085 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006001/0.28, allocations: 478.3 kB / 0.9089 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.416e-05/0.28, allocations: 104.7 kB / 0.909 GB, free: 54.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.118e-05/0.2801, allocations: 8 kB / 0.909 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.2802, allocations: 15.98 kB / 0.9091 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.709e-05/0.2803, allocations: 39.98 kB / 0.9091 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.2803, allocations: 4 kB / 0.9091 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001489/0.2805, allocations: 201.9 kB / 0.9093 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2805, allocations: 0 / 0.9093 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000263/0.2807, allocations: 56.12 kB / 0.9094 GB, free: 54.31 MB / 0.6042 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 (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 (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.0008565/0.2816, allocations: 1.041 MB / 0.9104 GB, free: 53.24 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004108/0.282, allocations: 303.3 kB / 0.9107 GB, free: 52.93 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.282, allocations: 0 / 0.9107 GB, free: 52.93 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.2822, allocations: 187.3 kB / 0.9108 GB, free: 52.74 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.2825, allocations: 24.73 kB / 0.9109 GB, free: 52.71 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.2849, allocations: 2.084 MB / 0.9129 GB, free: 50.57 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.2852, allocations: 0.7598 MB / 0.9136 GB, free: 49.78 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.991e-05/0.2854, allocations: 17.53 kB / 0.9137 GB, free: 49.76 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.2855, allocations: 75.41 kB / 0.9137 GB, free: 49.69 MB / 0.6042 GB Notification: Performance of SimCode: time 8.21e-07/0.2855, allocations: 4 kB / 0.9137 GB, free: 49.68 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01611/0.3016, allocations: 4.857 MB / 0.9185 GB, free: 44.98 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.3019, allocations: 190.5 kB / 0.9187 GB, free: 44.74 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.95/2.251, allocations: 0 / 0.9187 GB, free: 44.74 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)