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.001388/0.001388, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001326/0.001326, allocations: 190.9 kB / 16.25 MB, free: 6.637 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.442/1.442, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002506/0.002506, allocations: 298.9 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.091/1.091, allocations: 178.6 MB / 0.507 GB, free: 4.738 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002757/0.002757, allocations: 97.34 kB / 0.6059 GB, free: 25.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1966/0.1993, allocations: 89.15 MB / 0.693 GB, free: 4.688 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003839/0.2032, allocations: 2.005 MB / 0.6949 GB, free: 2.676 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.2046, allocations: 0.6906 MB / 0.6956 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.2047, allocations: 4 kB / 0.6956 GB, free: 1.977 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002444/0.205, allocations: 73.39 kB / 0.6957 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000142/0.2051, allocations: 91.69 kB / 0.6958 GB, free: 1.816 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005763/0.2057, allocations: 166.4 kB / 0.6959 GB, free: 1.656 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003279/0.206, allocations: 267.4 kB / 0.6962 GB, free: 1.395 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.2062, allocations: 69.83 kB / 0.6963 GB, free: 1.328 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001456/0.2064, allocations: 119.6 kB / 0.6964 GB, free: 1.211 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.2066, allocations: 151.5 kB / 0.6965 GB, free: 1.062 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.945e-05/0.2066, allocations: 20 kB / 0.6965 GB, free: 1.043 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001575/0.2068, allocations: 87.94 kB / 0.6966 GB, free: 0.957 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.314e-05/0.2069, allocations: 55.83 kB / 0.6967 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.207, allocations: 111.3 kB / 0.6968 GB, free: 0.793 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003939/0.2074, allocations: 299.1 kB / 0.6971 GB, free: 0.5 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2075, allocations: 4 kB / 0.6971 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2075, allocations: 0 / 0.6971 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.2075, allocations: 3.938 kB / 0.6971 GB, free: 0.4922 MB / 494.1 MB 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.0009658/0.2084, allocations: 0.5819 MB / 0.6976 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.2085, allocations: 8.031 kB / 0.6976 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.354e-05/0.2086, allocations: 36.56 kB / 0.6977 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004655/0.2091, allocations: 294.9 kB / 0.698 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.2091, allocations: 12.38 kB / 0.698 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.658e-05/0.2091, allocations: 16.38 kB / 0.698 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004169/0.2096, allocations: 231.2 kB / 0.6982 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.2096, allocations: 0 / 0.6982 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.2096, allocations: 4 kB / 0.6982 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.2096, allocations: 4 kB / 0.6982 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002577/0.2099, allocations: 132.3 kB / 0.6983 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009595/0.2108, allocations: 0.6847 MB / 0.699 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003715/0.2112, allocations: 178.5 kB / 0.6992 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.2114, allocations: 92.83 kB / 0.6993 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.2114, allocations: 4 kB / 0.6993 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000379/0.2118, allocations: 167 kB / 0.6994 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.2118, allocations: 0 / 0.6994 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0007127/0.2125, allocations: 379 kB / 0.6998 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.64e-05/0.2127, allocations: 132.5 kB / 0.6999 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000304/0.213, allocations: 282.6 kB / 0.7002 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/0.213, allocations: 33.7 kB / 0.7002 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.2131, allocations: 160.2 kB / 0.7004 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.682e-05/0.2132, allocations: 43.44 kB / 0.7004 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.168e-05/0.2133, allocations: 37.72 kB / 0.7004 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.2134, allocations: 338.8 kB / 0.7008 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.2136, allocations: 95.89 kB / 0.7009 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.2138, allocations: 126 kB / 0.701 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003389/0.2142, allocations: 248.9 kB / 0.7012 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.2142, allocations: 4 kB / 0.7012 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005038/0.2147, allocations: 330.9 kB / 0.7015 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.371e-05/0.2148, allocations: 33.7 kB / 0.7016 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.2148, allocations: 4.094 kB / 0.7016 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.2148, allocations: 0 / 0.7016 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.2149, allocations: 27.98 kB / 0.7016 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.2149, allocations: 0 / 0.7016 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.2151, allocations: 23.83 kB / 0.7016 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.2151, allocations: 11.94 kB / 0.7016 GB, free: 11.48 MB / 0.4981 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.000233/0.2153, allocations: 191.5 kB / 0.7018 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.307e-05/0.2154, allocations: 31.66 kB / 0.7019 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.051e-05/0.2154, allocations: 29.83 kB / 0.7019 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2155, allocations: 0 / 0.7019 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.2155, allocations: 0 / 0.7019 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.2155, allocations: 3.984 kB / 0.7019 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003267/0.2158, allocations: 301.2 kB / 0.7022 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2158, allocations: 0 / 0.7022 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.841e-05/0.2159, allocations: 15.98 kB / 0.7022 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.2159, allocations: 4 kB / 0.7022 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.216, allocations: 3.938 kB / 0.7022 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.216, allocations: 8 kB / 0.7022 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.216, allocations: 0 / 0.7022 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007256/0.2167, allocations: 460 kB / 0.7026 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.703e-05/0.2168, allocations: 104.8 kB / 0.7027 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.144e-05/0.2168, allocations: 8 kB / 0.7027 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.2169, allocations: 11.98 kB / 0.7028 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.941e-05/0.217, allocations: 28.02 kB / 0.7028 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.2171, allocations: 11.98 kB / 0.7028 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001956/0.2173, allocations: 201.9 kB / 0.703 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2173, allocations: 4 kB / 0.703 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002844/0.2176, allocations: 56.02 kB / 0.703 GB, free: 9.926 MB / 0.4981 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.0002114/0.2178, allocations: 136.8 kB / 0.7032 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005031/0.2183, allocations: 291.2 kB / 0.7035 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.2183, allocations: 4 kB / 0.7035 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002398/0.2186, allocations: 183.3 kB / 0.7036 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.2189, allocations: 40.52 kB / 0.7037 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.22, allocations: 0.5367 MB / 0.7042 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.2203, allocations: 0.7523 MB / 0.7049 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.611e-05/0.2204, allocations: 17.55 kB / 0.7049 GB, free: 7.895 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.241e-05/0.2205, allocations: 23.44 kB / 0.705 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.2205, allocations: 3.938 kB / 0.705 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of Templates: time 0.00632/0.2268, allocations: 2.668 MB / 0.7076 GB, free: 5.227 MB / 0.4981 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)