Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json 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/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008946/0.0008945, allocations: 92.23 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005306/0.005306, allocations: 169.8 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.197/1.197, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.408/2.408, allocations: 462.7 MB / 0.7364 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002756/0.0002757, allocations: 11.88 kB / 0.9029 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.2222, allocations: 159.6 MB / 1.059 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001823/0.2241, allocations: 1.672 MB / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009572/0.2251, allocations: 0.7052 MB / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.426e-05/0.2251, allocations: 0 / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001771/0.2253, allocations: 79.77 kB / 1.061 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.2254, allocations: 83.69 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004116/0.2259, allocations: 159.8 kB / 1.061 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002236/0.2261, allocations: 243.4 kB / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.2262, allocations: 58.12 kB / 1.062 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.2263, allocations: 99.59 kB / 1.062 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.2265, allocations: 119.6 kB / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.2265, allocations: 4 kB / 1.062 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.2266, allocations: 79.92 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.871e-05/0.2267, allocations: 47.77 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.663e-05/0.2268, allocations: 113.1 kB / 1.062 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.2271, allocations: 283 kB / 1.062 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2271, allocations: 4 kB / 1.062 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2271, allocations: 4 kB / 1.062 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.2271, allocations: 0 / 1.062 GB, free: 1.129 MB / 0.8106 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.0006415/0.2277, allocations: 0.543 MB / 1.063 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.2278, allocations: 15.97 kB / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.271e-05/0.2278, allocations: 46.73 kB / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.858e-05/0.2279, allocations: 28.66 kB / 1.063 GB, free: 444 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.2282, allocations: 302.9 kB / 1.063 GB, free: 104 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.2283, allocations: 16.36 kB / 1.063 GB, free: 88 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/0.2283, allocations: 16.38 kB / 1.063 GB, free: 72 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.2287, allocations: 235.1 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.2287, allocations: 0 / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.2287, allocations: 4 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.2287, allocations: 4 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002309/0.229, allocations: 132.4 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006995/0.2297, allocations: 0.6923 MB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003386/0.23, allocations: 178.5 kB / 1.065 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.2302, allocations: 113 kB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.857e-06/0.2302, allocations: 0 / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002615/0.2305, allocations: 169 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.303e-06/0.2305, allocations: 0 / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0006079/0.2311, allocations: 389.5 kB / 1.065 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.5e-05/0.2312, allocations: 136.5 kB / 1.065 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002287/0.2314, allocations: 282.6 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.2314, allocations: 33.8 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.026e-05/0.2315, allocations: 164.1 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.567e-05/0.2316, allocations: 39.45 kB / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.2316, allocations: 29.7 kB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.265e-05/0.2317, allocations: 342.8 kB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.2319, allocations: 83.97 kB / 1.066 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.232, allocations: 140 kB / 1.066 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003098/0.2324, allocations: 244.1 kB / 1.067 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2324, allocations: 4.031 kB / 1.067 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004619/0.2328, allocations: 354.9 kB / 1.067 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.2329, allocations: 33.7 kB / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.2329, allocations: 4 kB / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.975e-06/0.2329, allocations: 0 / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.233, allocations: 28.08 kB / 1.067 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.233, allocations: 3.984 kB / 1.067 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.2332, allocations: 31.83 kB / 1.067 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.2332, allocations: 4 kB / 1.067 GB, free: 12.02 MB / 0.8262 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 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,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.0001513/0.2333, allocations: 193.6 kB / 1.067 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/0.2334, allocations: 27.72 kB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.796e-05/0.2334, allocations: 33.83 kB / 1.067 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2334, allocations: 0 / 1.067 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.2334, allocations: 0 / 1.067 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.2334, allocations: 3.984 kB / 1.067 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002098/0.2337, allocations: 297.3 kB / 1.068 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2337, allocations: 0 / 1.068 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-05/0.2338, allocations: 19.98 kB / 1.068 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2338, allocations: 0 / 1.068 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.2338, allocations: 15.98 kB / 1.068 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2338, allocations: 0 / 1.068 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2338, allocations: 0 / 1.068 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006441/0.2345, allocations: 482.2 kB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.084e-05/0.2345, allocations: 100.8 kB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.537e-05/0.2346, allocations: 8 kB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.2347, allocations: 19.98 kB / 1.068 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.884e-05/0.2347, allocations: 23.97 kB / 1.068 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.2348, allocations: 11.98 kB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001567/0.2349, allocations: 198 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2349, allocations: 4.062 kB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002438/0.2352, allocations: 55.94 kB / 1.068 GB, free: 10.46 MB / 0.8262 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.000907/0.2361, allocations: 1.046 MB / 1.07 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004146/0.2365, allocations: 303.1 kB / 1.07 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2365, allocations: 4.25 kB / 1.07 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002107/0.2368, allocations: 183.4 kB / 1.07 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002549/0.237, allocations: 32.53 kB / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/0.24, allocations: 2.864 MB / 1.073 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.2403, allocations: 0.7439 MB / 1.074 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.423e-05/0.2404, allocations: 21.55 kB / 1.074 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.936e-05/0.2405, allocations: 71.41 kB / 1.074 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.2405, allocations: 0 / 1.074 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.585/1.826, allocations: 4.86 MB / 1.078 GB, free: 304 kB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/1.826, allocations: 203.8 kB / 1.079 GB, free: 44 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.727/3.553, allocations: 4 kB / 1.079 GB, free: 40 kB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)