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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.0009574/0.0009574, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001152/0.001153, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.3 MB / 240 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.486/2.486, allocations: 390.4 MB / 0.6655 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004211/0.0004212, allocations: 8 kB / 0.8149 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.691/0.6915, allocations: 142.3 MB / 0.9538 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002042/0.6936, allocations: 1.604 MB / 0.9554 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001064/0.6947, allocations: 0.669 MB / 0.9561 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.6948, allocations: 2.531 kB / 0.9561 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000223/0.6951, allocations: 73.94 kB / 0.9561 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001297/0.6952, allocations: 83.45 kB / 0.9562 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005625/0.6958, allocations: 131.9 kB / 0.9563 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000314/0.6961, allocations: 225.2 kB / 0.9566 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.6963, allocations: 53.03 kB / 0.9566 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.6964, allocations: 90.41 kB / 0.9567 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.6966, allocations: 112.9 kB / 0.9568 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.952e-05/0.6966, allocations: 5.469 kB / 0.9568 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.6968, allocations: 82.88 kB / 0.9569 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.786e-05/0.6968, allocations: 39.66 kB / 0.9569 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.376e-05/0.6969, allocations: 59.67 kB / 0.957 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002193/0.6971, allocations: 212.6 kB / 0.9572 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.6971, allocations: 0 / 0.9572 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.034e-06/0.6971, allocations: 1.094 kB / 0.9572 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.833e-06/0.6972, allocations: 3.938 kB / 0.9572 GB, free: 5.641 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.0006681/0.6978, allocations: 0.5484 MB / 0.9577 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.6979, allocations: 13.22 kB / 0.9577 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.395e-05/0.6979, allocations: 47.67 kB / 0.9578 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.335e-05/0.698, allocations: 34.89 kB / 0.9578 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003802/0.6984, allocations: 298.2 kB / 0.9581 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.6984, allocations: 15.88 kB / 0.9581 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.249e-05/0.6984, allocations: 12.91 kB / 0.9581 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.6988, allocations: 227.4 kB / 0.9583 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-06/0.6988, allocations: 1.531 kB / 0.9583 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.6988, allocations: 5.438 kB / 0.9584 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.6988, allocations: 6.609 kB / 0.9584 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002253/0.6991, allocations: 127.1 kB / 0.9585 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006664/0.6997, allocations: 0.6969 MB / 0.9592 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003242/0.7001, allocations: 170.1 kB / 0.9593 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.7002, allocations: 106.9 kB / 0.9594 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.7003, allocations: 5.406 kB / 0.9594 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000288/0.7006, allocations: 167 kB / 0.9596 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.934e-06/0.7006, allocations: 1.219 kB / 0.9596 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0006476/0.7012, allocations: 391.9 kB / 0.96 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.7013, allocations: 139.7 kB / 0.9601 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.7015, allocations: 278.2 kB / 0.9604 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.7015, allocations: 36.7 kB / 0.9604 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.823e-05/0.7016, allocations: 154 kB / 0.9605 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/0.7017, allocations: 46.22 kB / 0.9606 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.538e-06/0.7017, allocations: 1.031 kB / 0.9606 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.456e-05/0.7017, allocations: 337.8 kB / 0.9609 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.7019, allocations: 94.98 kB / 0.961 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.7021, allocations: 136.1 kB / 0.9611 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.7023, allocations: 116.8 kB / 0.9612 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.7023, allocations: 5 kB / 0.9612 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004656/0.7028, allocations: 341.8 kB / 0.9616 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.7028, allocations: 33.11 kB / 0.9616 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.7028, allocations: 5.141 kB / 0.9616 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.7028, allocations: 2.562 kB / 0.9616 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.703, allocations: 26.86 kB / 0.9616 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.703, allocations: 6.25 kB / 0.9616 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.7031, allocations: 30.39 kB / 0.9617 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.7031, allocations: 8.688 kB / 0.9617 GB, free: 2.109 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 ($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.0001311/0.7033, allocations: 187.3 kB / 0.9619 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.291e-05/0.7033, allocations: 31.83 kB / 0.9619 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.076e-05/0.7034, allocations: 31.17 kB / 0.9619 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.7034, allocations: 2.125 kB / 0.9619 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.7034, allocations: 0 / 0.9619 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.7034, allocations: 4.766 kB / 0.9619 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.7036, allocations: 289.1 kB / 0.9622 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.7036, allocations: 1.156 kB / 0.9622 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.7037, allocations: 21.8 kB / 0.9622 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.7037, allocations: 0 / 0.9622 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.7037, allocations: 11.77 kB / 0.9622 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.7037, allocations: 4 kB / 0.9622 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.7037, allocations: 1.031 kB / 0.9622 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006354/0.7044, allocations: 473.9 kB / 0.9627 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.649e-05/0.7044, allocations: 100.5 kB / 0.9628 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.945e-05/0.7045, allocations: 9.75 kB / 0.9628 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.7046, allocations: 18.42 kB / 0.9628 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.762e-05/0.7047, allocations: 26.73 kB / 0.9628 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.087e-05/0.7047, allocations: 11.44 kB / 0.9629 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001599/0.7048, allocations: 200.5 kB / 0.963 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7049, allocations: 64 / 0.963 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002932/0.7052, allocations: 63.81 kB / 0.9631 GB, free: 1.066 MB / 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 (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.0008697/0.706, allocations: 1.045 MB / 0.9641 GB, free: 276 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004383/0.7065, allocations: 297.2 kB / 0.9644 GB, free: 112 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.7065, allocations: 4.25 kB / 0.9644 GB, free: 108 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002271/0.7067, allocations: 191.3 kB / 0.9646 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.707, allocations: 35.62 kB / 0.9646 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.7096, allocations: 1.63 MB / 0.9662 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.7099, allocations: 0.7535 MB / 0.967 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.556e-05/0.71, allocations: 22.31 kB / 0.967 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.7101, allocations: 68.48 kB / 0.967 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of SimCode: time 3.51e-07/0.7101, allocations: 0 / 0.967 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01779/0.7279, allocations: 4.878 MB / 0.9718 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002007/0.7282, allocations: 184.7 kB / 0.972 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.841/2.569, allocations: 3.938 kB / 0.972 GB, free: 11.65 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/linux/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)