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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.719/1.719, allocations: 292.3 MB / 308.1 MB, free: 4.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001455/0.001455, allocations: 189 kB / 376.9 MB, free: 1.832 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.686/1.686, allocations: 205 MB / 0.6354 GB, free: 9.797 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009764/0.0009764, allocations: 100 kB / 0.748 GB, free: 61.03 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 51.92 kB / 0.8704 GB, free: 13.12 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2877, allocations: 114.5 MB / 0.9822 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003455/0.2912, allocations: 2.015 MB / 0.9842 GB, free: 8.375 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001274/0.2925, allocations: 0.7648 MB / 0.9849 GB, free: 7.602 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.2927, allocations: 4 kB / 0.9849 GB, free: 7.598 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.293, allocations: 75.78 kB / 0.985 GB, free: 7.523 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.2931, allocations: 79.69 kB / 0.9851 GB, free: 7.445 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005422/0.2937, allocations: 155.8 kB / 0.9852 GB, free: 7.293 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.294, allocations: 243.4 kB / 0.9855 GB, free: 7.055 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.2942, allocations: 69.81 kB / 0.9855 GB, free: 6.988 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.2943, allocations: 103.6 kB / 0.9856 GB, free: 6.887 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.2945, allocations: 135.5 kB / 0.9858 GB, free: 6.754 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/0.2946, allocations: 12 kB / 0.9858 GB, free: 6.742 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001416/0.2947, allocations: 79.92 kB / 0.9858 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 7.551e-05/0.2948, allocations: 51.78 kB / 0.9859 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.2949, allocations: 95.33 kB / 0.986 GB, free: 6.52 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0003101/0.2952, allocations: 291.1 kB / 0.9863 GB, free: 6.234 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2953, allocations: 0 / 0.9863 GB, free: 6.234 MB / 0.7136 GB Notification: Performance of FrontEnd: time 8.42e-07/0.2953, allocations: 0 / 0.9863 GB, free: 6.234 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.2953, allocations: 0 / 0.9863 GB, free: 6.234 MB / 0.7136 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.0009253/0.2962, allocations: 0.5857 MB / 0.9868 GB, free: 5.594 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2963, allocations: 12.03 kB / 0.9868 GB, free: 5.582 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.626e-05/0.2963, allocations: 24.66 kB / 0.9869 GB, free: 5.559 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004561/0.2968, allocations: 298.8 kB / 0.9871 GB, free: 5.23 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.2969, allocations: 12.38 kB / 0.9872 GB, free: 5.219 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.671e-05/0.2969, allocations: 20.36 kB / 0.9872 GB, free: 5.199 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004034/0.2973, allocations: 231.2 kB / 0.9874 GB, free: 4.953 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2973, allocations: 0 / 0.9874 GB, free: 4.953 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.034e-05/0.2974, allocations: 8 kB / 0.9874 GB, free: 4.945 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.2974, allocations: 4 kB / 0.9874 GB, free: 4.941 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002855/0.2977, allocations: 132.3 kB / 0.9875 GB, free: 4.812 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008487/0.2985, allocations: 0.6847 MB / 0.9882 GB, free: 4.07 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003424/0.2989, allocations: 170.4 kB / 0.9884 GB, free: 3.895 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.299, allocations: 101 kB / 0.9885 GB, free: 3.793 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.2991, allocations: 0 / 0.9885 GB, free: 3.793 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003064/0.2994, allocations: 169 kB / 0.9886 GB, free: 3.609 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.2994, allocations: 0 / 0.9886 GB, free: 3.609 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15): time 0.000638/0.3, allocations: 374.9 kB / 0.989 GB, free: 3.23 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.74e-05/0.3001, allocations: 132.5 kB / 0.9891 GB, free: 3.07 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.3004, allocations: 290.6 kB / 0.9894 GB, free: 2.777 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.3004, allocations: 29.7 kB / 0.9894 GB, free: 2.742 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.3005, allocations: 156.2 kB / 0.9896 GB, free: 2.582 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.063e-05/0.3006, allocations: 51.44 kB / 0.9896 GB, free: 2.531 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.3007, allocations: 37.7 kB / 0.9897 GB, free: 2.488 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.3008, allocations: 334.8 kB / 0.99 GB, free: 2.152 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.301, allocations: 91.89 kB / 0.9901 GB, free: 2.062 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.3012, allocations: 133 kB / 0.9902 GB, free: 1.914 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003218/0.3015, allocations: 241.2 kB / 0.9904 GB, free: 1.656 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.3015, allocations: 4 kB / 0.9904 GB, free: 1.652 MB / 0.7136 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004634/0.302, allocations: 335 kB / 0.9907 GB, free: 1.312 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.302, allocations: 40.19 kB / 0.9908 GB, free: 1.27 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.302, allocations: 0 / 0.9908 GB, free: 1.27 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.3021, allocations: 4 kB / 0.9908 GB, free: 1.266 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.3022, allocations: 23.98 kB / 0.9908 GB, free: 1.242 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.3022, allocations: 7.938 kB / 0.9908 GB, free: 1.234 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.3023, allocations: 23.73 kB / 0.9908 GB, free: 1.211 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.3024, allocations: 12 kB / 0.9908 GB, free: 1.199 MB / 0.7136 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.0001572/0.3025, allocations: 202.8 kB / 0.991 GB, free: 0.9883 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.328e-05/0.3026, allocations: 23.72 kB / 0.9911 GB, free: 0.9648 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.09e-05/0.3026, allocations: 25.83 kB / 0.9911 GB, free: 0.9375 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.3026, allocations: 4 kB / 0.9911 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3026, allocations: 96 / 0.9911 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3026, allocations: 3.938 kB / 0.9911 GB, free: 0.9297 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000226/0.3029, allocations: 289.4 kB / 0.9914 GB, free: 0.5977 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3029, allocations: 0 / 0.9914 GB, free: 0.5977 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.814e-05/0.303, allocations: 19.94 kB / 0.9914 GB, free: 0.5781 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.303, allocations: 7.984 kB / 0.9914 GB, free: 0.5703 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.303, allocations: 4 kB / 0.9914 GB, free: 0.5664 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.303, allocations: 0 / 0.9914 GB, free: 0.5664 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.303, allocations: 0 / 0.9914 GB, free: 0.5664 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003841/0.3069, allocations: 2.97 MB / 0.9943 GB, free: 13.41 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.576e-05/0.307, allocations: 100.8 kB / 0.9944 GB, free: 13.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.385e-05/0.307, allocations: 11.94 kB / 0.9944 GB, free: 13.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.3071, allocations: 15.98 kB / 0.9944 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.409e-05/0.3072, allocations: 23.97 kB / 0.9944 GB, free: 13.25 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.3072, allocations: 15.92 kB / 0.9945 GB, free: 13.23 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001627/0.3074, allocations: 198 kB / 0.9947 GB, free: 13.04 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3074, allocations: 0 / 0.9947 GB, free: 13.04 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003439/0.3078, allocations: 76.09 kB / 0.9947 GB, free: 12.96 MB / 0.7292 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.0001775/0.3079, allocations: 143.1 kB / 0.9949 GB, free: 12.82 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004296/0.3084, allocations: 295.2 kB / 0.9951 GB, free: 12.52 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3084, allocations: 0 / 0.9951 GB, free: 12.52 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002135/0.3086, allocations: 183.3 kB / 0.9953 GB, free: 12.32 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.3089, allocations: 34.28 kB / 0.9953 GB, free: 12.29 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.31, allocations: 0.7472 MB / 0.9961 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/0.3103, allocations: 0.7557 MB / 0.9968 GB, free: 10.71 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 8.431e-05/0.3104, allocations: 13.55 kB / 0.9968 GB, free: 10.7 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.813e-05/0.3104, allocations: 23.42 kB / 0.9969 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of SimCode: time 2.5e-07/0.3104, allocations: 4 kB / 0.9969 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of Templates: time 0.005842/0.3163, allocations: 3.042 MB / 0.9998 GB, free: 7.648 MB / 0.7292 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 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)