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 3.322/3.322, allocations: 287.3 MB / 302.3 MB, free: 8.293 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.002281/0.002282, allocations: 179.2 kB / 370.8 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.251/2.251, allocations: 205.4 MB / 0.6295 GB, free: 10.6 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.001094/0.001093, allocations: 89.78 kB / 0.7428 GB, free: 6.609 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005201/0.0005201, allocations: 20.5 kB / 0.8657 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2225, allocations: 115.2 MB / 0.9783 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002437/0.225, allocations: 1.62 MB / 0.9799 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001479/0.2265, allocations: 0.6986 MB / 0.9805 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.2267, allocations: 4 kB / 0.9805 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001766/0.2269, allocations: 71.75 kB / 0.9806 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001871/0.2271, allocations: 83.8 kB / 0.9807 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006764/0.2278, allocations: 129.6 kB / 0.9808 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003211/0.2281, allocations: 151.7 kB / 0.981 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.2283, allocations: 49.66 kB / 0.981 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.2285, allocations: 91.66 kB / 0.9811 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001991/0.2287, allocations: 111.6 kB / 0.9812 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.096e-05/0.2287, allocations: 8 kB / 0.9812 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001836/0.2289, allocations: 67.92 kB / 0.9813 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.774e-05/0.229, allocations: 39.83 kB / 0.9813 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.428e-05/0.2291, allocations: 65.52 kB / 0.9814 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003117/0.2294, allocations: 211.6 kB / 0.9816 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2294, allocations: 0 / 0.9816 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.174e-06/0.2294, allocations: 0 / 0.9816 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.2294, allocations: 0 / 0.9816 GB, free: 24.9 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.001122/0.2306, allocations: 0.5546 MB / 0.9821 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.2306, allocations: 15.95 kB / 0.9821 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.904e-05/0.2307, allocations: 46.55 kB / 0.9822 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.216e-05/0.2308, allocations: 43.58 kB / 0.9822 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000583/0.2314, allocations: 289.6 kB / 0.9825 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.881e-05/0.2314, allocations: 12 kB / 0.9825 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.306e-05/0.2315, allocations: 12 kB / 0.9825 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005097/0.232, allocations: 231.1 kB / 0.9827 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.232, allocations: 0 / 0.9827 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.89e-05/0.2321, allocations: 8 kB / 0.9827 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.2321, allocations: 7.984 kB / 0.9827 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003657/0.2325, allocations: 140.3 kB / 0.9829 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.2335, allocations: 0.6885 MB / 0.9836 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005579/0.2341, allocations: 178.6 kB / 0.9837 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.2342, allocations: 4 kB / 0.9837 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003991/0.2346, allocations: 165 kB / 0.9839 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=15): time 2.896e-06/0.2346, allocations: 0 / 0.9839 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15): time 0.00101/0.2356, allocations: 470.2 kB / 0.9843 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.2357, allocations: 136.5 kB / 0.9845 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003326/0.236, allocations: 286.5 kB / 0.9847 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.2361, allocations: 33.7 kB / 0.9848 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.2362, allocations: 160.3 kB / 0.9849 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.211e-05/0.2363, allocations: 47.34 kB / 0.985 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.551e-05/0.2363, allocations: 0 / 0.985 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.3e-05/0.2364, allocations: 338.8 kB / 0.9853 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002481/0.2366, allocations: 84.16 kB / 0.9854 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/0.237, allocations: 141.4 kB / 0.9855 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/0.2372, allocations: 119.6 kB / 0.9856 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.2372, allocations: 0 / 0.9856 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007313/0.238, allocations: 339 kB / 0.9859 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/0.2381, allocations: 43.72 kB / 0.986 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.2381, allocations: 4 kB / 0.986 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.2381, allocations: 0 / 0.986 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.2383, allocations: 28.02 kB / 0.986 GB, free: 20.01 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.2383, allocations: 4 kB / 0.986 GB, free: 20 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002187/0.2386, allocations: 31.83 kB / 0.9861 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.339e-05/0.2386, allocations: 4 kB / 0.9861 GB, free: 19.97 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.0002197/0.2388, allocations: 196 kB / 0.9862 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.78e-05/0.2389, allocations: 23.72 kB / 0.9863 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.257e-05/0.239, allocations: 37.83 kB / 0.9863 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.239, allocations: 0 / 0.9863 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.239, allocations: 0 / 0.9863 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.239, allocations: 0 / 0.9863 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002833/0.2393, allocations: 289.4 kB / 0.9866 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.2393, allocations: 4 kB / 0.9866 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.2395, allocations: 19.92 kB / 0.9866 GB, free: 19.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2395, allocations: 0 / 0.9866 GB, free: 19.36 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.2396, allocations: 8 kB / 0.9866 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.2396, allocations: 0 / 0.9866 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.2396, allocations: 4 kB / 0.9866 GB, free: 19.34 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.2406, allocations: 474.3 kB / 0.9871 GB, free: 18.86 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.733e-05/0.2407, allocations: 104.9 kB / 0.9872 GB, free: 18.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.884e-05/0.2407, allocations: 12 kB / 0.9872 GB, free: 18.72 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.241, allocations: 15.98 kB / 0.9872 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.2411, allocations: 23.95 kB / 0.9872 GB, free: 18.68 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.324e-05/0.2411, allocations: 11.98 kB / 0.9872 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002297/0.2414, allocations: 201.9 kB / 0.9874 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.51e-07/0.2414, allocations: 192 / 0.9874 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003859/0.2418, allocations: 63.83 kB / 0.9875 GB, free: 18.41 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.001305/0.2431, allocations: 1.045 MB / 0.9885 GB, free: 17.33 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006641/0.2438, allocations: 295.2 kB / 0.9888 GB, free: 17.03 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2438, allocations: 0 / 0.9888 GB, free: 17.03 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003172/0.2441, allocations: 195.5 kB / 0.989 GB, free: 16.83 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003535/0.2445, allocations: 28.55 kB / 0.989 GB, free: 16.8 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003541/0.248, allocations: 2.071 MB / 0.991 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.2483, allocations: 0.7555 MB / 0.9918 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000149/0.2485, allocations: 25.53 kB / 0.9918 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.2486, allocations: 67.42 kB / 0.9918 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of SimCode: time 1.142e-06/0.2487, allocations: 0 / 0.9918 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0265/0.2752, allocations: 4.865 MB / 0.9966 GB, free: 9.078 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002551/0.2755, allocations: 186.9 kB / 0.9968 GB, free: 8.836 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.608/2.884, allocations: 0 / 0.9968 GB, free: 8.836 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)