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.7679/0.7679, allocations: 127.4 MB / 134.9 MB, free: 3.719 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.001031/0.001031, allocations: 180.9 kB / 164.7 MB, free: 6.512 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.331/1.331, allocations: 205.2 MB / 399.5 MB, free: 5.922 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.0009097/0.0009097, allocations: 92.55 kB / 476.7 MB, free: 8.652 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 1.873e-05/1.888e-05, allocations: 4 kB / 0.5467 GB, free: 60.38 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1315, allocations: 76.77 MB / 0.6216 GB, free: 15.55 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4578/0.5893, allocations: 105.2 MB / 0.7244 GB, free: 10.51 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.5895, allocations: 88.5 kB / 0.7244 GB, free: 10.46 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01602/0.6056, allocations: 5.787 MB / 0.7301 GB, free: 5.586 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.6056, allocations: 0 / 0.7301 GB, free: 5.586 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.851e-05/0.6057, allocations: 4 kB / 0.7301 GB, free: 5.582 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.00076/0.6065, allocations: 0.5584 MB / 0.7306 GB, free: 4.988 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.6065, allocations: 8.031 kB / 0.7306 GB, free: 4.98 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.497e-05/0.6066, allocations: 39.52 kB / 0.7307 GB, free: 4.941 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003953/0.607, allocations: 281 kB / 0.731 GB, free: 4.652 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/0.607, allocations: 7.688 kB / 0.731 GB, free: 4.648 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.071e-05/0.6071, allocations: 12 kB / 0.731 GB, free: 4.637 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002178/0.6073, allocations: 134.1 kB / 0.7311 GB, free: 4.539 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.6076, allocations: 212.8 kB / 0.7313 GB, free: 4.348 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.6076, allocations: 0 / 0.7313 GB, free: 4.348 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.6076, allocations: 4 kB / 0.7313 GB, free: 4.344 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.6076, allocations: 7.953 kB / 0.7313 GB, free: 4.336 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007777/0.6084, allocations: 0.699 MB / 0.732 GB, free: 3.688 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.6086, allocations: 144.9 kB / 0.7321 GB, free: 3.578 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.6087, allocations: 98.95 kB / 0.7322 GB, free: 3.508 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.6088, allocations: 4 kB / 0.7322 GB, free: 3.504 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000206/0.609, allocations: 183.9 kB / 0.7324 GB, free: 3.336 MB / 490.7 MB Notification: Performance of pre-optimization done (n=15): time 1.232e-06/0.609, allocations: 0 / 0.7324 GB, free: 3.336 MB / 490.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005125/0.6095, allocations: 307.2 kB / 0.7327 GB, free: 3.082 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/0.6096, allocations: 132.5 kB / 0.7328 GB, free: 2.922 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.6098, allocations: 228.5 kB / 0.733 GB, free: 2.727 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.6098, allocations: 25.7 kB / 0.7331 GB, free: 2.695 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.202e-05/0.6099, allocations: 158.8 kB / 0.7332 GB, free: 2.574 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.578e-05/0.61, allocations: 38.95 kB / 0.7333 GB, free: 2.539 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.562e-05/0.61, allocations: 4 kB / 0.7333 GB, free: 2.535 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.6101, allocations: 343 kB / 0.7336 GB, free: 2.203 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.6102, allocations: 92.12 kB / 0.7337 GB, free: 2.137 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.6104, allocations: 135 kB / 0.7338 GB, free: 2.02 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.6105, allocations: 94.66 kB / 0.7339 GB, free: 1.949 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.6105, allocations: 0 / 0.7339 GB, free: 1.949 MB / 490.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004472/0.611, allocations: 331.9 kB / 0.7342 GB, free: 1.676 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.137e-05/0.611, allocations: 36.77 kB / 0.7342 GB, free: 1.637 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.611, allocations: 7.984 kB / 0.7343 GB, free: 1.629 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.611, allocations: 96 / 0.7343 GB, free: 1.629 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.6112, allocations: 35.95 kB / 0.7343 GB, free: 1.594 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.6112, allocations: 4 kB / 0.7343 GB, free: 1.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.6114, allocations: 39.81 kB / 0.7343 GB, free: 1.551 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.158e-05/0.6114, allocations: 15.36 kB / 0.7343 GB, free: 1.539 MB / 490.7 MB 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.0001035/0.6115, allocations: 154.8 kB / 0.7345 GB, free: 1.379 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004663/0.612, allocations: 319.9 kB / 0.7348 GB, free: 1.109 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.223e-05/0.612, allocations: 23.72 kB / 0.7348 GB, free: 1.086 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.802e-05/0.6121, allocations: 28.33 kB / 0.7348 GB, free: 1.07 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.6121, allocations: 4 kB / 0.7349 GB, free: 1.066 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.6121, allocations: 0 / 0.7349 GB, free: 1.066 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.6121, allocations: 0 / 0.7349 GB, free: 1.066 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002025/0.6123, allocations: 271.8 kB / 0.7351 GB, free: 0.8047 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.6123, allocations: 0 / 0.7351 GB, free: 0.8047 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/0.6125, allocations: 23.98 kB / 0.7351 GB, free: 0.7812 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.6125, allocations: 4 kB / 0.7351 GB, free: 0.7773 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.6125, allocations: 4 kB / 0.7351 GB, free: 0.7734 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.6125, allocations: 0 / 0.7351 GB, free: 0.7734 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.6125, allocations: 3.938 kB / 0.7351 GB, free: 0.7695 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006457/0.6132, allocations: 485.4 kB / 0.7356 GB, free: 392 kB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.978e-05/0.6132, allocations: 100.8 kB / 0.7357 GB, free: 272 kB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.258e-05/0.6133, allocations: 4 kB / 0.7357 GB, free: 268 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.6135, allocations: 32.03 kB / 0.7357 GB, free: 236 kB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.149e-05/0.6135, allocations: 31.7 kB / 0.7358 GB, free: 208 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.229e-05/0.6136, allocations: 10.56 kB / 0.7358 GB, free: 200 kB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001391/0.6137, allocations: 183.5 kB / 0.736 GB, free: 44 kB / 490.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6137, allocations: 4 kB / 0.736 GB, free: 40 kB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002847/0.614, allocations: 63.89 kB / 0.736 GB, free: 15.97 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.0007614/0.6148, allocations: 0.9635 MB / 0.737 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002893/0.6151, allocations: 259.4 kB / 0.7372 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.6151, allocations: 256 / 0.7372 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.6152, allocations: 173.4 kB / 0.7374 GB, free: 14.73 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.6155, allocations: 25.33 kB / 0.7374 GB, free: 14.72 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008784/0.6164, allocations: 428.3 kB / 0.7378 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002657/0.6166, allocations: 0.7592 MB / 0.7385 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 7.364e-05/0.6167, allocations: 17.2 kB / 0.7386 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.082e-05/0.6168, allocations: 73.97 kB / 0.7386 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of SimCode: time 2.7e-07/0.6168, allocations: 0 / 0.7386 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0215/0.6383, allocations: 4.358 MB / 0.7429 GB, free: 9.164 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001606/0.6385, allocations: 154.5 kB / 0.743 GB, free: 8.965 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/2.381, allocations: 0 / 0.743 GB, free: 8.965 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)