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.169/2.169, allocations: 251 MB / 265.9 MB, free: 11.7 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00158/0.001579, allocations: 174.4 kB / 325.5 MB, free: 2.902 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.52/2.52, allocations: 205.4 MB / 0.5764 GB, free: 21.21 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.001251/0.00125, allocations: 110.4 kB / 0.6809 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007492/0.0007494, allocations: 11.69 kB / 0.795 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2515, allocations: 106.3 MB / 0.8988 GB, free: 65.99 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2361/0.4877, allocations: 134.7 MB / 1.03 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003747/0.4881, allocations: 87.94 kB / 1.03 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02884/0.517, allocations: 5.835 MB / 1.036 GB, free: 5.172 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.234e-06/0.517, allocations: 0 / 1.036 GB, free: 5.172 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.122e-05/0.5171, allocations: 4 kB / 1.036 GB, free: 5.168 MB / 0.6823 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.001321/0.5184, allocations: 0.5934 MB / 1.037 GB, free: 4.52 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.5185, allocations: 20.02 kB / 1.037 GB, free: 4.5 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.513e-05/0.5185, allocations: 42.56 kB / 1.037 GB, free: 4.449 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.5187, allocations: 35.58 kB / 1.037 GB, free: 4.414 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006167/0.5193, allocations: 285.6 kB / 1.037 GB, free: 4.098 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.5193, allocations: 19.88 kB / 1.037 GB, free: 4.078 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.313e-05/0.5194, allocations: 16 kB / 1.037 GB, free: 4.062 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007575/0.5202, allocations: 255.1 kB / 1.037 GB, free: 3.785 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.5202, allocations: 0 / 1.037 GB, free: 3.785 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.017e-05/0.5203, allocations: 11.94 kB / 1.037 GB, free: 3.773 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.5203, allocations: 4 kB / 1.037 GB, free: 3.77 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005543/0.5208, allocations: 164.4 kB / 1.038 GB, free: 3.609 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.5223, allocations: 0.7392 MB / 1.038 GB, free: 2.812 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008517/0.5232, allocations: 214.5 kB / 1.038 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.5232, allocations: 7.984 kB / 1.038 GB, free: 2.586 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005706/0.5238, allocations: 209.2 kB / 1.039 GB, free: 2.363 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=15): time 2.464e-06/0.5238, allocations: 0 / 1.039 GB, free: 2.363 MB / 0.6823 GB Notification: Performance of matching and sorting (n=15): time 0.001749/0.5256, allocations: 0.5589 MB / 1.039 GB, free: 1.777 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.61e-05/0.5257, allocations: 136.5 kB / 1.039 GB, free: 1.613 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004191/0.5261, allocations: 249.9 kB / 1.04 GB, free: 1.359 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.522e-05/0.5262, allocations: 33.7 kB / 1.04 GB, free: 1.32 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001598/0.5263, allocations: 160.2 kB / 1.04 GB, free: 1.16 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.655e-05/0.5264, allocations: 39.45 kB / 1.04 GB, free: 1.121 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/0.5265, allocations: 4 kB / 1.04 GB, free: 1.117 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001703/0.5266, allocations: 338.8 kB / 1.04 GB, free: 0.7773 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004158/0.5271, allocations: 124.1 kB / 1.04 GB, free: 0.6523 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004525/0.5275, allocations: 157.5 kB / 1.04 GB, free: 492 kB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004303/0.528, allocations: 141.8 kB / 1.041 GB, free: 344 kB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.528, allocations: 0 / 1.041 GB, free: 344 kB / 0.6823 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001262/0.5293, allocations: 424.3 kB / 1.041 GB, free: 15.91 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 5.142e-05/0.5293, allocations: 33.7 kB / 1.041 GB, free: 15.87 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.5294, allocations: 0 / 1.041 GB, free: 15.87 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.5294, allocations: 7.938 kB / 1.041 GB, free: 15.86 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.5297, allocations: 31.97 kB / 1.041 GB, free: 15.83 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.5297, allocations: 8.094 kB / 1.041 GB, free: 15.82 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000313/0.53, allocations: 31.89 kB / 1.041 GB, free: 15.79 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.065e-05/0.5301, allocations: 12 kB / 1.041 GB, free: 15.78 MB / 0.698 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.0002882/0.5304, allocations: 199.3 kB / 1.041 GB, free: 15.57 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.564e-05/0.5305, allocations: 31.72 kB / 1.041 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.804e-05/0.5305, allocations: 25.83 kB / 1.041 GB, free: 15.51 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.5306, allocations: 0 / 1.041 GB, free: 15.51 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.5306, allocations: 0 / 1.041 GB, free: 15.51 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.5306, allocations: 0 / 1.041 GB, free: 15.51 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004096/0.531, allocations: 301.5 kB / 1.042 GB, free: 15.17 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.531, allocations: 7.891 kB / 1.042 GB, free: 15.16 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002152/0.5313, allocations: 19.98 kB / 1.042 GB, free: 15.14 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.5313, allocations: 0 / 1.042 GB, free: 15.14 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.681e-05/0.5313, allocations: 16 kB / 1.042 GB, free: 15.12 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.5313, allocations: 7.922 kB / 1.042 GB, free: 15.12 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.5314, allocations: 0 / 1.042 GB, free: 15.12 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.5332, allocations: 0.5706 MB / 1.042 GB, free: 14.52 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.5333, allocations: 108.8 kB / 1.042 GB, free: 14.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.29e-05/0.5334, allocations: 4 kB / 1.042 GB, free: 14.39 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002985/0.5337, allocations: 36.05 kB / 1.042 GB, free: 14.36 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.5338, allocations: 27.94 kB / 1.042 GB, free: 14.33 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.119e-05/0.5339, allocations: 8 kB / 1.042 GB, free: 14.32 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003381/0.5342, allocations: 209.9 kB / 1.043 GB, free: 14.12 MB / 0.698 GB Notification: Performance of sort global known variables: time 4e-07/0.5342, allocations: 0 / 1.043 GB, free: 14.12 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004451/0.5347, allocations: 67.78 kB / 1.043 GB, free: 14.05 MB / 0.698 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) * 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.001948/0.5366, allocations: 1.074 MB / 1.044 GB, free: 12.95 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0009175/0.5376, allocations: 319.5 kB / 1.044 GB, free: 12.62 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.5376, allocations: 0 / 1.044 GB, free: 12.62 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004583/0.5381, allocations: 195.3 kB / 1.044 GB, free: 12.42 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003683/0.5385, allocations: 38.19 kB / 1.044 GB, free: 12.38 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004487/0.543, allocations: 2.104 MB / 1.046 GB, free: 10.22 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004403/0.5434, allocations: 0.7674 MB / 1.047 GB, free: 9.426 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001525/0.5436, allocations: 17.42 kB / 1.047 GB, free: 9.41 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00018/0.5438, allocations: 67.41 kB / 1.047 GB, free: 9.344 MB / 0.698 GB Notification: Performance of SimCode: time 1.343e-06/0.5438, allocations: 0 / 1.047 GB, free: 9.344 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03531/0.5791, allocations: 4.915 MB / 1.052 GB, free: 4.578 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003813/0.5796, allocations: 181.8 kB / 1.052 GB, free: 4.344 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.493/3.073, allocations: 0 / 1.052 GB, free: 4.344 MB / 0.698 GB