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.6941/0.6941, allocations: 127.3 MB / 139.8 MB, free: 15.44 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009833/0.0009835, allocations: 180.9 kB / 169.7 MB, free: 1.738 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.493/1.493, allocations: 205.1 MB / 404.5 MB, free: 1.586 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.0007803/0.0007803, allocations: 97.64 kB / 481.8 MB, free: 4.23 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.397e-05/3.404e-05, allocations: 0 / 0.5533 GB, free: 54.72 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1384, allocations: 76.76 MB / 0.6283 GB, free: 9.902 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4541/0.5925, allocations: 105.7 MB / 0.7315 GB, free: 7.688 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/0.5928, allocations: 79.2 kB / 0.7316 GB, free: 7.645 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01749/0.6103, allocations: 5.826 MB / 0.7373 GB, free: 2.656 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.6104, allocations: 0 / 0.7373 GB, free: 2.656 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.691e-05/0.6104, allocations: 4 kB / 0.7373 GB, free: 2.652 MB / 490.7 MB 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.0008998/0.6113, allocations: 0.551 MB / 0.7378 GB, free: 2.066 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.6114, allocations: 12.03 kB / 0.7378 GB, free: 2.055 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.017e-05/0.6115, allocations: 52.55 kB / 0.7379 GB, free: 2.004 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.549e-05/0.6115, allocations: 39.52 kB / 0.7379 GB, free: 1.965 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004481/0.612, allocations: 276.7 kB / 0.7382 GB, free: 1.676 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.612, allocations: 14.56 kB / 0.7382 GB, free: 1.668 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.791e-05/0.6121, allocations: 11.12 kB / 0.7382 GB, free: 1.66 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003816/0.6125, allocations: 258.6 kB / 0.7384 GB, free: 1.43 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.6125, allocations: 0 / 0.7384 GB, free: 1.43 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.6125, allocations: 10.88 kB / 0.7385 GB, free: 1.426 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.6125, allocations: 3.953 kB / 0.7385 GB, free: 1.422 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002204/0.6128, allocations: 143.5 kB / 0.7386 GB, free: 1.32 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009262/0.6137, allocations: 0.7309 MB / 0.7393 GB, free: 0.6328 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002381/0.6139, allocations: 157.2 kB / 0.7395 GB, free: 0.5156 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.6141, allocations: 109.4 kB / 0.7396 GB, free: 448 kB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.6141, allocations: 0 / 0.7396 GB, free: 448 kB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002414/0.6144, allocations: 183.6 kB / 0.7397 GB, free: 276 kB / 490.7 MB Notification: Performance of pre-optimization done (n=15): time 4.91e-06/0.6144, allocations: 4.078 kB / 0.7397 GB, free: 272 kB / 490.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005917/0.615, allocations: 344.9 kB / 0.7401 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/0.6151, allocations: 132.5 kB / 0.7402 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.6153, allocations: 249.2 kB / 0.7404 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.6154, allocations: 32.7 kB / 0.7405 GB, free: 15.56 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 9.408e-05/0.6155, allocations: 155.6 kB / 0.7406 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 3.969e-05/0.6155, allocations: 39.27 kB / 0.7407 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.184e-05/0.6155, allocations: 2.812 kB / 0.7407 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.6156, allocations: 340 kB / 0.741 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.6158, allocations: 99.41 kB / 0.7411 GB, free: 15 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.616, allocations: 143.7 kB / 0.7412 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001462/0.6161, allocations: 122.1 kB / 0.7413 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.6161, allocations: 0 / 0.7413 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005002/0.6166, allocations: 380 kB / 0.7417 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.928e-05/0.6167, allocations: 38.62 kB / 0.7417 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.6167, allocations: 96 / 0.7417 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.6167, allocations: 3.938 kB / 0.7417 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.6169, allocations: 35.42 kB / 0.7418 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.6169, allocations: 3.984 kB / 0.7418 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001795/0.6171, allocations: 47.91 kB / 0.7418 GB, free: 14.33 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.6172, allocations: 10.88 kB / 0.7418 GB, free: 14.32 MB / 0.4948 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 () * 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.0001178/0.6173, allocations: 161.7 kB / 0.742 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.888e-05/0.6173, allocations: 23.72 kB / 0.742 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.167e-05/0.6174, allocations: 31.33 kB / 0.742 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.6174, allocations: 4 kB / 0.742 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.6174, allocations: 0 / 0.742 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.6174, allocations: 0 / 0.742 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002457/0.6177, allocations: 301.3 kB / 0.7423 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.6177, allocations: 0 / 0.7423 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.6178, allocations: 19.98 kB / 0.7423 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.6178, allocations: 0 / 0.7423 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.6179, allocations: 7.625 kB / 0.7424 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.6179, allocations: 4 kB / 0.7424 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.6179, allocations: 4 kB / 0.7424 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007254/0.6186, allocations: 0.5262 MB / 0.7429 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.88e-05/0.6187, allocations: 92.86 kB / 0.743 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.371e-05/0.6187, allocations: 7.5 kB / 0.743 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.6189, allocations: 39.34 kB / 0.743 GB, free: 13.19 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.814e-05/0.619, allocations: 31.27 kB / 0.743 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.619, allocations: 11.88 kB / 0.743 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002031/0.6192, allocations: 198.7 kB / 0.7432 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6192, allocations: 3.938 kB / 0.7432 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003074/0.6196, allocations: 67.34 kB / 0.7433 GB, free: 12.93 MB / 0.4948 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) * 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.0009028/0.6205, allocations: 1.016 MB / 0.7443 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0003457/0.6208, allocations: 264.6 kB / 0.7446 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.6208, allocations: 4 kB / 0.7446 GB, free: 11.76 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.621, allocations: 176.2 kB / 0.7447 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.6213, allocations: 34.78 kB / 0.7448 GB, free: 11.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.6223, allocations: 431.6 kB / 0.7452 GB, free: 11.18 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.6226, allocations: 0.7669 MB / 0.7459 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 8.105e-05/0.6227, allocations: 13.2 kB / 0.7459 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.081e-05/0.6228, allocations: 69.53 kB / 0.746 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of SimCode: time 4e-07/0.6228, allocations: 4 kB / 0.746 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0171/0.6399, allocations: 4.889 MB / 0.7508 GB, free: 5.602 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/0.6402, allocations: 162.4 kB / 0.7509 GB, free: 5.379 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.822/2.462, allocations: 0 / 0.7509 GB, free: 5.379 MB / 0.4948 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)