Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 101.5 kB / 16.35 MB, free: 6.352 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.001065/0.001064, allocations: 194.2 kB / 17.29 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.1 MB / 223.2 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.772/1.772, allocations: 292.3 MB / 0.5496 GB, free: 17.37 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 63.91 kB / 0.6729 GB, free: 5.844 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2197, allocations: 114.5 MB / 0.7848 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004034/0.2237, allocations: 1.953 MB / 0.7867 GB, free: 1.207 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001392/0.2252, allocations: 0.7528 MB / 0.7874 GB, free: 456 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.2253, allocations: 8 kB / 0.7874 GB, free: 448 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.000264/0.2256, allocations: 79.64 kB / 0.7875 GB, free: 368 kB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001214/0.2258, allocations: 91.56 kB / 0.7876 GB, free: 276 kB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006244/0.2264, allocations: 186.7 kB / 0.7878 GB, free: 92 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.3853/0.6117, allocations: 270.1 kB / 0.788 GB, free: 46.74 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.6119, allocations: 70.58 kB / 0.7881 GB, free: 46.74 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.6121, allocations: 118.8 kB / 0.7882 GB, free: 46.74 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001996/0.6123, allocations: 145.5 kB / 0.7883 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.065e-05/0.6123, allocations: 21.22 kB / 0.7884 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.6125, allocations: 99.05 kB / 0.7885 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 7.723e-05/0.6126, allocations: 56.86 kB / 0.7885 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 9.906e-05/0.6127, allocations: 102.5 kB / 0.7886 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000371/0.6131, allocations: 316.4 kB / 0.7889 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.6131, allocations: 0 / 0.7889 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.573e-06/0.6131, allocations: 2.5 kB / 0.7889 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.6131, allocations: 1 kB / 0.7889 GB, free: 46.64 MB / 0.6544 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.0007597/0.6139, allocations: 0.5747 MB / 0.7895 GB, free: 46.18 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.6139, allocations: 7.875 kB / 0.7895 GB, free: 46.18 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.343e-05/0.614, allocations: 32.91 kB / 0.7895 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.6144, allocations: 302.9 kB / 0.7898 GB, free: 45.94 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.6144, allocations: 12.47 kB / 0.7898 GB, free: 45.94 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.788e-05/0.6145, allocations: 14.75 kB / 0.7898 GB, free: 45.94 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003713/0.6149, allocations: 232.3 kB / 0.79 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.6149, allocations: 0 / 0.79 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.6149, allocations: 2.375 kB / 0.79 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.6149, allocations: 5.531 kB / 0.7901 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000246/0.6152, allocations: 127.1 kB / 0.7902 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007354/0.6159, allocations: 0.6807 MB / 0.7908 GB, free: 45.42 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003343/0.6163, allocations: 167.3 kB / 0.791 GB, free: 45.39 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.6164, allocations: 95.5 kB / 0.7911 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.6165, allocations: 5 kB / 0.7911 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000327/0.6168, allocations: 170.4 kB / 0.7913 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=15): time 2.435e-06/0.6168, allocations: 2.625 kB / 0.7913 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15): time 0.000625/0.6174, allocations: 384 kB / 0.7916 GB, free: 45.22 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/0.6175, allocations: 131.1 kB / 0.7918 GB, free: 45.06 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.6177, allocations: 276.8 kB / 0.792 GB, free: 44.96 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.6178, allocations: 32.77 kB / 0.792 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 9.254e-05/0.6179, allocations: 157.8 kB / 0.7922 GB, free: 44.83 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.629e-05/0.6179, allocations: 40.11 kB / 0.7922 GB, free: 44.81 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.368e-05/0.618, allocations: 45.39 kB / 0.7923 GB, free: 44.79 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.596e-05/0.6181, allocations: 341.6 kB / 0.7926 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.6182, allocations: 82.2 kB / 0.7927 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.6184, allocations: 138.2 kB / 0.7928 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002848/0.6187, allocations: 244.5 kB / 0.793 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.6187, allocations: 0 / 0.793 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000435/0.6191, allocations: 334 kB / 0.7934 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.6192, allocations: 36.67 kB / 0.7934 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.6192, allocations: 0.5312 kB / 0.7934 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.6192, allocations: 7.438 kB / 0.7934 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.6193, allocations: 22.97 kB / 0.7934 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.6194, allocations: 2.625 kB / 0.7934 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.6195, allocations: 26.83 kB / 0.7935 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.6195, allocations: 7.875 kB / 0.7935 GB, free: 44.22 MB / 0.6544 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.0001515/0.6197, allocations: 199 kB / 0.7937 GB, free: 44.07 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.6197, allocations: 29.53 kB / 0.7937 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.912e-05/0.6198, allocations: 27.05 kB / 0.7937 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.6198, allocations: 3.5 kB / 0.7937 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.6198, allocations: 0 / 0.7937 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.6198, allocations: 4.359 kB / 0.7937 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.62, allocations: 295.3 kB / 0.794 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.62, allocations: 0 / 0.794 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.6201, allocations: 20.23 kB / 0.794 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.6201, allocations: 3.938 kB / 0.794 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/0.6201, allocations: 7.438 kB / 0.794 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.6201, allocations: 0 / 0.794 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.6201, allocations: 0 / 0.794 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000587/0.6207, allocations: 470.9 kB / 0.7945 GB, free: 43.74 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.184e-05/0.6208, allocations: 104.7 kB / 0.7946 GB, free: 43.63 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.862e-05/0.6208, allocations: 6.812 kB / 0.7946 GB, free: 43.63 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.6209, allocations: 12.66 kB / 0.7946 GB, free: 43.63 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.572e-05/0.621, allocations: 28.86 kB / 0.7946 GB, free: 43.63 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.621, allocations: 11.23 kB / 0.7946 GB, free: 43.63 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001327/0.6212, allocations: 198.9 kB / 0.7948 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6212, allocations: 0 / 0.7948 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000265/0.6214, allocations: 59.53 kB / 0.7949 GB, free: 43.55 MB / 0.6544 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.0001668/0.6216, allocations: 131.1 kB / 0.795 GB, free: 43.46 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004115/0.622, allocations: 298.5 kB / 0.7953 GB, free: 43.39 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.622, allocations: 0 / 0.7953 GB, free: 43.39 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001963/0.6223, allocations: 185.6 kB / 0.7955 GB, free: 43.33 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.6226, allocations: 33.81 kB / 0.7955 GB, free: 43.33 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008842/0.6234, allocations: 477.4 kB / 0.796 GB, free: 43.11 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/0.6237, allocations: 0.7491 MB / 0.7967 GB, free: 42.41 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 7.742e-05/0.6238, allocations: 19.48 kB / 0.7967 GB, free: 42.41 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.229e-05/0.6238, allocations: 17.53 kB / 0.7967 GB, free: 42.4 MB / 0.6544 GB Notification: Performance of SimCode: time 3.61e-07/0.6238, allocations: 0 / 0.7967 GB, free: 42.4 MB / 0.6544 GB Notification: Performance of Templates: time 0.006286/0.6301, allocations: 2.828 MB / 0.7995 GB, free: 42.28 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)