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.001265/0.001265, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001059/0.001059, allocations: 196.5 kB / 16.25 MB, free: 6.625 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.393/1.393, allocations: 222.9 MB / 239.9 MB, free: 4.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002151/0.00215, allocations: 287 kB / 290.4 MB, free: 2.074 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9886/0.9886, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 91.77 kB / 0.5947 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1961, allocations: 86.99 MB / 0.6796 GB, free: 1.047 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003937/0.2001, allocations: 1.994 MB / 0.6816 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.2018, allocations: 0.6967 MB / 0.6823 GB, free: 14.35 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003079/0.2022, allocations: 4 kB / 0.6823 GB, free: 14.35 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003661/0.2025, allocations: 72.52 kB / 0.6823 GB, free: 14.28 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002244/0.2028, allocations: 90.81 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008497/0.2037, allocations: 163.8 kB / 0.6826 GB, free: 14.03 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004844/0.2042, allocations: 261.5 kB / 0.6828 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/0.2044, allocations: 73.75 kB / 0.6829 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002252/0.2046, allocations: 116.3 kB / 0.683 GB, free: 13.6 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002378/0.2049, allocations: 152.8 kB / 0.6831 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.261e-05/0.2049, allocations: 20 kB / 0.6832 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001888/0.2051, allocations: 95.92 kB / 0.6833 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.2053, allocations: 56.58 kB / 0.6833 GB, free: 13.28 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.2054, allocations: 107.3 kB / 0.6834 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004895/0.2059, allocations: 299.1 kB / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.2059, allocations: 0 / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.2059, allocations: 0 / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.206, allocations: 4 kB / 0.6837 GB, free: 12.88 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.001146/0.2071, allocations: 0.5779 MB / 0.6843 GB, free: 12.25 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.028e-05/0.2072, allocations: 12.03 kB / 0.6843 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.2073, allocations: 32.56 kB / 0.6843 GB, free: 12.2 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005205/0.2079, allocations: 298.9 kB / 0.6846 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.899e-05/0.2079, allocations: 12.38 kB / 0.6846 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.627e-05/0.2079, allocations: 12.38 kB / 0.6846 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004215/0.2084, allocations: 228.1 kB / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.2084, allocations: 0 / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.312e-05/0.2084, allocations: 11.94 kB / 0.6848 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.2084, allocations: 0 / 0.6848 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002477/0.2087, allocations: 128.4 kB / 0.685 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000894/0.2096, allocations: 0.6924 MB / 0.6856 GB, free: 10.72 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003541/0.2099, allocations: 174.6 kB / 0.6858 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.2101, allocations: 104.8 kB / 0.6859 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.2101, allocations: 0 / 0.6859 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000341/0.2105, allocations: 165.1 kB / 0.6861 GB, free: 10.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.2105, allocations: 4 kB / 0.6861 GB, free: 10.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006614/0.2112, allocations: 372.8 kB / 0.6864 GB, free: 9.875 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.339e-05/0.2113, allocations: 140.4 kB / 0.6866 GB, free: 9.707 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.2115, allocations: 282.6 kB / 0.6868 GB, free: 9.426 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.2116, allocations: 33.69 kB / 0.6869 GB, free: 9.387 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.2117, allocations: 152.3 kB / 0.687 GB, free: 9.234 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.2117, allocations: 39.45 kB / 0.687 GB, free: 9.195 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.25e-05/0.2118, allocations: 45.61 kB / 0.6871 GB, free: 9.145 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.2119, allocations: 338.8 kB / 0.6874 GB, free: 8.805 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.2121, allocations: 87.91 kB / 0.6875 GB, free: 8.719 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.2123, allocations: 129.1 kB / 0.6876 GB, free: 8.574 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.2126, allocations: 244.9 kB / 0.6879 GB, free: 8.312 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2127, allocations: 3.938 kB / 0.6879 GB, free: 8.309 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004748/0.2131, allocations: 333.8 kB / 0.6882 GB, free: 7.973 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.83e-05/0.2132, allocations: 37.8 kB / 0.6882 GB, free: 7.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.279e-06/0.2132, allocations: 0 / 0.6882 GB, free: 7.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.2132, allocations: 4 kB / 0.6882 GB, free: 7.926 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.2134, allocations: 27.92 kB / 0.6882 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.2134, allocations: 4 kB / 0.6882 GB, free: 7.895 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.2135, allocations: 19.83 kB / 0.6883 GB, free: 7.875 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.2135, allocations: 15.98 kB / 0.6883 GB, free: 7.859 MB / 494.1 MB 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.0001765/0.2137, allocations: 200.7 kB / 0.6885 GB, free: 7.648 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.076e-05/0.2138, allocations: 27.72 kB / 0.6885 GB, free: 7.621 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.403e-05/0.2138, allocations: 25.83 kB / 0.6885 GB, free: 7.598 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.2138, allocations: 0 / 0.6885 GB, free: 7.598 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.2138, allocations: 0 / 0.6885 GB, free: 7.598 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2138, allocations: 7.938 kB / 0.6885 GB, free: 7.59 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000248/0.2141, allocations: 293.3 kB / 0.6888 GB, free: 7.254 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.2141, allocations: 0 / 0.6888 GB, free: 7.254 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.2142, allocations: 19.98 kB / 0.6888 GB, free: 7.234 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2142, allocations: 0 / 0.6888 GB, free: 7.234 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.2142, allocations: 8 kB / 0.6888 GB, free: 7.227 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.2143, allocations: 0 / 0.6888 GB, free: 7.227 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.2143, allocations: 3.984 kB / 0.6888 GB, free: 7.223 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006783/0.2149, allocations: 464.4 kB / 0.6893 GB, free: 6.746 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.911e-05/0.215, allocations: 100.8 kB / 0.6894 GB, free: 6.629 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.422e-05/0.2151, allocations: 11.98 kB / 0.6894 GB, free: 6.617 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.2152, allocations: 12.06 kB / 0.6894 GB, free: 6.605 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.765e-05/0.2153, allocations: 27.95 kB / 0.6894 GB, free: 6.578 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.2153, allocations: 4 kB / 0.6894 GB, free: 6.574 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001822/0.2155, allocations: 205.9 kB / 0.6896 GB, free: 6.375 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2155, allocations: 0 / 0.6896 GB, free: 6.375 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002814/0.2158, allocations: 55.91 kB / 0.6897 GB, free: 6.32 MB / 494.1 MB 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.0002/0.216, allocations: 135.3 kB / 0.6898 GB, free: 6.18 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004792/0.2165, allocations: 299.2 kB / 0.6901 GB, free: 5.875 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.2165, allocations: 0 / 0.6901 GB, free: 5.875 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002258/0.2167, allocations: 187.3 kB / 0.6903 GB, free: 5.68 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.217, allocations: 38.66 kB / 0.6903 GB, free: 5.641 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.2181, allocations: 0.5367 MB / 0.6908 GB, free: 5.074 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.2184, allocations: 0.7514 MB / 0.6916 GB, free: 4.297 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.112e-05/0.2185, allocations: 21.55 kB / 0.6916 GB, free: 4.277 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.748e-05/0.2186, allocations: 19.44 kB / 0.6916 GB, free: 4.258 MB / 494.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2186, allocations: 0 / 0.6916 GB, free: 4.258 MB / 494.1 MB Notification: Performance of Templates: time 0.0065/0.2251, allocations: 2.661 MB / 0.6942 GB, free: 1.617 MB / 494.1 MB 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)