Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 190.4 kB / 16.25 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.243/1.243, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.142/2.142, allocations: 390.2 MB / 0.6644 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 67.88 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5138/0.5151, allocations: 140.4 MB / 0.9492 GB, free: 9.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002598/0.5178, allocations: 2.004 MB / 0.9512 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009359/0.5187, allocations: 0.6946 MB / 0.9519 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.5189, allocations: 3.844 kB / 0.9519 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001993/0.5191, allocations: 82.5 kB / 0.952 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.5192, allocations: 83.7 kB / 0.952 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005028/0.5197, allocations: 167.9 kB / 0.9522 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002539/0.52, allocations: 271.8 kB / 0.9525 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.5201, allocations: 72.77 kB / 0.9525 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.5202, allocations: 110.7 kB / 0.9526 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/0.5204, allocations: 156.1 kB / 0.9528 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.604e-05/0.5204, allocations: 20.28 kB / 0.9528 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.5206, allocations: 88.94 kB / 0.9529 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.417e-05/0.5207, allocations: 63.5 kB / 0.9529 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.471e-05/0.5207, allocations: 106.1 kB / 0.953 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002879/0.521, allocations: 311.1 kB / 0.9533 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.521, allocations: 3.938 kB / 0.9533 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.402e-06/0.521, allocations: 1.125 kB / 0.9533 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.238e-05/0.5211, allocations: 0 / 0.9533 GB, free: 6.027 MB / 0.7169 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.0007227/0.5218, allocations: 0.569 MB / 0.9539 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.5218, allocations: 12.62 kB / 0.9539 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.881e-05/0.5219, allocations: 48.14 kB / 0.954 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.406e-05/0.5219, allocations: 27.41 kB / 0.954 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003498/0.5223, allocations: 303.8 kB / 0.9543 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.5223, allocations: 10.59 kB / 0.9543 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.252e-05/0.5224, allocations: 14.44 kB / 0.9543 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003182/0.5227, allocations: 229 kB / 0.9545 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.5227, allocations: 0 / 0.9545 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.5227, allocations: 10.52 kB / 0.9545 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.5227, allocations: 3.438 kB / 0.9545 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002074/0.5229, allocations: 129.5 kB / 0.9547 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006358/0.5236, allocations: 0.6824 MB / 0.9553 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.5239, allocations: 167.9 kB / 0.9555 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.524, allocations: 95.23 kB / 0.9556 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.5241, allocations: 1.5 kB / 0.9556 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002561/0.5243, allocations: 178.7 kB / 0.9557 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.5243, allocations: 0 / 0.9557 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0005686/0.5249, allocations: 384.9 kB / 0.9561 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.525, allocations: 136.4 kB / 0.9562 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000225/0.5252, allocations: 275.5 kB / 0.9565 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.5252, allocations: 32.77 kB / 0.9565 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.165e-05/0.5253, allocations: 163.1 kB / 0.9567 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.969e-05/0.5253, allocations: 41.52 kB / 0.9567 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.072e-05/0.5254, allocations: 37.66 kB / 0.9568 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.259e-05/0.5255, allocations: 345.3 kB / 0.9571 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.5256, allocations: 83.44 kB / 0.9572 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.5257, allocations: 135.3 kB / 0.9573 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.526, allocations: 245.5 kB / 0.9575 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.526, allocations: 1.062 kB / 0.9575 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004255/0.5265, allocations: 342 kB / 0.9579 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.5265, allocations: 36.58 kB / 0.9579 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.5265, allocations: 1.375 kB / 0.9579 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.5265, allocations: 2.75 kB / 0.9579 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.5266, allocations: 20.48 kB / 0.9579 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.5266, allocations: 2.75 kB / 0.9579 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.5267, allocations: 26.83 kB / 0.9579 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.5268, allocations: 5.5 kB / 0.958 GB, free: 2.363 MB / 0.7169 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.0001161/0.5269, allocations: 201.6 kB / 0.9581 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.5269, allocations: 25.47 kB / 0.9582 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.976e-05/0.527, allocations: 30.08 kB / 0.9582 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.527, allocations: 1.375 kB / 0.9582 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.527, allocations: 1.375 kB / 0.9582 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.527, allocations: 0 / 0.9582 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.5271, allocations: 289.5 kB / 0.9585 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.5272, allocations: 1.344 kB / 0.9585 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.878e-05/0.5273, allocations: 15.89 kB / 0.9585 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.5273, allocations: 4 kB / 0.9585 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.5273, allocations: 7.812 kB / 0.9585 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.5273, allocations: 0 / 0.9585 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.5273, allocations: 5.438 kB / 0.9585 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005879/0.5279, allocations: 472 kB / 0.959 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.666e-05/0.5279, allocations: 94.89 kB / 0.9591 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.121e-05/0.528, allocations: 12.47 kB / 0.9591 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.519e-05/0.5281, allocations: 11.36 kB / 0.9591 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.384e-05/0.5282, allocations: 30.39 kB / 0.9591 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.5282, allocations: 4.531 kB / 0.9591 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001495/0.5283, allocations: 201.1 kB / 0.9593 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.7e-07/0.5283, allocations: 5.031 kB / 0.9593 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002661/0.5286, allocations: 59.14 kB / 0.9594 GB, free: 1.32 MB / 0.7169 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.0008002/0.5294, allocations: 1.024 MB / 0.9604 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003874/0.5298, allocations: 300.9 kB / 0.9606 GB, free: 372 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.5298, allocations: 5.156 kB / 0.9607 GB, free: 368 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001717/0.53, allocations: 185.3 kB / 0.9608 GB, free: 244 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000257/0.5303, allocations: 33.92 kB / 0.9609 GB, free: 228 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003209/0.5335, allocations: 2.819 MB / 0.9636 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.5338, allocations: 0.7529 MB / 0.9643 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.678e-05/0.5339, allocations: 26.7 kB / 0.9644 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.695e-05/0.534, allocations: 69.14 kB / 0.9644 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.534, allocations: 0 / 0.9644 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.505/2.039, allocations: 5.098 MB / 0.9694 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002943/2.04, allocations: 207.3 kB / 0.9696 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.346/4.385, allocations: 4 kB / 0.9696 GB, free: 10.72 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)