Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_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.004796/0.004796, allocations: 100.9 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 195.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002505/0.002505, allocations: 298.1 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.209/1.209, allocations: 178.6 MB / 0.5074 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0029/0.002901, allocations: 95.84 kB / 0.6943 GB, free: 15.22 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3894/0.3923, allocations: 89.12 MB / 0.7813 GB, free: 1.18 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002807/0.3951, allocations: 1.948 MB / 0.7832 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001263/0.3964, allocations: 0.714 MB / 0.7839 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.3965, allocations: 6.125 kB / 0.7839 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002088/0.3968, allocations: 78.48 kB / 0.784 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.3969, allocations: 97.19 kB / 0.7841 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005715/0.3975, allocations: 184.9 kB / 0.7843 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003429/0.3978, allocations: 270.2 kB / 0.7845 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.398, allocations: 65.09 kB / 0.7846 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001435/0.3982, allocations: 122 kB / 0.7847 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001956/0.3984, allocations: 148 kB / 0.7848 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.576e-05/0.3984, allocations: 20.16 kB / 0.7849 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.3986, allocations: 93.67 kB / 0.785 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.078e-05/0.3986, allocations: 57.73 kB / 0.785 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.3988, allocations: 114.2 kB / 0.7851 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004405/0.3992, allocations: 305 kB / 0.7854 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3992, allocations: 1.188 kB / 0.7854 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3992, allocations: 0 / 0.7854 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.3992, allocations: 0 / 0.7854 GB, free: 14.11 MB / 0.5606 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.0008886/0.4001, allocations: 0.5961 MB / 0.786 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.4002, allocations: 9.625 kB / 0.786 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.153e-05/0.4002, allocations: 48.02 kB / 0.786 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.952e-05/0.4003, allocations: 30.22 kB / 0.7861 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005021/0.4008, allocations: 302.4 kB / 0.7864 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.4008, allocations: 19.94 kB / 0.7864 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.347e-05/0.4009, allocations: 18.31 kB / 0.7864 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003908/0.4013, allocations: 225.7 kB / 0.7866 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.4013, allocations: 0 / 0.7866 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/0.4013, allocations: 6.281 kB / 0.7866 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.4013, allocations: 3.094 kB / 0.7866 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002504/0.4016, allocations: 128 kB / 0.7867 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008617/0.4025, allocations: 0.6923 MB / 0.7874 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003645/0.4028, allocations: 167.4 kB / 0.7876 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.403, allocations: 99.48 kB / 0.7877 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.4031, allocations: 1.125 kB / 0.7877 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000273/0.4033, allocations: 162.4 kB / 0.7878 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.442e-06/0.4033, allocations: 0 / 0.7878 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.000685/0.404, allocations: 375.5 kB / 0.7882 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.4042, allocations: 139.9 kB / 0.7883 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002846/0.4044, allocations: 281.1 kB / 0.7886 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.4045, allocations: 35.92 kB / 0.7886 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.4046, allocations: 154.8 kB / 0.7888 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.11e-05/0.4047, allocations: 50.2 kB / 0.7888 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.087e-05/0.4048, allocations: 53.62 kB / 0.7889 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.4049, allocations: 337.4 kB / 0.7892 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/0.4051, allocations: 87.45 kB / 0.7893 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.4053, allocations: 124.3 kB / 0.7894 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003564/0.4057, allocations: 246 kB / 0.7896 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4057, allocations: 0 / 0.7896 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005768/0.4063, allocations: 335.9 kB / 0.79 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.13e-05/0.4063, allocations: 37.11 kB / 0.79 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.4063, allocations: 5.156 kB / 0.79 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.4064, allocations: 6.344 kB / 0.79 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.4065, allocations: 21.48 kB / 0.79 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.4065, allocations: 10.25 kB / 0.79 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.4066, allocations: 22.22 kB / 0.7901 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.094e-05/0.4067, allocations: 13.77 kB / 0.7901 GB, free: 10.4 MB / 0.5606 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.0001854/0.4069, allocations: 190.8 kB / 0.7902 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.276e-05/0.4069, allocations: 28.7 kB / 0.7903 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.331e-05/0.407, allocations: 27.7 kB / 0.7903 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.407, allocations: 1.562 kB / 0.7903 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.407, allocations: 0 / 0.7903 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.407, allocations: 3.984 kB / 0.7903 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002893/0.4073, allocations: 298.5 kB / 0.7906 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4073, allocations: 0 / 0.7906 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.4074, allocations: 15.3 kB / 0.7906 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.4074, allocations: 1.562 kB / 0.7906 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.4074, allocations: 6.266 kB / 0.7906 GB, free: 9.898 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.4074, allocations: 5.25 kB / 0.7906 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.4075, allocations: 0 / 0.7906 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007598/0.4082, allocations: 476.4 kB / 0.7911 GB, free: 9.641 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.404e-05/0.4083, allocations: 104 kB / 0.7912 GB, free: 9.527 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.685e-05/0.4084, allocations: 7.75 kB / 0.7912 GB, free: 9.523 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.4085, allocations: 20.11 kB / 0.7912 GB, free: 9.512 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.64e-05/0.4086, allocations: 22.28 kB / 0.7912 GB, free: 9.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.227e-05/0.4086, allocations: 8.25 kB / 0.7912 GB, free: 9.496 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002107/0.4088, allocations: 200.8 kB / 0.7914 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4088, allocations: 1.188 kB / 0.7914 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002877/0.4091, allocations: 58 kB / 0.7915 GB, free: 9.352 MB / 0.5606 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.001157/0.4103, allocations: 1.028 MB / 0.7925 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005282/0.4108, allocations: 301.1 kB / 0.7928 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.4108, allocations: 0 / 0.7928 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002575/0.4111, allocations: 184.9 kB / 0.7929 GB, free: 8.273 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.4114, allocations: 28.48 kB / 0.793 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003783/0.4152, allocations: 2.772 MB / 0.7957 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004062/0.4156, allocations: 0.7521 MB / 0.7964 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.994e-05/0.4157, allocations: 22.55 kB / 0.7964 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.4158, allocations: 77.16 kB / 0.7965 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.4158, allocations: 1.5 kB / 0.7965 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.4431, allocations: 5.414 MB / 0.8018 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.947/8.39, allocations: 9.312 kB / 0.8018 GB, free: 2.852 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)