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.001043/0.001043, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.0106/0.0106, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.733/1.733, allocations: 205.4 MB / 222.5 MB, free: 5.562 MB / 174.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.778/1.778, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0005527/0.0005524, allocations: 23.97 kB / 0.6743 GB, free: 25.86 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3095, allocations: 116.3 MB / 0.7879 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00255/0.3121, allocations: 1.662 MB / 0.7895 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001579/0.3137, allocations: 0.7455 MB / 0.7902 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.3139, allocations: 4 kB / 0.7902 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.3142, allocations: 71.75 kB / 0.7903 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001823/0.3144, allocations: 83.69 kB / 0.7904 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006832/0.3151, allocations: 163.1 kB / 0.7905 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003851/0.3155, allocations: 243.4 kB / 0.7908 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001918/0.3157, allocations: 69.81 kB / 0.7908 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/0.3159, allocations: 87.62 kB / 0.7909 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002459/0.3161, allocations: 131.5 kB / 0.791 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.51e-05/0.3162, allocations: 8 kB / 0.791 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001693/0.3164, allocations: 79.92 kB / 0.7911 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.3165, allocations: 43.78 kB / 0.7912 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.3166, allocations: 113 kB / 0.7913 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004638/0.3171, allocations: 279 kB / 0.7915 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/0.3171, allocations: 3.938 kB / 0.7915 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.566e-06/0.3171, allocations: 0 / 0.7915 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.221e-05/0.3171, allocations: 0 / 0.7915 GB, free: 7.789 MB / 0.6075 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.001025/0.3182, allocations: 0.5508 MB / 0.7921 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.3182, allocations: 8.031 kB / 0.7921 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.6e-05/0.3183, allocations: 32.56 kB / 0.7921 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005169/0.3189, allocations: 306.9 kB / 0.7924 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/0.3189, allocations: 12.38 kB / 0.7924 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.351e-05/0.3189, allocations: 12.38 kB / 0.7924 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004588/0.3194, allocations: 239.2 kB / 0.7927 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.3194, allocations: 0 / 0.7927 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.448e-05/0.3195, allocations: 4 kB / 0.7927 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.3195, allocations: 7.938 kB / 0.7927 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002775/0.3198, allocations: 128.4 kB / 0.7928 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009874/0.3208, allocations: 0.6924 MB / 0.7935 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003726/0.3211, allocations: 178.6 kB / 0.7936 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001794/0.3213, allocations: 104.8 kB / 0.7937 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.3214, allocations: 8.016 kB / 0.7938 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003302/0.3217, allocations: 169 kB / 0.7939 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.3217, allocations: 0 / 0.7939 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.0008311/0.3225, allocations: 382.9 kB / 0.7943 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.3227, allocations: 136.5 kB / 0.7944 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003346/0.323, allocations: 282.5 kB / 0.7947 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.3231, allocations: 33.7 kB / 0.7947 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.3232, allocations: 160.3 kB / 0.7949 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.99e-05/0.3233, allocations: 43.36 kB / 0.7949 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-05/0.3233, allocations: 25.72 kB / 0.7949 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002421/0.3236, allocations: 334.8 kB / 0.7952 GB, free: 3.715 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.3238, allocations: 95.89 kB / 0.7953 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.324, allocations: 133.1 kB / 0.7955 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000371/0.3244, allocations: 253.7 kB / 0.7957 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3244, allocations: 0 / 0.7957 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000523/0.3249, allocations: 338.9 kB / 0.796 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.952e-05/0.325, allocations: 41.69 kB / 0.7961 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.325, allocations: 96 / 0.7961 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.325, allocations: 8 kB / 0.7961 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.3252, allocations: 23.98 kB / 0.7961 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3252, allocations: 0 / 0.7961 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001347/0.3253, allocations: 31.86 kB / 0.7961 GB, free: 2.75 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.3253, allocations: 11.94 kB / 0.7961 GB, free: 2.738 MB / 0.6075 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.0001928/0.3255, allocations: 204.2 kB / 0.7963 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.747e-05/0.3256, allocations: 27.7 kB / 0.7964 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.97e-05/0.3256, allocations: 29.83 kB / 0.7964 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3257, allocations: 0 / 0.7964 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3257, allocations: 0 / 0.7964 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.3257, allocations: 0 / 0.7964 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002796/0.326, allocations: 297.3 kB / 0.7967 GB, free: 2.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.326, allocations: 0 / 0.7967 GB, free: 2.129 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.3261, allocations: 19.98 kB / 0.7967 GB, free: 2.109 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.3261, allocations: 4 kB / 0.7967 GB, free: 2.105 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.3261, allocations: 4 kB / 0.7967 GB, free: 2.102 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3261, allocations: 4 kB / 0.7967 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3261, allocations: 0 / 0.7967 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008028/0.3269, allocations: 485.7 kB / 0.7972 GB, free: 1.602 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.69e-05/0.327, allocations: 100.8 kB / 0.7973 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.228e-05/0.3271, allocations: 8 kB / 0.7973 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.3272, allocations: 15.98 kB / 0.7973 GB, free: 1.461 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.021e-05/0.3273, allocations: 27.95 kB / 0.7973 GB, free: 1.434 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.127e-05/0.3273, allocations: 4 kB / 0.7973 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000204/0.3275, allocations: 210 kB / 0.7975 GB, free: 1.223 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.11e-07/0.3275, allocations: 0 / 0.7975 GB, free: 1.223 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002923/0.3278, allocations: 56.03 kB / 0.7976 GB, free: 1.168 MB / 0.6075 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.0002438/0.3281, allocations: 143.1 kB / 0.7977 GB, free: 1.02 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004778/0.3286, allocations: 295.4 kB / 0.798 GB, free: 0.7188 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3286, allocations: 0 / 0.798 GB, free: 0.7188 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002353/0.3288, allocations: 187.4 kB / 0.7982 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.3291, allocations: 35.34 kB / 0.7982 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.3302, allocations: 0.5378 MB / 0.7987 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.3306, allocations: 0.7595 MB / 0.7995 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 8.794e-05/0.3307, allocations: 17.83 kB / 0.7995 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.318e-05/0.3307, allocations: 15.44 kB / 0.7995 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of SimCode: time 3.4e-07/0.3307, allocations: 0 / 0.7995 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of Templates: time 0.006428/0.3372, allocations: 2.523 MB / 0.802 GB, free: 12.6 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) Environment - environmentSimulation: