Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_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.001187/0.001187, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00843/0.00843, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.26/1.26, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.227/2.227, allocations: 390.9 MB / 0.6664 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003068, allocations: 12.28 kB / 0.8161 GB, free: 13.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5777/0.578, allocations: 142.4 MB / 0.9552 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001722/0.5798, allocations: 1.642 MB / 0.9568 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009785/0.5808, allocations: 0.7178 MB / 0.9575 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.507e-05/0.5809, allocations: 2.281 kB / 0.9575 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001868/0.5811, allocations: 69.94 kB / 0.9575 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.664e-05/0.5812, allocations: 85.19 kB / 0.9576 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004045/0.5816, allocations: 162.7 kB / 0.9578 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.5818, allocations: 244.7 kB / 0.958 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.582, allocations: 69.27 kB / 0.9581 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001104/0.5821, allocations: 86.02 kB / 0.9582 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.5823, allocations: 137 kB / 0.9583 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/0.5823, allocations: 5.5 kB / 0.9583 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.5825, allocations: 82.42 kB / 0.9584 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.507e-05/0.5825, allocations: 40.34 kB / 0.9584 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.522e-05/0.5826, allocations: 112.3 kB / 0.9585 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002536/0.5829, allocations: 284.2 kB / 0.9588 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.5829, allocations: 1.406 kB / 0.9588 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.5829, allocations: 0 / 0.9588 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.5829, allocations: 0 / 0.9588 GB, free: 5.008 MB / 0.7169 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.0006918/0.5836, allocations: 0.5544 MB / 0.9593 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.5837, allocations: 13.33 kB / 0.9593 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.48e-05/0.5837, allocations: 47.84 kB / 0.9594 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.38e-05/0.5838, allocations: 26.5 kB / 0.9594 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003805/0.5842, allocations: 312.9 kB / 0.9597 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.5842, allocations: 11.75 kB / 0.9597 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.315e-05/0.5842, allocations: 13 kB / 0.9597 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003642/0.5846, allocations: 233.1 kB / 0.96 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.5846, allocations: 0 / 0.96 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.5846, allocations: 6 kB / 0.96 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.5847, allocations: 4.219 kB / 0.96 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002372/0.5849, allocations: 136.7 kB / 0.9601 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006543/0.5856, allocations: 0.6892 MB / 0.9608 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003332/0.5859, allocations: 178.6 kB / 0.9609 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.5861, allocations: 107.2 kB / 0.9611 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.5861, allocations: 1.938 kB / 0.9611 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002639/0.5864, allocations: 166 kB / 0.9612 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.5864, allocations: 0 / 0.9612 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0006426/0.587, allocations: 399.7 kB / 0.9616 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.5871, allocations: 136.6 kB / 0.9617 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002165/0.5873, allocations: 276 kB / 0.962 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.5873, allocations: 36.34 kB / 0.962 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.292e-05/0.5874, allocations: 158.9 kB / 0.9622 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.16e-05/0.5874, allocations: 44.62 kB / 0.9622 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.4e-05/0.5875, allocations: 25.41 kB / 0.9622 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.62e-05/0.5875, allocations: 342.5 kB / 0.9626 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.5877, allocations: 85.86 kB / 0.9626 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.5879, allocations: 140.2 kB / 0.9628 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003136/0.5882, allocations: 252.6 kB / 0.963 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.5882, allocations: 1.062 kB / 0.963 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004677/0.5887, allocations: 344 kB / 0.9634 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.5887, allocations: 40.83 kB / 0.9634 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.5888, allocations: 1.531 kB / 0.9634 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.5888, allocations: 1.469 kB / 0.9634 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.5889, allocations: 23.89 kB / 0.9634 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.5889, allocations: 1.344 kB / 0.9634 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.5891, allocations: 30.67 kB / 0.9634 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.5891, allocations: 5.5 kB / 0.9635 GB, free: 1.355 MB / 0.7169 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.0001272/0.5892, allocations: 201.5 kB / 0.9636 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.248e-05/0.5892, allocations: 24.88 kB / 0.9637 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.855e-05/0.5893, allocations: 32.05 kB / 0.9637 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.5893, allocations: 1.062 kB / 0.9637 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5893, allocations: 0 / 0.9637 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.5893, allocations: 1.094 kB / 0.9637 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001757/0.5895, allocations: 289.3 kB / 0.964 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.5895, allocations: 0 / 0.964 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.719e-05/0.5896, allocations: 22.98 kB / 0.964 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.5896, allocations: 0 / 0.964 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.5896, allocations: 3.312 kB / 0.964 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.5897, allocations: 1.438 kB / 0.964 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5897, allocations: 3.938 kB / 0.964 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005954/0.5903, allocations: 490.6 kB / 0.9645 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.635e-05/0.5903, allocations: 94.83 kB / 0.9646 GB, free: 500 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.892e-05/0.5904, allocations: 12.53 kB / 0.9646 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.5905, allocations: 14.8 kB / 0.9646 GB, free: 488 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.795e-05/0.5906, allocations: 26.64 kB / 0.9646 GB, free: 472 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.5906, allocations: 8.469 kB / 0.9646 GB, free: 468 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001522/0.5907, allocations: 205.4 kB / 0.9648 GB, free: 332 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5907, allocations: 0 / 0.9648 GB, free: 332 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002698/0.591, allocations: 58.94 kB / 0.9649 GB, free: 320 kB / 0.7169 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.0009904/0.592, allocations: 1.038 MB / 0.9659 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004723/0.5925, allocations: 305.4 kB / 0.9662 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5925, allocations: 0.7812 kB / 0.9662 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002406/0.5928, allocations: 185.7 kB / 0.9664 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.5931, allocations: 31.83 kB / 0.9664 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003462/0.5965, allocations: 2.855 MB / 0.9692 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.5968, allocations: 0.7565 MB / 0.9699 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.629e-05/0.5969, allocations: 14.14 kB / 0.9699 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.597, allocations: 72.38 kB / 0.97 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of SimCode: time 1.743e-06/0.597, allocations: 4 kB / 0.97 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01608/0.6131, allocations: 4.854 MB / 0.9747 GB, free: 10.15 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/0.6133, allocations: 206.5 kB / 0.9749 GB, free: 9.891 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/2.457, allocations: 2.672 kB / 0.9749 GB, free: 9.891 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)