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/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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/BuildSysPro 3.5.0/package.mo): time 0.737/0.737, allocations: 128.7 MB / 143.7 MB, free: 2.348 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 188.4 kB / 173.7 MB, free: 6.133 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.673/1.673, allocations: 205.4 MB / 409 MB, free: 10.52 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008665/0.0008666, allocations: 91.64 kB / 486.6 MB, free: 13.02 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000374/0.0003741, allocations: 9.281 kB / 0.5604 GB, free: 97.52 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.183, allocations: 76.78 MB / 0.6354 GB, free: 30.48 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1504/0.3335, allocations: 105.8 MB / 0.7388 GB, free: 4.512 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.3338, allocations: 87.95 kB / 0.7388 GB, free: 4.426 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.376/0.7099, allocations: 5.831 MB / 0.7445 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.547e-06/0.7099, allocations: 2.125 kB / 0.7445 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.667e-05/0.71, allocations: 4.312 kB / 0.7445 GB, free: 108.3 MB / 0.5105 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.001324/0.7113, allocations: 0.591 MB / 0.7451 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.7114, allocations: 10.53 kB / 0.7451 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.7115, allocations: 53.3 kB / 0.7452 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.16e-05/0.7116, allocations: 32.27 kB / 0.7452 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004888/0.7121, allocations: 285.1 kB / 0.7455 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.899e-05/0.7121, allocations: 15.77 kB / 0.7455 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.188e-05/0.7122, allocations: 13.97 kB / 0.7455 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004785/0.7126, allocations: 269.8 kB / 0.7458 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.7127, allocations: 0 / 0.7458 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.64e-05/0.7127, allocations: 7.031 kB / 0.7458 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.7127, allocations: 3.953 kB / 0.7458 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003168/0.713, allocations: 162.3 kB / 0.7459 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009828/0.714, allocations: 0.735 MB / 0.7466 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004738/0.7145, allocations: 224.8 kB / 0.7469 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.7145, allocations: 0.9688 kB / 0.7469 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003364/0.7149, allocations: 209.2 kB / 0.7471 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.7149, allocations: 0 / 0.7471 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15): time 0.001099/0.716, allocations: 0.5547 MB / 0.7476 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.803e-05/0.7161, allocations: 143.7 kB / 0.7477 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003003/0.7164, allocations: 249 kB / 0.748 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.7164, allocations: 32.92 kB / 0.748 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.7166, allocations: 153.7 kB / 0.7482 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.562e-05/0.7166, allocations: 40.7 kB / 0.7482 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.595e-05/0.7167, allocations: 4.406 kB / 0.7482 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.7168, allocations: 338.4 kB / 0.7485 GB, free: 106 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/0.717, allocations: 117.7 kB / 0.7486 GB, free: 106 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002611/0.7173, allocations: 166 kB / 0.7488 GB, free: 106 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/0.7176, allocations: 140.7 kB / 0.7489 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.7176, allocations: 0 / 0.7489 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007505/0.7183, allocations: 421.2 kB / 0.7493 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.7184, allocations: 38.72 kB / 0.7494 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.7184, allocations: 1.094 kB / 0.7494 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.7184, allocations: 1.969 kB / 0.7494 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.7186, allocations: 34.45 kB / 0.7494 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.7186, allocations: 2 kB / 0.7494 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.7188, allocations: 43.81 kB / 0.7494 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.768e-05/0.7188, allocations: 9.719 kB / 0.7495 GB, free: 105.8 MB / 0.5105 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.0001733/0.719, allocations: 198.5 kB / 0.7496 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.567e-05/0.719, allocations: 26.05 kB / 0.7497 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.077e-05/0.7191, allocations: 32.72 kB / 0.7497 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.7191, allocations: 3.5 kB / 0.7497 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.7191, allocations: 0.6562 kB / 0.7497 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.7191, allocations: 1.781 kB / 0.7497 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003129/0.7195, allocations: 304.9 kB / 0.75 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.7195, allocations: 0.8438 kB / 0.75 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.7196, allocations: 30.61 kB / 0.75 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.7196, allocations: 1.25 kB / 0.75 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.876e-05/0.7197, allocations: 5.938 kB / 0.75 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.7197, allocations: 1.125 kB / 0.75 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.7197, allocations: 1.453 kB / 0.75 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.7207, allocations: 0.5871 MB / 0.7506 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.698e-05/0.7208, allocations: 96.03 kB / 0.7507 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.651e-05/0.7208, allocations: 10.45 kB / 0.7507 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.721, allocations: 31.56 kB / 0.7507 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.989e-05/0.7211, allocations: 26.7 kB / 0.7508 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.7211, allocations: 15.62 kB / 0.7508 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001861/0.7213, allocations: 201.8 kB / 0.751 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7213, allocations: 3.938 kB / 0.751 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003308/0.7217, allocations: 63.42 kB / 0.751 GB, free: 105.1 MB / 0.5105 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.00119/0.7229, allocations: 1.08 MB / 0.7521 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0005092/0.7234, allocations: 319.9 kB / 0.7524 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.7234, allocations: 0 / 0.7524 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002475/0.7237, allocations: 196.4 kB / 0.7526 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.7239, allocations: 32.55 kB / 0.7526 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002931/0.7269, allocations: 2.108 MB / 0.7547 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.7272, allocations: 0.7554 MB / 0.7554 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 9.735e-05/0.7273, allocations: 19.38 kB / 0.7554 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.7274, allocations: 68.62 kB / 0.7555 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of SimCode: time 6.01e-07/0.7274, allocations: 1.312 kB / 0.7555 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0217/0.7491, allocations: 4.923 MB / 0.7603 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002622/0.7495, allocations: 194.1 kB / 0.7605 GB, free: 102 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.053/2.803, allocations: 3.672 kB / 0.7605 GB, free: 102 MB / 0.5105 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/linux/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)