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.001066/0.001066, 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.001587/0.001587, allocations: 190.8 kB / 16.63 MB, free: 6.438 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.553/1.553, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.729/1.729, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.00142/0.00142, allocations: 69.39 kB / 0.6718 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2755, allocations: 114.5 MB / 0.7836 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003868/0.2794, allocations: 1.959 MB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001278/0.2807, allocations: 0.7644 MB / 0.7863 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.2809, allocations: 0 / 0.7863 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002646/0.2811, allocations: 79.66 kB / 0.7864 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.2813, allocations: 95.55 kB / 0.7865 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006319/0.2819, allocations: 183.7 kB / 0.7866 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003553/0.2823, allocations: 271.2 kB / 0.7869 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.2825, allocations: 61.91 kB / 0.787 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001477/0.2827, allocations: 115.6 kB / 0.7871 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002081/0.2829, allocations: 151.5 kB / 0.7872 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.532e-05/0.2829, allocations: 20 kB / 0.7872 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000157/0.2831, allocations: 99.91 kB / 0.7873 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.712e-05/0.2832, allocations: 51.83 kB / 0.7874 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.2833, allocations: 111.3 kB / 0.7875 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000353/0.2837, allocations: 307 kB / 0.7878 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2837, allocations: 0 / 0.7878 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2837, allocations: 0 / 0.7878 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.2837, allocations: 0 / 0.7878 GB, free: 9.043 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.0008924/0.2846, allocations: 0.578 MB / 0.7883 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.2846, allocations: 15.97 kB / 0.7884 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.848e-05/0.2847, allocations: 50.67 kB / 0.7884 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.046e-05/0.2848, allocations: 32.56 kB / 0.7884 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005254/0.2853, allocations: 306.9 kB / 0.7887 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.634e-05/0.2853, allocations: 12.38 kB / 0.7887 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.608e-05/0.2854, allocations: 20.28 kB / 0.7888 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003802/0.2858, allocations: 231.1 kB / 0.789 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2858, allocations: 4 kB / 0.789 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.2858, allocations: 8 kB / 0.789 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.2858, allocations: 4 kB / 0.789 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.2861, allocations: 124.3 kB / 0.7891 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008565/0.2869, allocations: 0.6846 MB / 0.7898 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003628/0.2873, allocations: 162.6 kB / 0.7899 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.2875, allocations: 96.91 kB / 0.79 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.2875, allocations: 4 kB / 0.79 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002891/0.2878, allocations: 173.1 kB / 0.7902 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.2878, allocations: 0 / 0.7902 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.0006903/0.2885, allocations: 378.1 kB / 0.7906 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.075e-05/0.2886, allocations: 144.4 kB / 0.7907 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002808/0.2889, allocations: 270.7 kB / 0.791 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.17e-05/0.2889, allocations: 41.69 kB / 0.791 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.2891, allocations: 156.2 kB / 0.7911 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.729e-05/0.2891, allocations: 39.45 kB / 0.7912 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.001e-05/0.2892, allocations: 41.7 kB / 0.7912 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.2893, allocations: 338.8 kB / 0.7915 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.2895, allocations: 87.91 kB / 0.7916 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.2897, allocations: 135.5 kB / 0.7918 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003171/0.29, allocations: 242.7 kB / 0.792 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.29, allocations: 0 / 0.792 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004779/0.2905, allocations: 334.9 kB / 0.7923 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.173e-05/0.2906, allocations: 37.7 kB / 0.7923 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2906, allocations: 3.984 kB / 0.7923 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.2906, allocations: 4 kB / 0.7923 GB, free: 4.012 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.2907, allocations: 27.92 kB / 0.7924 GB, free: 3.984 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.914e-06/0.2908, allocations: 3.984 kB / 0.7924 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.2909, allocations: 23.94 kB / 0.7924 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.2909, allocations: 15.98 kB / 0.7924 GB, free: 3.941 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.0001607/0.2911, allocations: 194.2 kB / 0.7926 GB, free: 3.738 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/0.2911, allocations: 27.72 kB / 0.7926 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.095e-05/0.2912, allocations: 29.83 kB / 0.7927 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2912, allocations: 0 / 0.7927 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2912, allocations: 0 / 0.7927 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.2912, allocations: 3.984 kB / 0.7927 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002407/0.2915, allocations: 297.3 kB / 0.7929 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2915, allocations: 96 / 0.7929 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.968e-05/0.2916, allocations: 19.92 kB / 0.793 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.2916, allocations: 0 / 0.793 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/0.2916, allocations: 7.984 kB / 0.793 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2916, allocations: 0 / 0.793 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2916, allocations: 0 / 0.793 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006928/0.2923, allocations: 470.3 kB / 0.7934 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.561e-05/0.2924, allocations: 100.7 kB / 0.7935 GB, free: 2.711 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/0.2924, allocations: 11.98 kB / 0.7935 GB, free: 2.699 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.752e-05/0.2925, allocations: 11.98 kB / 0.7935 GB, free: 2.688 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.841e-05/0.2926, allocations: 23.97 kB / 0.7936 GB, free: 2.664 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.2927, allocations: 11.94 kB / 0.7936 GB, free: 2.652 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001775/0.2928, allocations: 201.9 kB / 0.7938 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2929, allocations: 0 / 0.7938 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002706/0.2931, allocations: 60.12 kB / 0.7938 GB, free: 2.395 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.001065/0.2942, allocations: 1.023 MB / 0.7948 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004549/0.2947, allocations: 295.3 kB / 0.7951 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2947, allocations: 0 / 0.7951 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.2949, allocations: 187.3 kB / 0.7953 GB, free: 0.8438 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.2952, allocations: 34.12 kB / 0.7953 GB, free: 0.8164 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003327/0.2986, allocations: 2.771 MB / 0.798 GB, free: 13.94 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.2989, allocations: 0.7514 MB / 0.7988 GB, free: 13.16 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 8.44e-05/0.299, allocations: 17.55 kB / 0.7988 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.2991, allocations: 75.78 kB / 0.7988 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of SimCode: time 9.42e-07/0.2991, allocations: 0 / 0.7988 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0234/0.3225, allocations: 5.337 MB / 0.8041 GB, free: 7.832 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.365/7.688, allocations: 3.938 kB / 0.8041 GB, free: 7.828 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)