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.567/1.567, allocations: 249.3 MB / 261.8 MB, free: 5.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001154/0.001154, allocations: 180.6 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.774/1.774, allocations: 205.2 MB / 0.572 GB, free: 10.61 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.0009846/0.0009847, allocations: 102.1 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.629e-05/3.632e-05, allocations: 4 kB / 0.788 GB, free: 97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2414, allocations: 106.3 MB / 0.8919 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8031/1.045, allocations: 134.8 MB / 1.024 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/1.045, allocations: 84.52 kB / 1.024 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.01799/1.063, allocations: 5.821 MB / 1.029 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.274e-06/1.063, allocations: 0 / 1.029 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.467e-05/1.063, allocations: 7.984 kB / 1.029 GB, free: 10.89 MB / 0.6511 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.0009004/1.064, allocations: 0.5518 MB / 1.03 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/1.064, allocations: 8.031 kB / 1.03 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.624e-05/1.064, allocations: 48.19 kB / 1.03 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.992e-05/1.064, allocations: 35.61 kB / 1.03 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004932/1.065, allocations: 290.1 kB / 1.03 GB, free: 9.914 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/1.065, allocations: 11.5 kB / 1.03 GB, free: 9.906 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.309e-05/1.065, allocations: 18.81 kB / 1.03 GB, free: 9.895 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004357/1.065, allocations: 237.4 kB / 1.03 GB, free: 9.684 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/1.065, allocations: 3.984 kB / 1.03 GB, free: 9.68 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.626e-05/1.065, allocations: 6.938 kB / 1.03 GB, free: 9.68 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/1.065, allocations: 4 kB / 1.03 GB, free: 9.676 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/1.065, allocations: 137.7 kB / 1.031 GB, free: 9.578 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/1.067, allocations: 0.7431 MB / 1.031 GB, free: 8.883 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002685/1.067, allocations: 160.1 kB / 1.032 GB, free: 8.762 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/1.067, allocations: 102.5 kB / 1.032 GB, free: 8.688 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/1.067, allocations: 0 / 1.032 GB, free: 8.688 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003072/1.067, allocations: 192.5 kB / 1.032 GB, free: 8.512 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 2.044e-06/1.067, allocations: 0 / 1.032 GB, free: 8.512 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0006435/1.068, allocations: 337.5 kB / 1.032 GB, free: 8.223 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.598e-05/1.068, allocations: 136.5 kB / 1.032 GB, free: 8.059 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002887/1.068, allocations: 250.2 kB / 1.032 GB, free: 7.848 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.531e-05/1.068, allocations: 33.27 kB / 1.033 GB, free: 7.812 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/1.069, allocations: 155.1 kB / 1.033 GB, free: 7.691 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.716e-05/1.069, allocations: 41.58 kB / 1.033 GB, free: 7.656 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.36e-05/1.069, allocations: 3.25 kB / 1.033 GB, free: 7.656 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001609/1.069, allocations: 343.8 kB / 1.033 GB, free: 7.32 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/1.069, allocations: 99.78 kB / 1.033 GB, free: 7.246 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/1.069, allocations: 141.2 kB / 1.033 GB, free: 7.121 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001587/1.069, allocations: 121.2 kB / 1.033 GB, free: 7.023 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/1.069, allocations: 3.938 kB / 1.033 GB, free: 7.02 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005802/1.07, allocations: 373.3 kB / 1.034 GB, free: 6.703 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 5.267e-05/1.07, allocations: 40.81 kB / 1.034 GB, free: 6.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/1.07, allocations: 4 kB / 1.034 GB, free: 6.656 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/1.07, allocations: 0 / 1.034 GB, free: 6.656 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/1.07, allocations: 27.98 kB / 1.034 GB, free: 6.629 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/1.07, allocations: 0 / 1.034 GB, free: 6.629 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001966/1.071, allocations: 47.34 kB / 1.034 GB, free: 6.586 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/1.071, allocations: 12 kB / 1.034 GB, free: 6.574 MB / 0.6511 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 () * 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.0001683/1.071, allocations: 154.3 kB / 1.034 GB, free: 6.418 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.443e-05/1.071, allocations: 27.67 kB / 1.034 GB, free: 6.391 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.623e-05/1.071, allocations: 24.41 kB / 1.034 GB, free: 6.379 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/1.071, allocations: 4 kB / 1.034 GB, free: 6.375 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/1.071, allocations: 7.984 kB / 1.034 GB, free: 6.367 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/1.071, allocations: 4 kB / 1.034 GB, free: 6.363 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003164/1.071, allocations: 298.8 kB / 1.034 GB, free: 6.066 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/1.071, allocations: 0 / 1.034 GB, free: 6.066 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001426/1.071, allocations: 27.5 kB / 1.034 GB, free: 6.043 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/1.071, allocations: 0 / 1.034 GB, free: 6.043 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/1.071, allocations: 4 kB / 1.034 GB, free: 6.039 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/1.071, allocations: 0 / 1.034 GB, free: 6.039 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/1.071, allocations: 0 / 1.034 GB, free: 6.039 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008081/1.072, allocations: 0.522 MB / 1.035 GB, free: 5.598 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.608e-05/1.072, allocations: 100.8 kB / 1.035 GB, free: 5.48 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.974e-05/1.072, allocations: 11.2 kB / 1.035 GB, free: 5.473 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/1.073, allocations: 30.73 kB / 1.035 GB, free: 5.445 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.548e-05/1.073, allocations: 31.81 kB / 1.035 GB, free: 5.418 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.02e-05/1.073, allocations: 12.12 kB / 1.035 GB, free: 5.41 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002146/1.073, allocations: 194.4 kB / 1.035 GB, free: 5.246 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.024e-06/1.073, allocations: 3.938 kB / 1.035 GB, free: 5.242 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003417/1.073, allocations: 79.58 kB / 1.035 GB, free: 5.168 MB / 0.6511 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 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * 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.001157/1.075, allocations: 1.008 MB / 1.036 GB, free: 4.227 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004191/1.075, allocations: 277.4 kB / 1.037 GB, free: 4.012 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/1.075, allocations: 7.25 kB / 1.037 GB, free: 4.008 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001884/1.075, allocations: 168.1 kB / 1.037 GB, free: 3.871 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002815/1.075, allocations: 30.86 kB / 1.037 GB, free: 3.848 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/1.077, allocations: 435.1 kB / 1.037 GB, free: 3.434 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004165/1.077, allocations: 0.7627 MB / 1.038 GB, free: 2.648 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 8.591e-05/1.077, allocations: 13.2 kB / 1.038 GB, free: 2.637 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/1.077, allocations: 68.47 kB / 1.038 GB, free: 2.613 MB / 0.6511 GB Notification: Performance of SimCode: time 5.81e-07/1.077, allocations: 0 / 1.038 GB, free: 2.613 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01785/1.095, allocations: 4.901 MB / 1.043 GB, free: 13.84 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003201/1.096, allocations: 168.6 kB / 1.043 GB, free: 13.61 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.191/3.287, allocations: 0 / 1.043 GB, free: 13.61 MB / 0.6667 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)