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.001607/0.001607, allocations: 102 kB / 16.27 MB, free: 5.855 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.001297/0.001297, allocations: 185.4 kB / 17.19 MB, free: 5.504 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.408/1.408, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002485/0.002485, allocations: 278.3 kB / 291.3 MB, free: 14.55 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.193/1.193, allocations: 178.5 MB / 0.5079 GB, free: 12.76 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002743/0.002743, allocations: 99.84 kB / 0.6071 GB, free: 9.316 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2033/0.2061, allocations: 89.13 MB / 0.6941 GB, free: 100 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003569/0.2097, allocations: 1.953 MB / 0.6961 GB, free: 14.12 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001291/0.211, allocations: 0.7016 MB / 0.6967 GB, free: 13.41 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.955e-05/0.2111, allocations: 7.938 kB / 0.6967 GB, free: 13.41 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002313/0.2114, allocations: 79.72 kB / 0.6968 GB, free: 13.33 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001299/0.2115, allocations: 91.56 kB / 0.6969 GB, free: 13.24 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005694/0.2121, allocations: 184.5 kB / 0.6971 GB, free: 13.06 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003231/0.2124, allocations: 267.2 kB / 0.6973 GB, free: 12.8 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.2126, allocations: 73.83 kB / 0.6974 GB, free: 12.73 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.2127, allocations: 123.6 kB / 0.6975 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001992/0.2129, allocations: 147.5 kB / 0.6977 GB, free: 12.46 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.818e-05/0.213, allocations: 20 kB / 0.6977 GB, free: 12.45 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.2132, allocations: 91.92 kB / 0.6978 GB, free: 12.36 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.588e-05/0.2133, allocations: 55.77 kB / 0.6978 GB, free: 12.3 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.2134, allocations: 115.3 kB / 0.6979 GB, free: 12.19 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003591/0.2137, allocations: 295.1 kB / 0.6982 GB, free: 11.9 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2138, allocations: 4 kB / 0.6982 GB, free: 11.89 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2138, allocations: 0 / 0.6982 GB, free: 11.89 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.594e-06/0.2138, allocations: 0 / 0.6982 GB, free: 11.89 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.000923/0.2147, allocations: 0.578 MB / 0.6988 GB, free: 11.26 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2147, allocations: 8.031 kB / 0.6988 GB, free: 11.25 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.547e-05/0.2148, allocations: 32.56 kB / 0.6988 GB, free: 11.22 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.2153, allocations: 298.9 kB / 0.6991 GB, free: 10.89 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.2153, allocations: 12.38 kB / 0.6991 GB, free: 10.88 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.558e-05/0.2154, allocations: 12.38 kB / 0.6991 GB, free: 10.87 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004458/0.2158, allocations: 235.2 kB / 0.6994 GB, free: 10.62 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.2159, allocations: 4 kB / 0.6994 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.494e-05/0.2159, allocations: 7.938 kB / 0.6994 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.2159, allocations: 7.938 kB / 0.6994 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002836/0.2162, allocations: 128.3 kB / 0.6995 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.2173, allocations: 0.6886 MB / 0.7002 GB, free: 9.727 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004188/0.2177, allocations: 178.4 kB / 0.7003 GB, free: 9.543 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.2179, allocations: 96.95 kB / 0.7004 GB, free: 9.445 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.2179, allocations: 4 kB / 0.7004 GB, free: 9.441 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003774/0.2183, allocations: 173 kB / 0.7006 GB, free: 9.254 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.2183, allocations: 0 / 0.7006 GB, free: 9.254 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0007489/0.2191, allocations: 377.5 kB / 0.701 GB, free: 8.875 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.2192, allocations: 136.5 kB / 0.7011 GB, free: 8.711 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003274/0.2195, allocations: 278.6 kB / 0.7014 GB, free: 8.43 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.755e-05/0.2196, allocations: 33.7 kB / 0.7014 GB, free: 8.391 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.2197, allocations: 152.3 kB / 0.7015 GB, free: 8.238 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.874e-05/0.2198, allocations: 43.36 kB / 0.7016 GB, free: 8.195 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.556e-05/0.2199, allocations: 41.7 kB / 0.7016 GB, free: 8.148 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000192/0.2201, allocations: 338.8 kB / 0.7019 GB, free: 7.809 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.2202, allocations: 91.89 kB / 0.702 GB, free: 7.719 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002065/0.2204, allocations: 129.9 kB / 0.7022 GB, free: 7.578 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003707/0.2208, allocations: 253.5 kB / 0.7024 GB, free: 7.309 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2208, allocations: 0 / 0.7024 GB, free: 7.309 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005239/0.2214, allocations: 330.9 kB / 0.7027 GB, free: 6.973 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.659e-05/0.2214, allocations: 41.69 kB / 0.7028 GB, free: 6.926 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.2214, allocations: 0 / 0.7028 GB, free: 6.926 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.2215, allocations: 8.094 kB / 0.7028 GB, free: 6.918 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.2216, allocations: 19.98 kB / 0.7028 GB, free: 6.898 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.2216, allocations: 0 / 0.7028 GB, free: 6.898 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.2217, allocations: 35.7 kB / 0.7028 GB, free: 6.863 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.2218, allocations: 8 kB / 0.7028 GB, free: 6.855 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.0002047/0.222, allocations: 191 kB / 0.703 GB, free: 6.656 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.521e-05/0.222, allocations: 27.72 kB / 0.703 GB, free: 6.629 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.897e-05/0.2221, allocations: 29.84 kB / 0.7031 GB, free: 6.594 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2221, allocations: 0 / 0.7031 GB, free: 6.594 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.2221, allocations: 3.984 kB / 0.7031 GB, free: 6.59 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.2221, allocations: 0 / 0.7031 GB, free: 6.59 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.2224, allocations: 297.3 kB / 0.7033 GB, free: 6.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2224, allocations: 3.984 kB / 0.7033 GB, free: 6.246 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.2225, allocations: 12 kB / 0.7034 GB, free: 6.234 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2225, allocations: 3.938 kB / 0.7034 GB, free: 6.23 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.964e-05/0.2226, allocations: 8.078 kB / 0.7034 GB, free: 6.223 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2226, allocations: 3.938 kB / 0.7034 GB, free: 6.219 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2226, allocations: 4 kB / 0.7034 GB, free: 6.215 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007609/0.2233, allocations: 458.3 kB / 0.7038 GB, free: 5.742 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.45e-05/0.2234, allocations: 104.8 kB / 0.7039 GB, free: 5.621 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.091e-05/0.2235, allocations: 8 kB / 0.7039 GB, free: 5.613 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.2236, allocations: 11.98 kB / 0.7039 GB, free: 5.602 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.094e-05/0.2237, allocations: 28.03 kB / 0.704 GB, free: 5.574 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.2237, allocations: 11.94 kB / 0.704 GB, free: 5.562 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000211/0.2239, allocations: 205.9 kB / 0.7042 GB, free: 5.363 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2239, allocations: 0 / 0.7042 GB, free: 5.363 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002685/0.2242, allocations: 52.03 kB / 0.7042 GB, free: 5.312 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.000208/0.2244, allocations: 135.2 kB / 0.7043 GB, free: 5.172 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005091/0.2249, allocations: 295.2 kB / 0.7046 GB, free: 4.871 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2249, allocations: 0 / 0.7046 GB, free: 4.871 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.2252, allocations: 191.3 kB / 0.7048 GB, free: 4.672 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002962/0.2255, allocations: 38.95 kB / 0.7048 GB, free: 4.633 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.2265, allocations: 0.4988 MB / 0.7053 GB, free: 4.102 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.227, allocations: 0.7553 MB / 0.7061 GB, free: 3.32 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.259e-05/0.227, allocations: 23.44 kB / 0.7061 GB, free: 3.297 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.227, allocations: 0 / 0.7061 GB, free: 3.297 MB / 0.545 GB Notification: Performance of Templates: time 0.005578/0.2326, allocations: 2.997 MB / 0.709 GB, free: 316 kB / 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)