Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_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.001332/0.001332, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 192.4 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.567/1.567, allocations: 205.1 MB / 222.4 MB, free: 4.453 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.806/1.806, allocations: 292.3 MB / 0.5489 GB, free: 12.8 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 77.56 kB / 0.6716 GB, free: 26.1 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2519, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003551/0.2555, allocations: 1.951 MB / 0.7854 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001217/0.2567, allocations: 0.7528 MB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.731e-05/0.2568, allocations: 7.938 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002079/0.2571, allocations: 87.62 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.2572, allocations: 79.64 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005248/0.2577, allocations: 199 kB / 0.7865 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002694/0.258, allocations: 259.5 kB / 0.7867 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.2582, allocations: 73.81 kB / 0.7868 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.2583, allocations: 111.7 kB / 0.7869 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.2585, allocations: 147.5 kB / 0.787 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.956e-05/0.2586, allocations: 24 kB / 0.7871 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.2587, allocations: 91.88 kB / 0.7872 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.011e-05/0.2588, allocations: 59.77 kB / 0.7872 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.2589, allocations: 111.3 kB / 0.7873 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003285/0.2593, allocations: 295.2 kB / 0.7876 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2593, allocations: 0 / 0.7876 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2593, allocations: 0 / 0.7876 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.2593, allocations: 0 / 0.7876 GB, free: 9.145 MB / 0.6075 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.000813/0.2601, allocations: 0.5858 MB / 0.7882 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.2602, allocations: 8.031 kB / 0.7882 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.55e-05/0.2602, allocations: 50.67 kB / 0.7882 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.665e-05/0.2603, allocations: 32.56 kB / 0.7883 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004007/0.2607, allocations: 302.8 kB / 0.7885 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.2607, allocations: 16.38 kB / 0.7886 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.938e-05/0.2608, allocations: 16.28 kB / 0.7886 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003627/0.2611, allocations: 231.1 kB / 0.7888 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.2611, allocations: 0 / 0.7888 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.2612, allocations: 8 kB / 0.7888 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.259e-06/0.2612, allocations: 4 kB / 0.7888 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002399/0.2614, allocations: 132.3 kB / 0.7889 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007896/0.2622, allocations: 0.6847 MB / 0.7896 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003428/0.2626, allocations: 158.5 kB / 0.7898 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.2628, allocations: 105 kB / 0.7899 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.2628, allocations: 0 / 0.7899 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003362/0.2631, allocations: 173 kB / 0.79 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/0.2631, allocations: 0 / 0.79 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.0006481/0.2638, allocations: 378.1 kB / 0.7904 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.934e-05/0.2639, allocations: 136.5 kB / 0.7905 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002532/0.2641, allocations: 286.6 kB / 0.7908 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.2642, allocations: 25.7 kB / 0.7908 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.2643, allocations: 160.2 kB / 0.791 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.757e-05/0.2643, allocations: 39.44 kB / 0.791 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.799e-05/0.2644, allocations: 41.7 kB / 0.791 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.2645, allocations: 342.8 kB / 0.7914 GB, free: 5 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.2647, allocations: 87.95 kB / 0.7914 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.2649, allocations: 133.1 kB / 0.7916 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003201/0.2652, allocations: 242.8 kB / 0.7918 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.2652, allocations: 0 / 0.7918 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004738/0.2657, allocations: 341.1 kB / 0.7921 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.2658, allocations: 37.69 kB / 0.7922 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2658, allocations: 0 / 0.7922 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.2658, allocations: 4 kB / 0.7922 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.2659, allocations: 23.92 kB / 0.7922 GB, free: 4.09 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.2659, allocations: 8.094 kB / 0.7922 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.2661, allocations: 23.83 kB / 0.7922 GB, free: 4.059 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.2661, allocations: 8 kB / 0.7922 GB, free: 4.051 MB / 0.6075 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 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001644/0.2663, allocations: 191.4 kB / 0.7924 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.884e-05/0.2663, allocations: 27.72 kB / 0.7924 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.96e-05/0.2664, allocations: 29.83 kB / 0.7925 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.2664, allocations: 0 / 0.7925 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.2664, allocations: 8 kB / 0.7925 GB, free: 3.785 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.2664, allocations: 0 / 0.7925 GB, free: 3.785 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002412/0.2666, allocations: 297.3 kB / 0.7928 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2666, allocations: 0 / 0.7928 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.575e-05/0.2667, allocations: 15.98 kB / 0.7928 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2668, allocations: 0 / 0.7928 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.2668, allocations: 8 kB / 0.7928 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.2668, allocations: 4 kB / 0.7928 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2668, allocations: 0 / 0.7928 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007037/0.2675, allocations: 470.3 kB / 0.7932 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.713e-05/0.2676, allocations: 100.7 kB / 0.7933 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.085e-05/0.2676, allocations: 8 kB / 0.7933 GB, free: 2.809 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.2677, allocations: 15.98 kB / 0.7934 GB, free: 2.793 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.051e-05/0.2678, allocations: 27.95 kB / 0.7934 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.2678, allocations: 4.188 kB / 0.7934 GB, free: 2.762 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001771/0.268, allocations: 206 kB / 0.7936 GB, free: 2.559 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.268, allocations: 3.938 kB / 0.7936 GB, free: 2.555 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002772/0.2683, allocations: 60.06 kB / 0.7936 GB, free: 2.496 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009748/0.2693, allocations: 1.02 MB / 0.7946 GB, free: 1.441 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004486/0.2697, allocations: 299.2 kB / 0.7949 GB, free: 1.137 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2698, allocations: 0 / 0.7949 GB, free: 1.137 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002197/0.27, allocations: 187.3 kB / 0.7951 GB, free: 0.9414 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.2703, allocations: 36.78 kB / 0.7951 GB, free: 0.9062 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003201/0.2735, allocations: 2.77 MB / 0.7978 GB, free: 14.03 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.2738, allocations: 0.7507 MB / 0.7986 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 8.316e-05/0.2739, allocations: 21.55 kB / 0.7986 GB, free: 13.24 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.274, allocations: 75.41 kB / 0.7987 GB, free: 13.16 MB / 0.6231 GB Notification: Performance of SimCode: time 3.31e-07/0.274, allocations: 0 / 0.7987 GB, free: 13.16 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0248/0.2988, allocations: 5.328 MB / 0.8039 GB, free: 7.922 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.672/7.971, allocations: 11.81 kB / 0.8039 GB, free: 7.914 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)