Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.007337/0.007337, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.001367/0.001367, allocations: 188 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 1.02/1.02, allocations: 143 MB / 433.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001465, allocations: 67.89 kB / 0.595 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4638/0.4653, allocations: 82.02 MB / 0.6751 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002966/0.4683, allocations: 1.94 MB / 0.677 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001178/0.4695, allocations: 0.715 MB / 0.6777 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.666e-05/0.4696, allocations: 1.906 kB / 0.6777 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002239/0.4698, allocations: 82.41 kB / 0.6778 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.47, allocations: 96.73 kB / 0.6779 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005458/0.4705, allocations: 183.9 kB / 0.6781 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002996/0.4708, allocations: 269.8 kB / 0.6783 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.471, allocations: 68.36 kB / 0.6784 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.4712, allocations: 114 kB / 0.6785 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002159/0.4714, allocations: 163.9 kB / 0.6787 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.998e-05/0.4714, allocations: 20.5 kB / 0.6787 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.4716, allocations: 93.48 kB / 0.6788 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 9.128e-05/0.4717, allocations: 53.23 kB / 0.6788 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.4718, allocations: 106.2 kB / 0.6789 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003861/0.4722, allocations: 322.6 kB / 0.6792 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.4722, allocations: 0 / 0.6792 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.974e-06/0.4722, allocations: 0 / 0.6792 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.116e-06/0.4722, allocations: 1.344 kB / 0.6792 GB, free: 14.17 MB / 0.5137 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.0008235/0.4731, allocations: 0.5795 MB / 0.6798 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.4731, allocations: 10.12 kB / 0.6798 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.316e-05/0.4732, allocations: 51.17 kB / 0.6799 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.399e-05/0.4732, allocations: 31.03 kB / 0.6799 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004942/0.4737, allocations: 306.1 kB / 0.6802 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.4738, allocations: 19.53 kB / 0.6802 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.424e-05/0.4738, allocations: 13.88 kB / 0.6802 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.4742, allocations: 221.9 kB / 0.6804 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.4742, allocations: 1.25 kB / 0.6804 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.4742, allocations: 6.281 kB / 0.6804 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.4743, allocations: 2.875 kB / 0.6804 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002537/0.4745, allocations: 131.4 kB / 0.6806 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008392/0.4754, allocations: 0.6893 MB / 0.6812 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003571/0.4757, allocations: 167.8 kB / 0.6814 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.4759, allocations: 95.05 kB / 0.6815 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.4759, allocations: 5.203 kB / 0.6815 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.4762, allocations: 166.8 kB / 0.6817 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.4762, allocations: 0 / 0.6817 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.000668/0.4769, allocations: 378.1 kB / 0.682 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.633e-05/0.477, allocations: 135.3 kB / 0.6821 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/0.4772, allocations: 280.2 kB / 0.6824 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.4773, allocations: 32.45 kB / 0.6824 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.4774, allocations: 159.3 kB / 0.6826 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.066e-05/0.4775, allocations: 44.86 kB / 0.6826 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7e-05/0.4775, allocations: 42.2 kB / 0.6827 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4777, allocations: 341.6 kB / 0.683 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.4778, allocations: 82.84 kB / 0.6831 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.478, allocations: 128.2 kB / 0.6832 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000318/0.4783, allocations: 244.7 kB / 0.6834 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4784, allocations: 96 / 0.6834 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004825/0.4788, allocations: 337.6 kB / 0.6838 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.677e-05/0.4789, allocations: 41.27 kB / 0.6838 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.4789, allocations: 1.281 kB / 0.6838 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.4789, allocations: 5.406 kB / 0.6838 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.4791, allocations: 26.02 kB / 0.6838 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.4791, allocations: 2.594 kB / 0.6838 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.4792, allocations: 21.89 kB / 0.6839 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.4792, allocations: 10.31 kB / 0.6839 GB, free: 10.5 MB / 0.5137 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.0001917/0.4794, allocations: 199.1 kB / 0.6841 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.846e-05/0.4795, allocations: 25.78 kB / 0.6841 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.55e-05/0.4796, allocations: 35.08 kB / 0.6841 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.4796, allocations: 1.438 kB / 0.6841 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.4796, allocations: 0 / 0.6841 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.4796, allocations: 0 / 0.6841 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002663/0.4799, allocations: 294 kB / 0.6844 GB, free: 9.996 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4799, allocations: 1.719 kB / 0.6844 GB, free: 9.996 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.48, allocations: 14.98 kB / 0.6844 GB, free: 9.992 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.48, allocations: 5.266 kB / 0.6844 GB, free: 9.988 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.48, allocations: 2.906 kB / 0.6844 GB, free: 9.988 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.48, allocations: 0 / 0.6844 GB, free: 9.988 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.48, allocations: 9.141 kB / 0.6844 GB, free: 9.98 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006966/0.4807, allocations: 473 kB / 0.6849 GB, free: 9.727 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.709e-05/0.4808, allocations: 93.83 kB / 0.685 GB, free: 9.621 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.038e-05/0.4808, allocations: 9.062 kB / 0.685 GB, free: 9.617 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.953e-05/0.4809, allocations: 11.14 kB / 0.685 GB, free: 9.613 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.299e-05/0.481, allocations: 34.05 kB / 0.685 GB, free: 9.59 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.4811, allocations: 8.312 kB / 0.685 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000184/0.4813, allocations: 201.9 kB / 0.6852 GB, free: 9.457 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4813, allocations: 1.281 kB / 0.6852 GB, free: 9.457 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003295/0.4816, allocations: 62.19 kB / 0.6853 GB, free: 9.441 MB / 0.5137 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.001038/0.4826, allocations: 1.029 MB / 0.6863 GB, free: 8.652 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000449/0.4831, allocations: 290 kB / 0.6866 GB, free: 8.492 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.4831, allocations: 0 / 0.6866 GB, free: 8.492 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002217/0.4833, allocations: 185.7 kB / 0.6867 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.4836, allocations: 38.11 kB / 0.6868 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004051/0.4877, allocations: 2.782 MB / 0.6895 GB, free: 6.414 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.4881, allocations: 0.7509 MB / 0.6902 GB, free: 5.684 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 9.017e-05/0.4882, allocations: 17.7 kB / 0.6902 GB, free: 5.676 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.4883, allocations: 78.75 kB / 0.6903 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of SimCode: time 1.032e-06/0.4884, allocations: 0 / 0.6903 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02751/0.5159, allocations: 5.407 MB / 0.6956 GB, free: 0.9727 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.542/8.057, allocations: 15.78 kB / 0.6956 GB, free: 0.9648 MB / 0.5137 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)