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/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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.007325/0.007325, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001765/0.001766, allocations: 198.4 kB / 16.67 MB, free: 5.934 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.727/1.727, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.644/1.644, allocations: 251.7 MB / 0.5094 GB, free: 3.043 MB / 414.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.001528/0.001528, allocations: 68.38 kB / 0.7258 GB, free: 9.043 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2984, allocations: 104.7 MB / 0.828 GB, free: 244 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004085/0.3025, allocations: 1.967 MB / 0.8299 GB, free: 14.26 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.3041, allocations: 0.7564 MB / 0.8307 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002158/0.3043, allocations: 8 kB / 0.8307 GB, free: 13.48 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002805/0.3046, allocations: 79.64 kB / 0.8308 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.3048, allocations: 95.56 kB / 0.8309 GB, free: 13.31 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007334/0.3056, allocations: 191.3 kB / 0.831 GB, free: 13.13 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003492/0.3059, allocations: 259.4 kB / 0.8313 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.3061, allocations: 69.64 kB / 0.8314 GB, free: 12.8 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.3063, allocations: 119.6 kB / 0.8315 GB, free: 12.69 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.3065, allocations: 151.5 kB / 0.8316 GB, free: 12.54 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.947e-05/0.3065, allocations: 20 kB / 0.8316 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.3067, allocations: 91.94 kB / 0.8317 GB, free: 12.43 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.583e-05/0.3068, allocations: 55.83 kB / 0.8318 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.3069, allocations: 111.3 kB / 0.8319 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003974/0.3073, allocations: 310.8 kB / 0.8322 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3073, allocations: 0 / 0.8322 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.327e-06/0.3073, allocations: 0 / 0.8322 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.3074, allocations: 3.938 kB / 0.8322 GB, free: 11.96 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.0008754/0.3082, allocations: 0.5933 MB / 0.8328 GB, free: 11.31 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.3083, allocations: 8.031 kB / 0.8328 GB, free: 11.3 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.342e-05/0.3083, allocations: 28.8 kB / 0.8328 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005212/0.3089, allocations: 303 kB / 0.8331 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.3089, allocations: 16.38 kB / 0.8331 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.659e-05/0.309, allocations: 20.36 kB / 0.8331 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003874/0.3094, allocations: 219.3 kB / 0.8333 GB, free: 10.67 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.3094, allocations: 7.922 kB / 0.8333 GB, free: 10.66 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.3094, allocations: 8 kB / 0.8333 GB, free: 10.66 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.3094, allocations: 4 kB / 0.8333 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000247/0.3097, allocations: 132.4 kB / 0.8335 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008425/0.3105, allocations: 0.677 MB / 0.8341 GB, free: 9.789 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/0.3109, allocations: 166.5 kB / 0.8343 GB, free: 9.617 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.3111, allocations: 101 kB / 0.8344 GB, free: 9.516 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.3111, allocations: 0 / 0.8344 GB, free: 9.516 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002676/0.3114, allocations: 173.1 kB / 0.8346 GB, free: 9.328 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.3114, allocations: 0 / 0.8346 GB, free: 9.328 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15): time 0.0006897/0.3121, allocations: 385.3 kB / 0.8349 GB, free: 8.941 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.92e-05/0.3122, allocations: 136.5 kB / 0.8351 GB, free: 8.777 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002719/0.3124, allocations: 278.7 kB / 0.8353 GB, free: 8.504 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.3125, allocations: 29.7 kB / 0.8353 GB, free: 8.469 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.3126, allocations: 156.3 kB / 0.8355 GB, free: 8.312 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.3126, allocations: 47.64 kB / 0.8355 GB, free: 8.266 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.135e-05/0.3127, allocations: 41.7 kB / 0.8356 GB, free: 8.219 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3129, allocations: 334.8 kB / 0.8359 GB, free: 7.883 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.313, allocations: 91.89 kB / 0.836 GB, free: 7.793 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.3132, allocations: 127.1 kB / 0.8361 GB, free: 7.652 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003392/0.3136, allocations: 257.6 kB / 0.8364 GB, free: 7.379 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3136, allocations: 0 / 0.8364 GB, free: 7.379 MB / 0.6544 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004716/0.3141, allocations: 327.2 kB / 0.8367 GB, free: 7.047 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.366e-05/0.3141, allocations: 45.69 kB / 0.8367 GB, free: 6.996 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.3141, allocations: 0 / 0.8367 GB, free: 6.996 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.3142, allocations: 4 kB / 0.8367 GB, free: 6.992 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.3143, allocations: 23.92 kB / 0.8367 GB, free: 6.969 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.3143, allocations: 7.984 kB / 0.8367 GB, free: 6.961 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.3144, allocations: 19.88 kB / 0.8368 GB, free: 6.941 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.3145, allocations: 12 kB / 0.8368 GB, free: 6.93 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.0001755/0.3146, allocations: 198.4 kB / 0.837 GB, free: 6.723 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.766e-05/0.3147, allocations: 27.86 kB / 0.837 GB, free: 6.695 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.055e-05/0.3147, allocations: 25.83 kB / 0.837 GB, free: 6.672 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.3148, allocations: 0 / 0.837 GB, free: 6.672 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.3148, allocations: 4 kB / 0.837 GB, free: 6.668 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3148, allocations: 0 / 0.837 GB, free: 6.668 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002586/0.315, allocations: 297.3 kB / 0.8373 GB, free: 6.328 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.315, allocations: 96 / 0.8373 GB, free: 6.328 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.783e-05/0.3151, allocations: 23.92 kB / 0.8373 GB, free: 6.305 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3152, allocations: 0 / 0.8373 GB, free: 6.305 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.3152, allocations: 8 kB / 0.8373 GB, free: 6.297 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3152, allocations: 3.938 kB / 0.8373 GB, free: 6.293 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3152, allocations: 0 / 0.8373 GB, free: 6.293 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006857/0.3159, allocations: 474.3 kB / 0.8378 GB, free: 5.805 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 6.629e-05/0.316, allocations: 100.9 kB / 0.8379 GB, free: 5.688 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.024e-05/0.316, allocations: 11.98 kB / 0.8379 GB, free: 5.676 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.3161, allocations: 16.05 kB / 0.8379 GB, free: 5.66 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.812e-05/0.3162, allocations: 23.97 kB / 0.8379 GB, free: 5.637 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-05/0.3162, allocations: 11.98 kB / 0.8379 GB, free: 5.625 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001889/0.3164, allocations: 198 kB / 0.8381 GB, free: 5.43 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3164, allocations: 0 / 0.8381 GB, free: 5.43 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002732/0.3167, allocations: 55.94 kB / 0.8382 GB, free: 5.375 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.0002124/0.3169, allocations: 143 kB / 0.8383 GB, free: 5.227 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004941/0.3174, allocations: 295.2 kB / 0.8386 GB, free: 4.926 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3175, allocations: 0 / 0.8386 GB, free: 4.926 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002123/0.3177, allocations: 175.4 kB / 0.8388 GB, free: 4.742 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.318, allocations: 32.55 kB / 0.8388 GB, free: 4.711 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.319, allocations: 480.7 kB / 0.8393 GB, free: 4.211 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003636/0.3194, allocations: 0.7531 MB / 0.84 GB, free: 3.434 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 8.326e-05/0.3195, allocations: 17.55 kB / 0.84 GB, free: 3.418 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.668e-05/0.3195, allocations: 19.44 kB / 0.84 GB, free: 3.398 MB / 0.6544 GB Notification: Performance of SimCode: time 2.4e-07/0.3196, allocations: 0 / 0.84 GB, free: 3.398 MB / 0.6544 GB Notification: Performance of Templates: time 0.00718/0.3267, allocations: 2.857 MB / 0.8428 GB, free: 0.5625 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)