Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_7_0_0_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.1/package.mo): time 2.257/2.257, allocations: 248.5 MB / 261 MB, free: 5.918 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.001537/0.001537, allocations: 182.5 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.093/2.093, allocations: 205.2 MB / 0.571 GB, free: 11.75 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.001154/0.001154, allocations: 93.36 kB / 0.6754 GB, free: 0.8438 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.621e-05/3.637e-05, allocations: 0 / 0.7869 GB, free: 97.81 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.2209, allocations: 106.2 MB / 0.8907 GB, free: 7.473 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8976/1.119, allocations: 134.7 MB / 1.022 GB, free: 0.6602 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/1.119, allocations: 83.12 kB / 1.022 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03018/1.149, allocations: 5.83 MB / 1.028 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.925e-06/1.149, allocations: 0 / 1.028 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.596e-05/1.149, allocations: 4 kB / 1.028 GB, free: 11.62 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.001411/1.151, allocations: 0.5595 MB / 1.029 GB, free: 11.03 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/1.151, allocations: 11.97 kB / 1.029 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001219/1.151, allocations: 53.17 kB / 1.029 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/1.151, allocations: 35.58 kB / 1.029 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007314/1.152, allocations: 278 kB / 1.029 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.135e-05/1.152, allocations: 15 kB / 1.029 GB, free: 10.63 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.25e-05/1.152, allocations: 15.44 kB / 1.029 GB, free: 10.62 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000661/1.153, allocations: 238.9 kB / 1.029 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/1.153, allocations: 3.938 kB / 1.029 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.116e-05/1.153, allocations: 7.875 kB / 1.029 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/1.153, allocations: 0 / 1.029 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003921/1.153, allocations: 137.2 kB / 1.029 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/1.155, allocations: 0.7378 MB / 1.03 GB, free: 9.617 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004251/1.155, allocations: 159.2 kB / 1.03 GB, free: 9.496 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00026/1.156, allocations: 108.8 kB / 1.03 GB, free: 9.418 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/1.156, allocations: 8.031 kB / 1.03 GB, free: 9.41 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004089/1.156, allocations: 180.3 kB / 1.03 GB, free: 9.246 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 4.068e-06/1.156, allocations: 3.938 kB / 1.03 GB, free: 9.242 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.001029/1.157, allocations: 339.3 kB / 1.031 GB, free: 8.949 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.836e-05/1.157, allocations: 136.3 kB / 1.031 GB, free: 8.789 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004349/1.158, allocations: 251.7 kB / 1.031 GB, free: 8.57 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.493e-05/1.158, allocations: 32.95 kB / 1.031 GB, free: 8.535 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/1.158, allocations: 157.5 kB / 1.031 GB, free: 8.414 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.523e-05/1.158, allocations: 39.33 kB / 1.031 GB, free: 8.379 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.219e-05/1.158, allocations: 3.812 kB / 1.031 GB, free: 8.379 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001698/1.158, allocations: 341.8 kB / 1.032 GB, free: 8.047 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002703/1.158, allocations: 101.3 kB / 1.032 GB, free: 7.969 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002955/1.159, allocations: 139 kB / 1.032 GB, free: 7.848 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002667/1.159, allocations: 117.3 kB / 1.032 GB, free: 7.75 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/1.159, allocations: 0 / 1.032 GB, free: 7.75 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0009626/1.16, allocations: 381.2 kB / 1.032 GB, free: 7.43 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 6.412e-05/1.16, allocations: 37.69 kB / 1.032 GB, free: 7.387 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/1.16, allocations: 0 / 1.032 GB, free: 7.387 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/1.16, allocations: 4 kB / 1.032 GB, free: 7.383 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003041/1.161, allocations: 23.98 kB / 1.032 GB, free: 7.359 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/1.161, allocations: 4 kB / 1.032 GB, free: 7.355 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003653/1.161, allocations: 47.34 kB / 1.032 GB, free: 7.312 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.802e-05/1.161, allocations: 15.48 kB / 1.032 GB, free: 7.301 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.0001976/1.161, allocations: 153.9 kB / 1.033 GB, free: 7.141 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.997e-05/1.161, allocations: 23.72 kB / 1.033 GB, free: 7.117 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/1.161, allocations: 32.89 kB / 1.033 GB, free: 7.098 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/1.161, allocations: 4 kB / 1.033 GB, free: 7.094 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/1.161, allocations: 0 / 1.033 GB, free: 7.094 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/1.161, allocations: 0 / 1.033 GB, free: 7.094 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004382/1.162, allocations: 308 kB / 1.033 GB, free: 6.793 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/1.162, allocations: 0 / 1.033 GB, free: 6.793 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/1.162, allocations: 19.98 kB / 1.033 GB, free: 6.773 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/1.162, allocations: 0 / 1.033 GB, free: 6.773 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.434e-05/1.162, allocations: 8 kB / 1.033 GB, free: 6.766 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/1.162, allocations: 7.938 kB / 1.033 GB, free: 6.758 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/1.162, allocations: 0 / 1.033 GB, free: 6.758 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/1.164, allocations: 0.5257 MB / 1.034 GB, free: 6.312 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/1.164, allocations: 100.3 kB / 1.034 GB, free: 6.199 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.018e-05/1.164, allocations: 7.875 kB / 1.034 GB, free: 6.195 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003395/1.164, allocations: 36.03 kB / 1.034 GB, free: 6.16 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/1.164, allocations: 27.64 kB / 1.034 GB, free: 6.137 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.806e-05/1.165, allocations: 15.44 kB / 1.034 GB, free: 6.125 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003436/1.165, allocations: 205.9 kB / 1.034 GB, free: 5.957 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.3e-07/1.165, allocations: 0 / 1.034 GB, free: 5.957 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004934/1.165, allocations: 70.91 kB / 1.034 GB, free: 5.891 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.001596/1.167, allocations: 1.01 MB / 1.035 GB, free: 4.941 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0006287/1.168, allocations: 269.4 kB / 1.035 GB, free: 4.734 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/1.168, allocations: 0 / 1.035 GB, free: 4.734 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002879/1.168, allocations: 172.7 kB / 1.035 GB, free: 4.598 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/1.169, allocations: 28.23 kB / 1.035 GB, free: 4.574 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/1.17, allocations: 438.8 kB / 1.036 GB, free: 4.156 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/1.171, allocations: 0.7638 MB / 1.037 GB, free: 3.371 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001583/1.171, allocations: 13.2 kB / 1.037 GB, free: 3.359 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/1.171, allocations: 71.28 kB / 1.037 GB, free: 3.336 MB / 0.6511 GB Notification: Performance of SimCode: time 1.482e-06/1.171, allocations: 0 / 1.037 GB, free: 3.336 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03116/1.202, allocations: 4.874 MB / 1.041 GB, free: 14.59 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003565/1.203, allocations: 159.4 kB / 1.042 GB, free: 14.37 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.629/3.832, allocations: 64 / 1.042 GB, free: 14.37 MB / 0.6667 GB