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 1.702/1.702, allocations: 287.4 MB / 302.6 MB, free: 8.262 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.001388/0.001388, allocations: 186.3 kB / 371.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.679/1.679, allocations: 205.4 MB / 0.6298 GB, free: 10.56 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.0009698/0.0009699, allocations: 97.48 kB / 0.7431 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004501/0.0004501, allocations: 10.56 kB / 0.8662 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2258, allocations: 115.3 MB / 0.9787 GB, free: 28.12 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001975/0.2278, allocations: 1.607 MB / 0.9803 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001194/0.229, allocations: 0.7074 MB / 0.981 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001538/0.2292, allocations: 11.88 kB / 0.981 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.2294, allocations: 71.77 kB / 0.9811 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.2296, allocations: 87.69 kB / 0.9812 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005097/0.2301, allocations: 125.2 kB / 0.9813 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002613/0.2304, allocations: 223.4 kB / 0.9815 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.2305, allocations: 57.91 kB / 0.9815 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.2307, allocations: 99.59 kB / 0.9816 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.2308, allocations: 115.5 kB / 0.9817 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.997e-05/0.2309, allocations: 8 kB / 0.9818 GB, free: 25 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.231, allocations: 67.94 kB / 0.9818 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.662e-05/0.2311, allocations: 43.83 kB / 0.9819 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.44e-05/0.2311, allocations: 57.58 kB / 0.9819 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002332/0.2314, allocations: 219.6 kB / 0.9821 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2314, allocations: 0 / 0.9821 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2314, allocations: 0 / 0.9821 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.774e-06/0.2314, allocations: 0 / 0.9821 GB, free: 24.62 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.0007018/0.2321, allocations: 0.5508 MB / 0.9827 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.2321, allocations: 12.03 kB / 0.9827 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.869e-05/0.2322, allocations: 50.73 kB / 0.9827 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.014e-05/0.2323, allocations: 32.56 kB / 0.9828 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003922/0.2327, allocations: 302.9 kB / 0.983 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.2327, allocations: 16.38 kB / 0.9831 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.152e-05/0.2327, allocations: 12.38 kB / 0.9831 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003379/0.2331, allocations: 227.1 kB / 0.9833 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.2331, allocations: 0 / 0.9833 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.2331, allocations: 11.94 kB / 0.9833 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.2331, allocations: 4 kB / 0.9833 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.2334, allocations: 136.4 kB / 0.9834 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006929/0.2341, allocations: 0.6885 MB / 0.9841 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003168/0.2344, allocations: 178.5 kB / 0.9843 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.2345, allocations: 108.9 kB / 0.9844 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.2346, allocations: 0 / 0.9844 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002419/0.2348, allocations: 178.5 kB / 0.9846 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.2348, allocations: 0 / 0.9846 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15): time 0.0005919/0.2354, allocations: 382.9 kB / 0.9849 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.2355, allocations: 144.5 kB / 0.9851 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/0.2357, allocations: 278.6 kB / 0.9853 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.2357, allocations: 29.7 kB / 0.9853 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.435e-05/0.2358, allocations: 152.4 kB / 0.9855 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/0.2358, allocations: 51.3 kB / 0.9855 GB, free: 20.85 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-06/0.2359, allocations: 0 / 0.9855 GB, free: 20.85 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.794e-05/0.2359, allocations: 342.8 kB / 0.9859 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.2361, allocations: 87.95 kB / 0.986 GB, free: 20.42 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001503/0.2362, allocations: 137.1 kB / 0.9861 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002564/0.2365, allocations: 244.8 kB / 0.9863 GB, free: 20 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2365, allocations: 0 / 0.9863 GB, free: 20 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003977/0.2369, allocations: 344.2 kB / 0.9866 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.2369, allocations: 37.69 kB / 0.9867 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.237, allocations: 0 / 0.9867 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.237, allocations: 4 kB / 0.9867 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.2371, allocations: 27.92 kB / 0.9867 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.2371, allocations: 0 / 0.9867 GB, free: 19.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.2372, allocations: 39.92 kB / 0.9868 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.2372, allocations: 4 kB / 0.9868 GB, free: 19.54 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.0001306/0.2374, allocations: 199.4 kB / 0.9869 GB, free: 19.33 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/0.2374, allocations: 27.72 kB / 0.987 GB, free: 19.3 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.384e-05/0.2375, allocations: 29.83 kB / 0.987 GB, free: 19.28 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2375, allocations: 0 / 0.987 GB, free: 19.28 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.2375, allocations: 0 / 0.987 GB, free: 19.28 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2375, allocations: 4 kB / 0.987 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001707/0.2377, allocations: 301.2 kB / 0.9873 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2377, allocations: 0 / 0.9873 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.616e-05/0.2378, allocations: 19.98 kB / 0.9873 GB, free: 18.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.2378, allocations: 0 / 0.9873 GB, free: 18.91 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.2378, allocations: 8 kB / 0.9873 GB, free: 18.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.2378, allocations: 0 / 0.9873 GB, free: 18.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2378, allocations: 0 / 0.9873 GB, free: 18.9 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005668/0.2384, allocations: 479.8 kB / 0.9878 GB, free: 18.41 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.659e-05/0.2384, allocations: 104.8 kB / 0.9879 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.704e-05/0.2385, allocations: 4 kB / 0.9879 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.2386, allocations: 24.05 kB / 0.9879 GB, free: 18.26 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.235e-05/0.2387, allocations: 19.95 kB / 0.9879 GB, free: 18.24 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.2387, allocations: 11.98 kB / 0.9879 GB, free: 18.23 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000129/0.2388, allocations: 202 kB / 0.9881 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2388, allocations: 0 / 0.9881 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002393/0.2391, allocations: 63.95 kB / 0.9882 GB, free: 17.97 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.000814/0.2399, allocations: 1.033 MB / 0.9892 GB, free: 16.9 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003848/0.2403, allocations: 300.4 kB / 0.9895 GB, free: 16.6 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2403, allocations: 0 / 0.9895 GB, free: 16.6 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001804/0.2405, allocations: 191.3 kB / 0.9897 GB, free: 16.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.2408, allocations: 32.73 kB / 0.9897 GB, free: 16.37 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.2428, allocations: 1.653 MB / 0.9913 GB, free: 14.65 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001601/0.243, allocations: 0.7514 MB / 0.992 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.861e-05/0.2431, allocations: 17.55 kB / 0.9921 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.772e-05/0.2432, allocations: 75.34 kB / 0.9921 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of SimCode: time 3.61e-07/0.2432, allocations: 4 kB / 0.9921 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01471/0.2579, allocations: 4.866 MB / 0.9969 GB, free: 9.07 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/0.2581, allocations: 190.9 kB / 0.9971 GB, free: 8.832 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.968/2.226, allocations: 0 / 0.9971 GB, free: 8.832 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)