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.456/1.456, allocations: 252 MB / 267 MB, free: 10.98 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.001166/0.001166, allocations: 185.8 kB / 326.6 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.021/2.021, allocations: 205.4 MB / 0.5777 GB, free: 20.59 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.000749/0.000749, allocations: 89.69 kB / 0.6823 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003224, allocations: 9 kB / 0.7965 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.214, allocations: 106.3 MB / 0.9003 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001895/0.216, allocations: 1.627 MB / 0.9019 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001085/0.2171, allocations: 0.6984 MB / 0.9026 GB, free: 62.01 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001424/0.2173, allocations: 7.875 kB / 0.9026 GB, free: 62 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000193/0.2175, allocations: 71.77 kB / 0.9026 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.2176, allocations: 95.67 kB / 0.9027 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005317/0.2181, allocations: 130.3 kB / 0.9029 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002396/0.2184, allocations: 215.5 kB / 0.9031 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.2185, allocations: 45.66 kB / 0.9031 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.2187, allocations: 95.66 kB / 0.9032 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.2188, allocations: 111.5 kB / 0.9033 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.131e-05/0.2189, allocations: 12 kB / 0.9033 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.219, allocations: 67.94 kB / 0.9034 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.002e-05/0.219, allocations: 43.83 kB / 0.9034 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.086e-05/0.2191, allocations: 65.56 kB / 0.9035 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001977/0.2193, allocations: 211.8 kB / 0.9037 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2193, allocations: 0 / 0.9037 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.106e-06/0.2193, allocations: 0 / 0.9037 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.2193, allocations: 3.938 kB / 0.9037 GB, free: 60.85 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.0006827/0.22, allocations: 0.5507 MB / 0.9042 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.2201, allocations: 8.031 kB / 0.9042 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.788e-05/0.2201, allocations: 50.55 kB / 0.9043 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.079e-05/0.2202, allocations: 27.67 kB / 0.9043 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004061/0.2206, allocations: 309.5 kB / 0.9046 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.2207, allocations: 12 kB / 0.9046 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.459e-05/0.2207, allocations: 16 kB / 0.9046 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003586/0.2211, allocations: 223.2 kB / 0.9049 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2211, allocations: 3.938 kB / 0.9049 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.2211, allocations: 7.984 kB / 0.9049 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.2211, allocations: 4 kB / 0.9049 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002186/0.2213, allocations: 140.3 kB / 0.905 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007151/0.2221, allocations: 0.6808 MB / 0.9057 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003221/0.2224, allocations: 178.5 kB / 0.9058 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.2226, allocations: 96.95 kB / 0.9059 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.56e-05/0.2226, allocations: 4 kB / 0.9059 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002771/0.2229, allocations: 177.1 kB / 0.9061 GB, free: 58.17 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=15): time 2.284e-06/0.2229, allocations: 4 kB / 0.9061 GB, free: 58.17 MB / 0.6042 GB Notification: Performance of matching and sorting (n=15): time 0.0005843/0.2235, allocations: 388.3 kB / 0.9065 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.2235, allocations: 136.5 kB / 0.9066 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.2237, allocations: 278.7 kB / 0.9069 GB, free: 57.33 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.2238, allocations: 33.7 kB / 0.9069 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.761e-05/0.2238, allocations: 156.3 kB / 0.9071 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.076e-05/0.2239, allocations: 47.33 kB / 0.9071 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.408e-06/0.2239, allocations: 4 kB / 0.9071 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.799e-05/0.224, allocations: 334.8 kB / 0.9074 GB, free: 56.75 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.2241, allocations: 92.14 kB / 0.9075 GB, free: 56.66 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.2243, allocations: 141.5 kB / 0.9076 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001442/0.2244, allocations: 113.7 kB / 0.9078 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2244, allocations: 0 / 0.9078 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004044/0.2248, allocations: 341.3 kB / 0.9081 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.549e-05/0.2249, allocations: 39.88 kB / 0.9081 GB, free: 56 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2249, allocations: 4 kB / 0.9081 GB, free: 56 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.2249, allocations: 4.094 kB / 0.9081 GB, free: 55.99 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.2251, allocations: 27.98 kB / 0.9081 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.2251, allocations: 0 / 0.9081 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.2252, allocations: 31.77 kB / 0.9082 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.2252, allocations: 4 kB / 0.9082 GB, free: 55.93 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.0001325/0.2253, allocations: 201.5 kB / 0.9084 GB, free: 55.72 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.93e-05/0.2254, allocations: 23.72 kB / 0.9084 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.438e-05/0.2254, allocations: 29.83 kB / 0.9084 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2254, allocations: 0 / 0.9084 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2255, allocations: 0 / 0.9084 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2255, allocations: 0 / 0.9084 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001775/0.2256, allocations: 297.3 kB / 0.9087 GB, free: 55.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2257, allocations: 4 kB / 0.9087 GB, free: 55.32 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.2258, allocations: 19.98 kB / 0.9087 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.2258, allocations: 3.938 kB / 0.9087 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.2258, allocations: 8 kB / 0.9087 GB, free: 55.29 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2258, allocations: 0 / 0.9087 GB, free: 55.29 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2258, allocations: 0 / 0.9087 GB, free: 55.29 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005921/0.2264, allocations: 475.8 kB / 0.9092 GB, free: 54.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.892e-05/0.2265, allocations: 112.6 kB / 0.9093 GB, free: 54.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.2265, allocations: 4 kB / 0.9093 GB, free: 54.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.2266, allocations: 19.98 kB / 0.9093 GB, free: 54.65 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.393e-05/0.2267, allocations: 23.95 kB / 0.9094 GB, free: 54.63 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.2267, allocations: 11.92 kB / 0.9094 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001282/0.2268, allocations: 202 kB / 0.9096 GB, free: 54.42 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2268, allocations: 4 kB / 0.9096 GB, free: 54.41 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002453/0.2271, allocations: 56.12 kB / 0.9096 GB, free: 54.36 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.0008739/0.228, allocations: 1.044 MB / 0.9106 GB, free: 53.29 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004201/0.2284, allocations: 303.6 kB / 0.9109 GB, free: 52.98 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.2284, allocations: 0 / 0.9109 GB, free: 52.98 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001985/0.2286, allocations: 187.3 kB / 0.9111 GB, free: 52.78 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.2289, allocations: 28.55 kB / 0.9111 GB, free: 52.75 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.2313, allocations: 1.646 MB / 0.9127 GB, free: 51.05 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.2315, allocations: 0.7594 MB / 0.9135 GB, free: 50.26 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.136e-05/0.2316, allocations: 21.53 kB / 0.9135 GB, free: 50.24 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.472e-05/0.2317, allocations: 71.41 kB / 0.9136 GB, free: 50.17 MB / 0.6042 GB Notification: Performance of SimCode: time 4.91e-07/0.2317, allocations: 0 / 0.9136 GB, free: 50.17 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01613/0.2479, allocations: 4.887 MB / 0.9183 GB, free: 45.44 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001505/0.2481, allocations: 195.8 kB / 0.9185 GB, free: 45.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.899/2.147, allocations: 4.062 kB / 0.9185 GB, free: 45.2 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)