Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 101.4 kB / 15.7 MB, free: 28 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 200 kB / 16.64 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.446/1.446, allocations: 205.1 MB / 222.5 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.669/1.669, allocations: 292.3 MB / 0.549 GB, free: 12.72 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 71.61 kB / 0.6718 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.213, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003728/0.2168, allocations: 1.959 MB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001557/0.2184, allocations: 0.7566 MB / 0.7863 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.2185, allocations: 7.938 kB / 0.7863 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002606/0.2188, allocations: 75.66 kB / 0.7864 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001588/0.219, allocations: 91.61 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005867/0.2196, allocations: 194.7 kB / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003083/0.2199, allocations: 267.2 kB / 0.7869 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001685/0.2201, allocations: 61.91 kB / 0.7869 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.2202, allocations: 115.6 kB / 0.7871 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.2204, allocations: 159.4 kB / 0.7872 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.2205, allocations: 20 kB / 0.7872 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001433/0.2206, allocations: 99.84 kB / 0.7873 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.622e-05/0.2207, allocations: 55.83 kB / 0.7874 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.735e-05/0.2208, allocations: 107.3 kB / 0.7875 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003278/0.2212, allocations: 307 kB / 0.7878 GB, free: 9 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2212, allocations: 0 / 0.7878 GB, free: 9 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.214e-06/0.2212, allocations: 0 / 0.7878 GB, free: 9 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.2212, allocations: 0 / 0.7878 GB, free: 9 MB / 0.6075 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.0007894/0.222, allocations: 0.5819 MB / 0.7883 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.222, allocations: 11.97 kB / 0.7884 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.655e-05/0.2221, allocations: 46.73 kB / 0.7884 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.551e-05/0.2221, allocations: 32.56 kB / 0.7884 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000489/0.2226, allocations: 310.9 kB / 0.7887 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.2227, allocations: 8.375 kB / 0.7887 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.581e-05/0.2227, allocations: 20.28 kB / 0.7888 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003831/0.2231, allocations: 235.1 kB / 0.789 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.2231, allocations: 0 / 0.789 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.2231, allocations: 8 kB / 0.789 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.2231, allocations: 4 kB / 0.789 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002398/0.2234, allocations: 128.3 kB / 0.7891 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007792/0.2242, allocations: 0.6808 MB / 0.7898 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003395/0.2245, allocations: 162.5 kB / 0.7899 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.2247, allocations: 101 kB / 0.79 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.2247, allocations: 7.984 kB / 0.79 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.225, allocations: 165 kB / 0.7902 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.225, allocations: 0 / 0.7902 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.0006324/0.2256, allocations: 378 kB / 0.7906 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.2257, allocations: 140.5 kB / 0.7907 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002479/0.226, allocations: 282.7 kB / 0.791 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.226, allocations: 29.7 kB / 0.791 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.67e-05/0.2261, allocations: 156.2 kB / 0.7911 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.578e-05/0.2261, allocations: 39.45 kB / 0.7912 GB, free: 5.25 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.769e-05/0.2262, allocations: 41.7 kB / 0.7912 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.2263, allocations: 338.8 kB / 0.7915 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001587/0.2265, allocations: 95.89 kB / 0.7916 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001736/0.2267, allocations: 139.5 kB / 0.7918 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003257/0.227, allocations: 237.4 kB / 0.792 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.227, allocations: 4.062 kB / 0.792 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004599/0.2275, allocations: 338.8 kB / 0.7923 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.738e-05/0.2275, allocations: 37.7 kB / 0.7923 GB, free: 3.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.2275, allocations: 0 / 0.7923 GB, free: 3.973 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.2276, allocations: 7.984 kB / 0.7924 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.2277, allocations: 16 kB / 0.7924 GB, free: 3.949 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.2277, allocations: 11.92 kB / 0.7924 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.2278, allocations: 27.92 kB / 0.7924 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.2279, allocations: 8 kB / 0.7924 GB, free: 3.902 MB / 0.6075 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.000155/0.228, allocations: 190.5 kB / 0.7926 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.595e-05/0.2281, allocations: 27.72 kB / 0.7926 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.464e-05/0.2281, allocations: 29.83 kB / 0.7927 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2281, allocations: 0 / 0.7927 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2281, allocations: 4 kB / 0.7927 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.2282, allocations: 3.984 kB / 0.7927 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002306/0.2284, allocations: 293.3 kB / 0.7929 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2284, allocations: 0 / 0.7929 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.2285, allocations: 19.92 kB / 0.793 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2285, allocations: 0 / 0.793 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/0.2285, allocations: 7.984 kB / 0.793 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2286, allocations: 0 / 0.793 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2286, allocations: 0 / 0.793 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006535/0.2292, allocations: 466.3 kB / 0.7934 GB, free: 2.797 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.468e-05/0.2293, allocations: 104.7 kB / 0.7935 GB, free: 2.676 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.934e-05/0.2293, allocations: 8 kB / 0.7935 GB, free: 2.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.749e-05/0.2294, allocations: 11.98 kB / 0.7935 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.017e-05/0.2295, allocations: 27.91 kB / 0.7936 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.302e-05/0.2296, allocations: 11.94 kB / 0.7936 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001665/0.2297, allocations: 201.9 kB / 0.7938 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2297, allocations: 0 / 0.7938 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002766/0.23, allocations: 64.12 kB / 0.7938 GB, free: 2.355 MB / 0.6075 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.001012/0.231, allocations: 1.018 MB / 0.7948 GB, free: 1.305 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004402/0.2315, allocations: 295.3 kB / 0.7951 GB, free: 1.004 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2315, allocations: 0 / 0.7951 GB, free: 1.004 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002105/0.2317, allocations: 187.5 kB / 0.7953 GB, free: 0.8086 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.232, allocations: 47.62 kB / 0.7953 GB, free: 0.7656 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003181/0.2352, allocations: 2.771 MB / 0.798 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.2355, allocations: 0.7514 MB / 0.7988 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 7.984e-05/0.2356, allocations: 17.55 kB / 0.7988 GB, free: 13.09 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.792e-05/0.2357, allocations: 75.41 kB / 0.7988 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of SimCode: time 3.71e-07/0.2357, allocations: 0 / 0.7988 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02124/0.2569, allocations: 5.325 MB / 0.804 GB, free: 7.793 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.391/7.648, allocations: 17.16 kB / 0.8041 GB, free: 7.785 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)