Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.458/1.458, allocations: 249.5 MB / 257 MB, free: 6.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001225/0.001224, allocations: 184.9 kB / 316.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.679/1.679, allocations: 205.3 MB / 0.5671 GB, free: 15.88 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008839/0.0008839, allocations: 92.19 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.773e-05/2.8e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1946/0.1947, allocations: 106.3 MB / 0.8853 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6335/0.8282, allocations: 135.1 MB / 1.017 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.8285, allocations: 84.34 kB / 1.017 GB, free: 2.301 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01616/0.8447, allocations: 5.794 MB / 1.023 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.393e-06/0.8447, allocations: 0 / 1.023 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.739e-05/0.8448, allocations: 4 kB / 1.023 GB, free: 13.41 MB / 0.6511 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.0007891/0.8456, allocations: 0.5531 MB / 1.024 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.8456, allocations: 15.97 kB / 1.024 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.076e-05/0.8457, allocations: 31.62 kB / 1.024 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.8461, allocations: 285.6 kB / 1.024 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.351e-05/0.8462, allocations: 12 kB / 1.024 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.302e-05/0.8462, allocations: 12 kB / 1.024 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002287/0.8464, allocations: 129.9 kB / 1.024 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003085/0.8468, allocations: 229.4 kB / 1.024 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.8468, allocations: 0 / 1.024 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.8468, allocations: 0 / 1.024 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.8468, allocations: 7.984 kB / 1.024 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008721/0.8477, allocations: 0.6927 MB / 1.025 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.8479, allocations: 152.5 kB / 1.025 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.8481, allocations: 99.86 kB / 1.025 GB, free: 11.32 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.8481, allocations: 0 / 1.025 GB, free: 11.32 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/0.8483, allocations: 182.5 kB / 1.025 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.8483, allocations: 4 kB / 1.025 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0005694/0.8489, allocations: 307.5 kB / 1.026 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.879e-05/0.849, allocations: 128.5 kB / 1.026 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002173/0.8492, allocations: 231.5 kB / 1.026 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.8493, allocations: 29.7 kB / 1.026 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.299e-05/0.8494, allocations: 152.6 kB / 1.026 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.211e-05/0.8494, allocations: 46.89 kB / 1.026 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.243e-05/0.8494, allocations: 0 / 1.026 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.8496, allocations: 337.8 kB / 1.027 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.8497, allocations: 92.84 kB / 1.027 GB, free: 9.953 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.8499, allocations: 135.7 kB / 1.027 GB, free: 9.836 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.85, allocations: 95.61 kB / 1.027 GB, free: 9.766 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.473e-06/0.85, allocations: 4 kB / 1.027 GB, free: 9.762 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004667/0.8505, allocations: 325.2 kB / 1.027 GB, free: 9.492 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.82e-05/0.8506, allocations: 43.38 kB / 1.027 GB, free: 9.449 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.8506, allocations: 0 / 1.027 GB, free: 9.449 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.8506, allocations: 4 kB / 1.027 GB, free: 9.445 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.8508, allocations: 24.08 kB / 1.027 GB, free: 9.422 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.423e-06/0.8508, allocations: 8 kB / 1.027 GB, free: 9.414 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001717/0.8509, allocations: 43.75 kB / 1.027 GB, free: 9.371 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.851, allocations: 11.62 kB / 1.027 GB, free: 9.363 MB / 0.6511 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.0001168/0.8511, allocations: 142.7 kB / 1.027 GB, free: 9.211 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004828/0.8516, allocations: 327.2 kB / 1.028 GB, free: 8.941 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.948e-05/0.8517, allocations: 27.72 kB / 1.028 GB, free: 8.914 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.492e-05/0.8517, allocations: 27.7 kB / 1.028 GB, free: 8.895 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.8517, allocations: 0 / 1.028 GB, free: 8.895 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.8517, allocations: 3.938 kB / 1.028 GB, free: 8.891 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.8517, allocations: 4 kB / 1.028 GB, free: 8.887 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00026/0.852, allocations: 261.9 kB / 1.028 GB, free: 8.633 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.852, allocations: 0 / 1.028 GB, free: 8.633 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.8521, allocations: 23.98 kB / 1.028 GB, free: 8.609 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.8522, allocations: 3.953 kB / 1.028 GB, free: 8.605 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.8522, allocations: 7.062 kB / 1.028 GB, free: 8.602 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.8522, allocations: 0 / 1.028 GB, free: 8.602 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.8522, allocations: 0 / 1.028 GB, free: 8.602 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006713/0.8529, allocations: 491 kB / 1.029 GB, free: 8.207 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.296e-05/0.8529, allocations: 96.8 kB / 1.029 GB, free: 8.094 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.638e-05/0.853, allocations: 11.95 kB / 1.029 GB, free: 8.082 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/0.8532, allocations: 36.03 kB / 1.029 GB, free: 8.047 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.882e-05/0.8532, allocations: 23.83 kB / 1.029 GB, free: 8.027 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.82e-05/0.8533, allocations: 15.81 kB / 1.029 GB, free: 8.016 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000136/0.8534, allocations: 184.7 kB / 1.029 GB, free: 7.859 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8534, allocations: 0 / 1.029 GB, free: 7.859 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003059/0.8537, allocations: 63.97 kB / 1.029 GB, free: 7.797 MB / 0.6511 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.0008455/0.8546, allocations: 0.9617 MB / 1.03 GB, free: 6.895 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003407/0.855, allocations: 262.6 kB / 1.03 GB, free: 6.695 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.855, allocations: 256 / 1.03 GB, free: 6.695 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001582/0.8551, allocations: 176.2 kB / 1.03 GB, free: 6.555 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.8554, allocations: 27.56 kB / 1.03 GB, free: 6.535 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009385/0.8563, allocations: 417.1 kB / 1.031 GB, free: 6.133 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.8566, allocations: 0.7628 MB / 1.031 GB, free: 5.348 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.802e-05/0.8567, allocations: 21.19 kB / 1.031 GB, free: 5.328 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.621e-05/0.8568, allocations: 69.66 kB / 1.032 GB, free: 5.305 MB / 0.6511 GB Notification: Performance of SimCode: time 2.7e-07/0.8568, allocations: 0 / 1.032 GB, free: 5.305 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.8793, allocations: 4.354 MB / 1.036 GB, free: 0.9961 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/0.8796, allocations: 155.7 kB / 1.036 GB, free: 0.8008 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.659/2.539, allocations: 0 / 1.036 GB, free: 0.8008 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)