Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.619/2.619, allocations: 287.5 MB / 302.4 MB, free: 8.375 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.001327/0.001326, allocations: 183.3 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.209/2.209, allocations: 205.4 MB / 0.6297 GB, free: 10.58 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009279/0.0009277, allocations: 89.28 kB / 0.743 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006479/0.0006481, allocations: 11.84 kB / 0.8659 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2242, allocations: 115.3 MB / 0.9785 GB, free: 28.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00241/0.2266, allocations: 1.619 MB / 0.98 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001557/0.2282, allocations: 0.7026 MB / 0.9807 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.2284, allocations: 0 / 0.9807 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002301/0.2287, allocations: 75.77 kB / 0.9808 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001387/0.2288, allocations: 79.7 kB / 0.9809 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000648/0.2295, allocations: 133 kB / 0.981 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002827/0.2298, allocations: 215.5 kB / 0.9812 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.2299, allocations: 53.64 kB / 0.9813 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001366/0.2301, allocations: 87.62 kB / 0.9813 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001945/0.2303, allocations: 123.5 kB / 0.9815 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.69e-05/0.2304, allocations: 8 kB / 0.9815 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001751/0.2305, allocations: 71.94 kB / 0.9815 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.381e-05/0.2306, allocations: 39.83 kB / 0.9816 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.694e-05/0.2307, allocations: 57.58 kB / 0.9816 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002888/0.231, allocations: 223.5 kB / 0.9818 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.231, allocations: 0 / 0.9818 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.074e-06/0.231, allocations: 0 / 0.9818 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.702e-06/0.231, allocations: 4 kB / 0.9818 GB, free: 24.76 MB / 0.6198 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.00099/0.232, allocations: 0.5468 MB / 0.9824 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.2321, allocations: 12.02 kB / 0.9824 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.718e-05/0.2322, allocations: 54.55 kB / 0.9824 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.193e-05/0.2322, allocations: 35.58 kB / 0.9825 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005786/0.2328, allocations: 293.6 kB / 0.9828 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.017e-05/0.2329, allocations: 8 kB / 0.9828 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.26e-05/0.2329, allocations: 16 kB / 0.9828 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005049/0.2335, allocations: 231.1 kB / 0.983 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.2335, allocations: 0 / 0.983 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.865e-05/0.2335, allocations: 7.938 kB / 0.983 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.2335, allocations: 4 kB / 0.983 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003614/0.2339, allocations: 140.4 kB / 0.9831 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.2349, allocations: 0.6924 MB / 0.9838 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005655/0.2355, allocations: 174.7 kB / 0.984 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/0.2358, allocations: 104.8 kB / 0.9841 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.2358, allocations: 4 kB / 0.9841 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003937/0.2362, allocations: 173 kB / 0.9843 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=15): time 3.046e-06/0.2362, allocations: 0 / 0.9843 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15): time 0.0009662/0.2372, allocations: 380.9 kB / 0.9846 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.2373, allocations: 140.5 kB / 0.9848 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003373/0.2376, allocations: 290.5 kB / 0.985 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.2377, allocations: 33.7 kB / 0.9851 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.2378, allocations: 152.3 kB / 0.9852 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.847e-05/0.2379, allocations: 47.36 kB / 0.9853 GB, free: 21 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.444e-05/0.2379, allocations: 0 / 0.9853 GB, free: 21 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.293e-05/0.238, allocations: 338.8 kB / 0.9856 GB, free: 20.66 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002458/0.2382, allocations: 92.14 kB / 0.9857 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002722/0.2385, allocations: 129.5 kB / 0.9858 GB, free: 20.42 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/0.2388, allocations: 121.6 kB / 0.9859 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.2388, allocations: 0 / 0.9859 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007624/0.2396, allocations: 335.8 kB / 0.9862 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.439e-05/0.2396, allocations: 41.8 kB / 0.9863 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.2397, allocations: 4 kB / 0.9863 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.347e-05/0.2397, allocations: 0 / 0.9863 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002075/0.2399, allocations: 27.92 kB / 0.9863 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.639e-06/0.2399, allocations: 3.984 kB / 0.9863 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/0.2402, allocations: 27.84 kB / 0.9863 GB, free: 19.85 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.2402, allocations: 11.98 kB / 0.9863 GB, free: 19.84 MB / 0.6198 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002099/0.2404, allocations: 193.9 kB / 0.9865 GB, free: 19.63 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.885e-05/0.2405, allocations: 27.72 kB / 0.9865 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.342e-05/0.2405, allocations: 29.83 kB / 0.9866 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.2406, allocations: 0 / 0.9866 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2406, allocations: 0 / 0.9866 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.2406, allocations: 3.984 kB / 0.9866 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002818/0.2409, allocations: 293.3 kB / 0.9869 GB, free: 19.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.2409, allocations: 4 kB / 0.9869 GB, free: 19.24 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001685/0.2411, allocations: 23.92 kB / 0.9869 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.2411, allocations: 96 / 0.9869 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/0.2411, allocations: 11.92 kB / 0.9869 GB, free: 19.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.2411, allocations: 0 / 0.9869 GB, free: 19.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.2412, allocations: 0 / 0.9869 GB, free: 19.2 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009861/0.2421, allocations: 478.3 kB / 0.9874 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.61e-05/0.2422, allocations: 104.8 kB / 0.9875 GB, free: 18.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.124e-05/0.2423, allocations: 11.98 kB / 0.9875 GB, free: 18.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.2425, allocations: 15.98 kB / 0.9875 GB, free: 18.56 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.2426, allocations: 23.95 kB / 0.9875 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.027e-05/0.2426, allocations: 8.062 kB / 0.9875 GB, free: 18.53 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002235/0.2429, allocations: 205.9 kB / 0.9877 GB, free: 18.33 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.61e-07/0.2429, allocations: 0 / 0.9877 GB, free: 18.33 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000389/0.2433, allocations: 59.97 kB / 0.9878 GB, free: 18.27 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001322/0.2446, allocations: 1.035 MB / 0.9888 GB, free: 17.2 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006723/0.2453, allocations: 304.2 kB / 0.9891 GB, free: 16.89 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2453, allocations: 0 / 0.9891 GB, free: 16.89 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003153/0.2457, allocations: 187.3 kB / 0.9892 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/0.2461, allocations: 29.58 kB / 0.9893 GB, free: 16.67 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00353/0.2496, allocations: 1.658 MB / 0.9909 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.2499, allocations: 0.7477 MB / 0.9916 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001483/0.2501, allocations: 21.55 kB / 0.9916 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.2503, allocations: 71.41 kB / 0.9917 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of SimCode: time 1.292e-06/0.2503, allocations: 0 / 0.9917 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03154/0.2818, allocations: 4.88 MB / 0.9965 GB, free: 9.359 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002597/0.2822, allocations: 196.7 kB / 0.9967 GB, free: 9.117 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.716/2.998, allocations: 0 / 0.9967 GB, free: 9.117 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)