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.558/1.558, allocations: 252 MB / 267.3 MB, free: 10.84 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.001131/0.001131, allocations: 178.6 kB / 327 MB, free: 2.074 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.932/1.932, allocations: 205.4 MB / 0.578 GB, free: 20.09 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.00102/0.00102, allocations: 84.25 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003351/0.0003353, allocations: 9.75 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2145, allocations: 106.3 MB / 0.9009 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002092/0.2167, allocations: 1.669 MB / 0.9025 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001139/0.2179, allocations: 0.7449 MB / 0.9033 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.218, allocations: 7.938 kB / 0.9033 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002005/0.2182, allocations: 79.75 kB / 0.9034 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.492e-05/0.2183, allocations: 83.7 kB / 0.9034 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004551/0.2188, allocations: 154.8 kB / 0.9036 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002022/0.219, allocations: 243.4 kB / 0.9038 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.2192, allocations: 57.91 kB / 0.9039 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.2193, allocations: 87.66 kB / 0.9039 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001685/0.2194, allocations: 139.5 kB / 0.9041 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.742e-05/0.2195, allocations: 4 kB / 0.9041 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001232/0.2196, allocations: 75.94 kB / 0.9042 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7e-05/0.2197, allocations: 51.75 kB / 0.9042 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8e-05/0.2198, allocations: 109.1 kB / 0.9043 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002514/0.22, allocations: 287.2 kB / 0.9046 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.22, allocations: 0 / 0.9046 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.804e-06/0.2201, allocations: 0 / 0.9046 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.2201, allocations: 0 / 0.9046 GB, free: 59.58 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.0006785/0.2208, allocations: 0.5509 MB / 0.9051 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.2208, allocations: 8.031 kB / 0.9051 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.455e-05/0.2209, allocations: 54.73 kB / 0.9052 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.818e-05/0.2209, allocations: 24.66 kB / 0.9052 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003656/0.2213, allocations: 306.8 kB / 0.9055 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.2213, allocations: 12.38 kB / 0.9055 GB, free: 58.53 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.906e-05/0.2213, allocations: 16.38 kB / 0.9055 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003232/0.2217, allocations: 231.1 kB / 0.9057 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.2217, allocations: 3.938 kB / 0.9058 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.2217, allocations: 8 kB / 0.9058 GB, free: 58.26 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.2217, allocations: 7.984 kB / 0.9058 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000214/0.222, allocations: 132.4 kB / 0.9059 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006998/0.2227, allocations: 0.6886 MB / 0.9066 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.223, allocations: 174.5 kB / 0.9067 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.2232, allocations: 104.9 kB / 0.9068 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.2232, allocations: 4 kB / 0.9068 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002665/0.2235, allocations: 185 kB / 0.907 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=15): time 1.664e-06/0.2235, allocations: 0 / 0.907 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of matching and sorting (n=15): time 0.0005738/0.224, allocations: 388.5 kB / 0.9074 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.2241, allocations: 136.5 kB / 0.9075 GB, free: 56.33 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002006/0.2243, allocations: 278.7 kB / 0.9078 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.2243, allocations: 29.7 kB / 0.9078 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.287e-05/0.2244, allocations: 160.2 kB / 0.908 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.256e-05/0.2245, allocations: 43.39 kB / 0.908 GB, free: 55.81 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.072e-05/0.2245, allocations: 4 kB / 0.908 GB, free: 55.81 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.185e-05/0.2246, allocations: 338.8 kB / 0.9083 GB, free: 55.47 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.2247, allocations: 95.95 kB / 0.9084 GB, free: 55.38 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000152/0.2249, allocations: 129.1 kB / 0.9085 GB, free: 55.23 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002657/0.2251, allocations: 253.3 kB / 0.9088 GB, free: 54.96 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2251, allocations: 0 / 0.9088 GB, free: 54.96 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000401/0.2256, allocations: 338.9 kB / 0.9091 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.239e-05/0.2256, allocations: 41.69 kB / 0.9091 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.2256, allocations: 4 kB / 0.9092 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.2256, allocations: 96 / 0.9092 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.2258, allocations: 31.86 kB / 0.9092 GB, free: 54.54 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.2258, allocations: 0 / 0.9092 GB, free: 54.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.2259, allocations: 39.83 kB / 0.9092 GB, free: 54.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.2259, allocations: 4 kB / 0.9092 GB, free: 54.49 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.2261, allocations: 197.4 kB / 0.9094 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.83e-05/0.2261, allocations: 23.72 kB / 0.9094 GB, free: 54.26 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.874e-05/0.2262, allocations: 33.83 kB / 0.9095 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.2262, allocations: 0 / 0.9095 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.2262, allocations: 0 / 0.9095 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.2262, allocations: 4 kB / 0.9095 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001875/0.2264, allocations: 293.4 kB / 0.9098 GB, free: 53.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2264, allocations: 4 kB / 0.9098 GB, free: 53.89 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.747e-05/0.2265, allocations: 15.98 kB / 0.9098 GB, free: 53.87 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.2265, allocations: 0 / 0.9098 GB, free: 53.87 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.2265, allocations: 4 kB / 0.9098 GB, free: 53.87 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2265, allocations: 0 / 0.9098 GB, free: 53.87 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2265, allocations: 0 / 0.9098 GB, free: 53.87 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006441/0.2272, allocations: 495.4 kB / 0.9102 GB, free: 53.36 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.736e-05/0.2273, allocations: 92.86 kB / 0.9103 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.231e-05/0.2273, allocations: 8 kB / 0.9103 GB, free: 53.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.2274, allocations: 20.05 kB / 0.9104 GB, free: 53.22 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.131e-05/0.2275, allocations: 27.95 kB / 0.9104 GB, free: 53.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.2275, allocations: 4 kB / 0.9104 GB, free: 53.19 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001362/0.2277, allocations: 202 kB / 0.9106 GB, free: 52.99 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2277, allocations: 0 / 0.9106 GB, free: 52.99 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002598/0.2279, allocations: 67.98 kB / 0.9106 GB, free: 52.93 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008174/0.2288, allocations: 1.03 MB / 0.9117 GB, free: 51.86 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003942/0.2292, allocations: 304.5 kB / 0.9119 GB, free: 51.55 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2292, allocations: 0 / 0.9119 GB, free: 51.55 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001803/0.2294, allocations: 187.3 kB / 0.9121 GB, free: 51.36 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.2297, allocations: 43.22 kB / 0.9122 GB, free: 51.32 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.2326, allocations: 2.85 MB / 0.9149 GB, free: 48.36 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001575/0.2328, allocations: 0.7553 MB / 0.9157 GB, free: 47.58 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.243e-05/0.2329, allocations: 25.52 kB / 0.9157 GB, free: 47.55 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.093e-05/0.233, allocations: 67.42 kB / 0.9158 GB, free: 47.49 MB / 0.6042 GB Notification: Performance of SimCode: time 5.01e-07/0.233, allocations: 0 / 0.9158 GB, free: 47.49 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01532/0.2483, allocations: 4.869 MB / 0.9205 GB, free: 42.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001627/0.2485, allocations: 210.1 kB / 0.9207 GB, free: 42.51 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.214, allocations: 0 / 0.9207 GB, free: 42.51 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)