Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_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.005577/0.005577, allocations: 100.7 kB / 15.73 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001324/0.001325, allocations: 195.5 kB / 16.67 MB, free: 5.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002565/0.002565, allocations: 287.7 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9982/0.9982, allocations: 169.3 MB / 0.4983 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002655/0.002655, allocations: 91.84 kB / 0.681 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4006/0.4032, allocations: 86.99 MB / 0.7659 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003242/0.4065, allocations: 1.943 MB / 0.7678 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001209/0.4077, allocations: 0.709 MB / 0.7685 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.774e-05/0.4079, allocations: 4 kB / 0.7685 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002134/0.4081, allocations: 75.66 kB / 0.7686 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001338/0.4082, allocations: 99.56 kB / 0.7687 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005276/0.4088, allocations: 181.5 kB / 0.7688 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003103/0.4091, allocations: 271.4 kB / 0.7691 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.4092, allocations: 69.64 kB / 0.7692 GB, free: 488 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.4094, allocations: 119.6 kB / 0.7693 GB, free: 368 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.4096, allocations: 147.5 kB / 0.7694 GB, free: 220 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.685e-05/0.4097, allocations: 20 kB / 0.7694 GB, free: 200 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001435/0.4098, allocations: 91.92 kB / 0.7695 GB, free: 108 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.536e-05/0.4099, allocations: 63.81 kB / 0.7696 GB, free: 44 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.41, allocations: 111.4 kB / 0.7697 GB, free: 15.93 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003698/0.4104, allocations: 304 kB / 0.77 GB, free: 15.64 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.4104, allocations: 0 / 0.77 GB, free: 15.64 MB / 0.545 GB Notification: Performance of FrontEnd: time 4.709e-06/0.4104, allocations: 7.938 kB / 0.77 GB, free: 15.63 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.4104, allocations: 0 / 0.77 GB, free: 15.63 MB / 0.545 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.0008636/0.4113, allocations: 0.5894 MB / 0.7706 GB, free: 14.99 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.4113, allocations: 12.03 kB / 0.7706 GB, free: 14.98 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.714e-05/0.4114, allocations: 46.73 kB / 0.7706 GB, free: 14.92 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.635e-05/0.4115, allocations: 28.75 kB / 0.7706 GB, free: 14.89 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004866/0.412, allocations: 307 kB / 0.7709 GB, free: 14.56 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.906e-05/0.412, allocations: 24.38 kB / 0.771 GB, free: 14.54 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.356e-05/0.412, allocations: 12.38 kB / 0.771 GB, free: 14.52 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004065/0.4125, allocations: 227.1 kB / 0.7712 GB, free: 14.28 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.4125, allocations: 3.938 kB / 0.7712 GB, free: 14.27 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.4125, allocations: 12 kB / 0.7712 GB, free: 14.26 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.4125, allocations: 0 / 0.7712 GB, free: 14.26 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002503/0.4128, allocations: 128.4 kB / 0.7713 GB, free: 14.14 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000892/0.4137, allocations: 0.6886 MB / 0.772 GB, free: 13.39 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003632/0.414, allocations: 162.5 kB / 0.7722 GB, free: 13.22 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.4142, allocations: 101 kB / 0.7722 GB, free: 13.12 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.284e-05/0.4143, allocations: 96 / 0.7722 GB, free: 13.12 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002814/0.4145, allocations: 173 kB / 0.7724 GB, free: 12.93 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.4146, allocations: 4 kB / 0.7724 GB, free: 12.93 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.000693/0.4153, allocations: 371 kB / 0.7728 GB, free: 12.55 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.75e-05/0.4154, allocations: 140.5 kB / 0.7729 GB, free: 12.39 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002963/0.4157, allocations: 278.7 kB / 0.7732 GB, free: 12.11 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.4157, allocations: 33.7 kB / 0.7732 GB, free: 12.07 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.4158, allocations: 156.3 kB / 0.7734 GB, free: 11.92 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.4159, allocations: 43.69 kB / 0.7734 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.529e-05/0.416, allocations: 45.7 kB / 0.7734 GB, free: 11.82 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.4161, allocations: 342.7 kB / 0.7738 GB, free: 11.48 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.4163, allocations: 87.95 kB / 0.7738 GB, free: 11.39 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.4165, allocations: 125.7 kB / 0.774 GB, free: 11.25 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003456/0.4169, allocations: 245.1 kB / 0.7742 GB, free: 10.99 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4169, allocations: 0 / 0.7742 GB, free: 10.99 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005162/0.4174, allocations: 335.1 kB / 0.7745 GB, free: 10.65 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.53e-05/0.4175, allocations: 41.7 kB / 0.7746 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.4175, allocations: 3.938 kB / 0.7746 GB, free: 10.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.4175, allocations: 3.984 kB / 0.7746 GB, free: 10.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.4176, allocations: 20 kB / 0.7746 GB, free: 10.58 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.4177, allocations: 3.984 kB / 0.7746 GB, free: 10.57 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.4178, allocations: 27.97 kB / 0.7746 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.4178, allocations: 7.938 kB / 0.7746 GB, free: 10.54 MB / 0.545 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.0001915/0.418, allocations: 198.5 kB / 0.7748 GB, free: 10.33 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.65e-05/0.4181, allocations: 23.86 kB / 0.7748 GB, free: 10.31 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.259e-05/0.4181, allocations: 33.83 kB / 0.7749 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.4182, allocations: 0 / 0.7749 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.4182, allocations: 0 / 0.7749 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.4182, allocations: 3.984 kB / 0.7749 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003146/0.4185, allocations: 289.4 kB / 0.7751 GB, free: 9.934 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-06/0.4185, allocations: 0 / 0.7751 GB, free: 9.934 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.4186, allocations: 15.98 kB / 0.7752 GB, free: 9.918 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.4186, allocations: 4 kB / 0.7752 GB, free: 9.914 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.4186, allocations: 7.984 kB / 0.7752 GB, free: 9.906 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.4187, allocations: 0 / 0.7752 GB, free: 9.906 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4187, allocations: 4 kB / 0.7752 GB, free: 9.902 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007525/0.4194, allocations: 466.4 kB / 0.7756 GB, free: 9.422 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.913e-05/0.4195, allocations: 101 kB / 0.7757 GB, free: 9.305 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.236e-05/0.4196, allocations: 12 kB / 0.7757 GB, free: 9.293 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.4197, allocations: 16.05 kB / 0.7757 GB, free: 9.277 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.1e-05/0.4198, allocations: 27.89 kB / 0.7758 GB, free: 9.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.07e-05/0.4198, allocations: 8 kB / 0.7758 GB, free: 9.242 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001983/0.42, allocations: 201.9 kB / 0.776 GB, free: 9.051 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.42, allocations: 0 / 0.776 GB, free: 9.051 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000352/0.4203, allocations: 67.77 kB / 0.776 GB, free: 8.984 MB / 0.545 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.001165/0.4215, allocations: 1.031 MB / 0.777 GB, free: 7.922 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005001/0.422, allocations: 298 kB / 0.7773 GB, free: 7.621 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.422, allocations: 256 / 0.7773 GB, free: 7.621 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002556/0.4223, allocations: 187.3 kB / 0.7775 GB, free: 7.426 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.4226, allocations: 39.25 kB / 0.7775 GB, free: 7.391 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003683/0.4263, allocations: 2.769 MB / 0.7803 GB, free: 4.512 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003933/0.4267, allocations: 0.7553 MB / 0.781 GB, free: 3.73 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.053e-05/0.4268, allocations: 17.55 kB / 0.781 GB, free: 3.715 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.4269, allocations: 75.41 kB / 0.7811 GB, free: 3.641 MB / 0.545 GB Notification: Performance of SimCode: time 3.01e-07/0.4269, allocations: 0 / 0.7811 GB, free: 3.641 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02757/0.4545, allocations: 5.392 MB / 0.7863 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.82/8.274, allocations: 18.73 kB / 0.7864 GB, free: 14.37 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)