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.275/2.275, allocations: 248.7 MB / 256.2 MB, free: 6.984 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.00151/0.00151, allocations: 180.9 kB / 315.4 MB, free: 3.965 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.151/2.151, allocations: 205.3 MB / 0.5662 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 90.53 kB / 0.6704 GB, free: 5.723 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.343e-05/2.353e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2077, allocations: 106.3 MB / 0.8841 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9441/1.152, allocations: 134.9 MB / 1.016 GB, free: 3.852 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005026/1.152, allocations: 82.75 kB / 1.016 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.04307/1.195, allocations: 5.808 MB / 1.022 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.654e-06/1.196, allocations: 0 / 1.022 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.159e-05/1.196, allocations: 4 kB / 1.022 GB, free: 14.91 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.001241/1.197, allocations: 0.5579 MB / 1.022 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/1.197, allocations: 11.97 kB / 1.022 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/1.197, allocations: 39.52 kB / 1.022 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006447/1.198, allocations: 283.8 kB / 1.022 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/1.198, allocations: 11.44 kB / 1.022 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.188e-05/1.198, allocations: 8 kB / 1.022 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003765/1.198, allocations: 126.6 kB / 1.023 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004952/1.199, allocations: 224.2 kB / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/1.199, allocations: 0 / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.732e-05/1.199, allocations: 0 / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/1.199, allocations: 7.938 kB / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001369/1.2, allocations: 0.6949 MB / 1.024 GB, free: 13.01 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003644/1.201, allocations: 150.4 kB / 1.024 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002177/1.201, allocations: 103.7 kB / 1.024 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/1.201, allocations: 0 / 1.024 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003651/1.201, allocations: 180.7 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 2.084e-06/1.201, allocations: 0 / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0009423/1.202, allocations: 305.1 kB / 1.024 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.564e-05/1.202, allocations: 136.5 kB / 1.024 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003446/1.203, allocations: 224.8 kB / 1.025 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.463e-05/1.203, allocations: 32.89 kB / 1.025 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/1.203, allocations: 159.4 kB / 1.025 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.525e-05/1.203, allocations: 41.45 kB / 1.025 GB, free: 11.85 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.987e-05/1.203, allocations: 0 / 1.025 GB, free: 11.85 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001613/1.203, allocations: 339.5 kB / 1.025 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002315/1.203, allocations: 96.34 kB / 1.025 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/1.204, allocations: 139 kB / 1.025 GB, free: 11.33 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002581/1.204, allocations: 88.12 kB / 1.025 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/1.204, allocations: 0 / 1.025 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0008807/1.205, allocations: 326.3 kB / 1.026 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 5.939e-05/1.205, allocations: 40.56 kB / 1.026 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/1.205, allocations: 4 kB / 1.026 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/1.205, allocations: 7.938 kB / 1.026 GB, free: 10.94 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/1.205, allocations: 23.98 kB / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/1.205, allocations: 4 kB / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000316/1.206, allocations: 43.91 kB / 1.026 GB, free: 10.87 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.922e-05/1.206, allocations: 11.06 kB / 1.026 GB, free: 10.86 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.0001702/1.206, allocations: 146.6 kB / 1.026 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008548/1.207, allocations: 322.8 kB / 1.026 GB, free: 10.44 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.785e-05/1.207, allocations: 23.72 kB / 1.026 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.443e-05/1.207, allocations: 25.64 kB / 1.026 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/1.207, allocations: 8.188 kB / 1.026 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/1.207, allocations: 0 / 1.026 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/1.207, allocations: 3.938 kB / 1.026 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003424/1.207, allocations: 267.5 kB / 1.027 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/1.207, allocations: 3.953 kB / 1.027 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002349/1.208, allocations: 23.92 kB / 1.027 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/1.208, allocations: 0 / 1.027 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/1.208, allocations: 11.92 kB / 1.027 GB, free: 10.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/1.208, allocations: 0 / 1.027 GB, free: 10.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/1.208, allocations: 8 kB / 1.027 GB, free: 10.09 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/1.209, allocations: 472.9 kB / 1.027 GB, free: 9.703 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.28e-05/1.209, allocations: 100.8 kB / 1.027 GB, free: 9.586 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.184e-05/1.209, allocations: 7.875 kB / 1.027 GB, free: 9.582 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003014/1.209, allocations: 39.97 kB / 1.027 GB, free: 9.543 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/1.209, allocations: 35.81 kB / 1.027 GB, free: 9.512 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.722e-05/1.21, allocations: 11.98 kB / 1.027 GB, free: 9.5 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002484/1.21, allocations: 180.8 kB / 1.027 GB, free: 9.355 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.11e-07/1.21, allocations: 0 / 1.027 GB, free: 9.355 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004659/1.21, allocations: 63.97 kB / 1.028 GB, free: 9.293 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.001354/1.212, allocations: 0.9639 MB / 1.028 GB, free: 8.391 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005293/1.212, allocations: 264.2 kB / 1.029 GB, free: 8.191 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/1.212, allocations: 0 / 1.029 GB, free: 8.191 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002757/1.213, allocations: 171.1 kB / 1.029 GB, free: 8.055 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/1.213, allocations: 28.55 kB / 1.029 GB, free: 8.035 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/1.215, allocations: 418.6 kB / 1.029 GB, free: 7.633 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004232/1.215, allocations: 0.7626 MB / 1.03 GB, free: 6.848 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001318/1.215, allocations: 13.2 kB / 1.03 GB, free: 6.836 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/1.215, allocations: 70.66 kB / 1.03 GB, free: 6.812 MB / 0.6511 GB Notification: Performance of SimCode: time 1.133e-06/1.215, allocations: 4 kB / 1.03 GB, free: 6.809 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04218/1.257, allocations: 4.354 MB / 1.034 GB, free: 2.488 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003611/1.258, allocations: 149 kB / 1.035 GB, free: 2.289 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.388/3.646, allocations: 0 / 1.035 GB, free: 2.289 MB / 0.6511 GB