Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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: translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001569/0.001569, allocations: 108 kB / 15.99 MB, free: 6.359 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.001823/0.001823, allocations: 191.5 kB / 16.91 MB, free: 6.195 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.434/1.434, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002578/0.002578, allocations: 295.4 kB / 291 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.294/1.294, allocations: 178.6 MB / 0.5076 GB, free: 12.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00271/0.00271, allocations: 96.22 kB / 0.6066 GB, free: 9.629 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.224, allocations: 89.14 MB / 0.6936 GB, free: 408 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003534/0.2276, allocations: 1.999 MB / 0.6956 GB, free: 14.38 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001253/0.2289, allocations: 0.6938 MB / 0.6963 GB, free: 13.68 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.812e-05/0.229, allocations: 3.938 kB / 0.6963 GB, free: 13.67 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.2293, allocations: 75.77 kB / 0.6963 GB, free: 13.6 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.2294, allocations: 79.7 kB / 0.6964 GB, free: 13.52 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005617/0.23, allocations: 171.6 kB / 0.6966 GB, free: 13.36 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003281/0.2303, allocations: 267.2 kB / 0.6968 GB, free: 13.09 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.2305, allocations: 69.81 kB / 0.6969 GB, free: 13.03 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.2307, allocations: 115.7 kB / 0.697 GB, free: 12.91 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.2309, allocations: 155.5 kB / 0.6972 GB, free: 12.76 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.743e-05/0.2309, allocations: 20 kB / 0.6972 GB, free: 12.74 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.2311, allocations: 87.94 kB / 0.6973 GB, free: 12.66 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 9.126e-05/0.2312, allocations: 67.75 kB / 0.6973 GB, free: 12.59 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.2313, allocations: 107.3 kB / 0.6974 GB, free: 12.48 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002827/0.2316, allocations: 223.6 kB / 0.6976 GB, free: 12.27 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.2316, allocations: 4 kB / 0.6976 GB, free: 12.26 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.124e-06/0.2316, allocations: 4 kB / 0.6976 GB, free: 12.26 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.2316, allocations: 0 / 0.6976 GB, free: 12.26 MB / 0.545 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.0008932/0.2325, allocations: 0.5741 MB / 0.6982 GB, free: 11.63 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.2326, allocations: 12.03 kB / 0.6982 GB, free: 11.62 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.761e-05/0.2326, allocations: 32.5 kB / 0.6982 GB, free: 11.59 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004583/0.2331, allocations: 302.9 kB / 0.6985 GB, free: 11.25 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.2331, allocations: 12.38 kB / 0.6985 GB, free: 11.24 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.763e-05/0.2332, allocations: 16.38 kB / 0.6986 GB, free: 11.23 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000409/0.2336, allocations: 223.2 kB / 0.6988 GB, free: 10.98 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.2336, allocations: 4 kB / 0.6988 GB, free: 10.98 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.2336, allocations: 11.98 kB / 0.6988 GB, free: 10.97 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.2337, allocations: 4 kB / 0.6988 GB, free: 10.96 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002514/0.2339, allocations: 128.3 kB / 0.6989 GB, free: 10.84 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008895/0.2348, allocations: 0.6885 MB / 0.6996 GB, free: 10.09 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003637/0.2352, allocations: 170.5 kB / 0.6998 GB, free: 9.918 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.2354, allocations: 96.95 kB / 0.6998 GB, free: 9.82 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.2354, allocations: 0 / 0.6998 GB, free: 9.82 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003394/0.2357, allocations: 177.1 kB / 0.7 GB, free: 9.629 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 3.406e-06/0.2358, allocations: 0 / 0.7 GB, free: 9.629 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0006877/0.2364, allocations: 381.1 kB / 0.7004 GB, free: 9.246 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.54e-05/0.2365, allocations: 132.5 kB / 0.7005 GB, free: 9.086 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002963/0.2368, allocations: 282.6 kB / 0.7008 GB, free: 8.797 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.2369, allocations: 33.64 kB / 0.7008 GB, free: 8.758 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.237, allocations: 156.3 kB / 0.701 GB, free: 8.602 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.372e-05/0.2371, allocations: 47.34 kB / 0.701 GB, free: 8.555 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.36e-05/0.2371, allocations: 41.7 kB / 0.701 GB, free: 8.508 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.2373, allocations: 334.8 kB / 0.7014 GB, free: 8.172 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001705/0.2375, allocations: 91.89 kB / 0.7014 GB, free: 8.082 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.2377, allocations: 136.3 kB / 0.7016 GB, free: 7.934 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000351/0.238, allocations: 245.5 kB / 0.7018 GB, free: 7.672 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.238, allocations: 0 / 0.7018 GB, free: 7.672 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005365/0.2386, allocations: 323 kB / 0.7021 GB, free: 7.344 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/0.2386, allocations: 41.69 kB / 0.7022 GB, free: 7.297 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2387, allocations: 0 / 0.7022 GB, free: 7.297 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.2387, allocations: 4 kB / 0.7022 GB, free: 7.293 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.2388, allocations: 28.11 kB / 0.7022 GB, free: 7.266 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.2388, allocations: 7.938 kB / 0.7022 GB, free: 7.258 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.2389, allocations: 23.83 kB / 0.7022 GB, free: 7.234 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.239, allocations: 8 kB / 0.7022 GB, free: 7.227 MB / 0.545 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.0001921/0.2392, allocations: 192.8 kB / 0.7024 GB, free: 7.027 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.762e-05/0.2392, allocations: 31.66 kB / 0.7024 GB, free: 6.996 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.605e-05/0.2393, allocations: 29.83 kB / 0.7025 GB, free: 6.961 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.2393, allocations: 8 kB / 0.7025 GB, free: 6.953 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2393, allocations: 0 / 0.7025 GB, free: 6.953 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2393, allocations: 0 / 0.7025 GB, free: 6.953 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.2396, allocations: 297.3 kB / 0.7028 GB, free: 6.613 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.2396, allocations: 0 / 0.7028 GB, free: 6.613 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.2397, allocations: 15.98 kB / 0.7028 GB, free: 6.598 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2397, allocations: 3.938 kB / 0.7028 GB, free: 6.594 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.2398, allocations: 8 kB / 0.7028 GB, free: 6.586 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2398, allocations: 0 / 0.7028 GB, free: 6.586 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2398, allocations: 0 / 0.7028 GB, free: 6.586 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007217/0.2405, allocations: 474.3 kB / 0.7032 GB, free: 6.098 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.166e-05/0.2406, allocations: 96.8 kB / 0.7033 GB, free: 5.984 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.118e-05/0.2406, allocations: 8 kB / 0.7033 GB, free: 5.977 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.2407, allocations: 11.98 kB / 0.7033 GB, free: 5.965 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.43e-05/0.2408, allocations: 31.95 kB / 0.7034 GB, free: 5.934 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.2408, allocations: 8.062 kB / 0.7034 GB, free: 5.926 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002033/0.2411, allocations: 202 kB / 0.7036 GB, free: 5.73 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2411, allocations: 0 / 0.7036 GB, free: 5.73 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002705/0.2413, allocations: 56.03 kB / 0.7036 GB, free: 5.676 MB / 0.545 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.0002037/0.2415, allocations: 131.2 kB / 0.7038 GB, free: 5.539 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004923/0.242, allocations: 299.4 kB / 0.704 GB, free: 5.234 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2421, allocations: 0 / 0.704 GB, free: 5.234 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002377/0.2423, allocations: 179.4 kB / 0.7042 GB, free: 5.047 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.2426, allocations: 43.77 kB / 0.7043 GB, free: 5.004 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.2437, allocations: 0.5806 MB / 0.7048 GB, free: 4.391 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003962/0.2441, allocations: 0.7514 MB / 0.7056 GB, free: 3.613 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.483e-05/0.2441, allocations: 23.44 kB / 0.7056 GB, free: 3.59 MB / 0.545 GB Notification: Performance of SimCode: time 2.8e-07/0.2442, allocations: 0 / 0.7056 GB, free: 3.59 MB / 0.545 GB Notification: Performance of Templates: time 0.005366/0.2495, allocations: 2.98 MB / 0.7085 GB, free: 0.6172 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)