Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 120 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 214.3 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.535/1.535, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002458/0.002458, allocations: 286.5 kB / 309.8 MB, free: 3.504 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.125/1.125, allocations: 180.6 MB / 0.5338 GB, free: 12.41 MB / 398.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002917/0.002917, allocations: 103.8 kB / 0.7347 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5475/0.5504, allocations: 95.33 MB / 0.8278 GB, free: 3.047 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003364/0.5538, allocations: 1.982 MB / 0.8297 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001848/0.5556, allocations: 0.7518 MB / 0.8304 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.5558, allocations: 6.562 kB / 0.8304 GB, free: 1.141 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003972/0.5562, allocations: 88.89 kB / 0.8305 GB, free: 1.113 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002017/0.5564, allocations: 86.59 kB / 0.8306 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009166/0.5573, allocations: 192.2 kB / 0.8308 GB, free: 0.9922 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000548/0.5578, allocations: 254.2 kB / 0.831 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002327/0.5581, allocations: 47.86 kB / 0.8311 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002061/0.5583, allocations: 121.7 kB / 0.8312 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002853/0.5586, allocations: 155.9 kB / 0.8313 GB, free: 0.7539 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.723e-05/0.5586, allocations: 20.38 kB / 0.8314 GB, free: 0.7539 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001947/0.5588, allocations: 98.83 kB / 0.8315 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.5589, allocations: 57.84 kB / 0.8315 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.559, allocations: 104.8 kB / 0.8316 GB, free: 0.6211 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005827/0.5596, allocations: 321.3 kB / 0.8319 GB, free: 496 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.5596, allocations: 0 / 0.8319 GB, free: 496 kB / 0.5762 GB Notification: Performance of FrontEnd: time 2.094e-06/0.5596, allocations: 0 / 0.8319 GB, free: 496 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.5596, allocations: 0 / 0.8319 GB, free: 496 kB / 0.5762 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.0009258/0.5606, allocations: 0.5881 MB / 0.8325 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.5606, allocations: 9.375 kB / 0.8325 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.988e-05/0.5606, allocations: 9.75 kB / 0.8325 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.48e-05/0.5607, allocations: 45.73 kB / 0.8326 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.843e-05/0.5608, allocations: 31.62 kB / 0.8326 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006187/0.5614, allocations: 305.1 kB / 0.8329 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.5614, allocations: 13.12 kB / 0.8329 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.5614, allocations: 13.72 kB / 0.8329 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004243/0.5619, allocations: 225.5 kB / 0.8331 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.5619, allocations: 0 / 0.8331 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/0.5619, allocations: 10.81 kB / 0.8331 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.5619, allocations: 2.969 kB / 0.8331 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002608/0.5622, allocations: 129.5 kB / 0.8333 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000975/0.5631, allocations: 0.6842 MB / 0.8339 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003945/0.5635, allocations: 160.3 kB / 0.8341 GB, free: 14.83 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.5637, allocations: 84.75 kB / 0.8342 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.5637, allocations: 10.38 kB / 0.8342 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003078/0.564, allocations: 165.9 kB / 0.8343 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.564, allocations: 0 / 0.8343 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of matching and sorting (n=15): time 0.0007515/0.5648, allocations: 379 kB / 0.8347 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.361e-05/0.5649, allocations: 136.7 kB / 0.8348 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.5652, allocations: 276.3 kB / 0.8351 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.5652, allocations: 32.02 kB / 0.8351 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.5654, allocations: 155.2 kB / 0.8353 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.604e-05/0.5654, allocations: 54.84 kB / 0.8353 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.59e-05/0.5655, allocations: 45.97 kB / 0.8354 GB, free: 14 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001661/0.5657, allocations: 332.6 kB / 0.8357 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.5659, allocations: 87.3 kB / 0.8358 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.5661, allocations: 129.8 kB / 0.8359 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003637/0.5664, allocations: 243.1 kB / 0.8361 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.5664, allocations: 0 / 0.8361 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000574/0.567, allocations: 337.3 kB / 0.8364 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.01e-05/0.5671, allocations: 39.86 kB / 0.8365 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.5671, allocations: 4.094 kB / 0.8365 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.5671, allocations: 2.109 kB / 0.8365 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.5672, allocations: 21.69 kB / 0.8365 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.5672, allocations: 2.719 kB / 0.8365 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.5674, allocations: 21.97 kB / 0.8365 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.5674, allocations: 14.33 kB / 0.8365 GB, free: 13.24 MB / 0.5919 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.0002373/0.5676, allocations: 189 kB / 0.8367 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.114e-05/0.5677, allocations: 34.27 kB / 0.8367 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.082e-05/0.5678, allocations: 33.73 kB / 0.8368 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.5678, allocations: 2.125 kB / 0.8368 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.5678, allocations: 0 / 0.8368 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.5678, allocations: 0.6094 kB / 0.8368 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003568/0.5681, allocations: 290.9 kB / 0.8371 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.5681, allocations: 0 / 0.8371 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/0.5682, allocations: 13.61 kB / 0.8371 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.5682, allocations: 1.594 kB / 0.8371 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/0.5683, allocations: 9.344 kB / 0.8371 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.5683, allocations: 7.938 kB / 0.8371 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.5683, allocations: 0.5625 kB / 0.8371 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008129/0.5691, allocations: 479.1 kB / 0.8375 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.116e-05/0.5692, allocations: 95.69 kB / 0.8376 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.445e-05/0.5692, allocations: 9.906 kB / 0.8376 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.5693, allocations: 15.25 kB / 0.8377 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.773e-05/0.5694, allocations: 31.25 kB / 0.8377 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.731e-05/0.5695, allocations: 12.42 kB / 0.8377 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002286/0.5697, allocations: 200.3 kB / 0.8379 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.5697, allocations: 0 / 0.8379 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003271/0.57, allocations: 61.08 kB / 0.838 GB, free: 12.32 MB / 0.5919 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.001271/0.5713, allocations: 1.029 MB / 0.839 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005426/0.5718, allocations: 254.4 kB / 0.8392 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.5718, allocations: 3.5 kB / 0.8392 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002391/0.5721, allocations: 154.2 kB / 0.8394 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.5724, allocations: 31.38 kB / 0.8394 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003874/0.5763, allocations: 2.763 MB / 0.8421 GB, free: 9.625 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000482/0.5768, allocations: 0.7538 MB / 0.8428 GB, free: 8.922 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.645e-05/0.5769, allocations: 19.48 kB / 0.8428 GB, free: 8.918 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.577, allocations: 72.22 kB / 0.8429 GB, free: 8.863 MB / 0.5919 GB Notification: Performance of SimCode: time 6.31e-07/0.577, allocations: 3.938 kB / 0.8429 GB, free: 8.859 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02652/0.6035, allocations: 5.451 MB / 0.8482 GB, free: 8.188 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.325/8.929, allocations: 9.969 kB / 0.8482 GB, free: 8.18 MB / 0.5919 GB " [Timeout remaining time 651] (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.098477957013529] Failed to read output from testmodel.py, exit status != 0: 9.062169585959055 9.087885243 8.523571745 Calling exit ...