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.005993/0.005993, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001616/0.001616, allocations: 196.8 kB / 16.67 MB, free: 5.926 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002185/0.002185, allocations: 288 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9359/0.9359, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 103.8 kB / 0.681 GB, free: 7.492 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.443/0.4448, allocations: 86.97 MB / 0.7659 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002797/0.4476, allocations: 1.95 MB / 0.7678 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001113/0.4487, allocations: 0.7129 MB / 0.7685 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.4488, allocations: 4 kB / 0.7685 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.000201/0.449, allocations: 79.64 kB / 0.7686 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001162/0.4492, allocations: 95.56 kB / 0.7687 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005148/0.4497, allocations: 181.7 kB / 0.7688 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002807/0.45, allocations: 267.5 kB / 0.7691 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.4502, allocations: 77.55 kB / 0.7692 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.4503, allocations: 111.7 kB / 0.7693 GB, free: 440 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001888/0.4505, allocations: 155.4 kB / 0.7694 GB, free: 284 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.207e-05/0.4505, allocations: 20 kB / 0.7694 GB, free: 264 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.4507, allocations: 95.92 kB / 0.7695 GB, free: 168 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.219e-05/0.4508, allocations: 59.83 kB / 0.7696 GB, free: 108 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 9.176e-05/0.4509, allocations: 103.3 kB / 0.7697 GB, free: 4 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003311/0.4512, allocations: 311 kB / 0.77 GB, free: 15.7 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.4512, allocations: 0 / 0.77 GB, free: 15.7 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4512, allocations: 0 / 0.77 GB, free: 15.7 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.4512, allocations: 0 / 0.77 GB, free: 15.7 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.0007889/0.452, allocations: 0.578 MB / 0.7705 GB, free: 15.07 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.4521, allocations: 8.031 kB / 0.7706 GB, free: 15.06 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.666e-05/0.4521, allocations: 50.73 kB / 0.7706 GB, free: 15 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.763e-05/0.4522, allocations: 28.56 kB / 0.7706 GB, free: 14.97 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004581/0.4526, allocations: 314.7 kB / 0.7709 GB, free: 14.63 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/0.4527, allocations: 16.38 kB / 0.7709 GB, free: 14.61 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.183e-05/0.4527, allocations: 12.38 kB / 0.771 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003826/0.4531, allocations: 227.1 kB / 0.7712 GB, free: 14.36 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.4531, allocations: 0 / 0.7712 GB, free: 14.36 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.4532, allocations: 4 kB / 0.7712 GB, free: 14.35 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.4532, allocations: 8 kB / 0.7712 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002373/0.4534, allocations: 132.3 kB / 0.7713 GB, free: 14.21 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009131/0.4543, allocations: 0.6808 MB / 0.772 GB, free: 13.48 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.4547, allocations: 166.5 kB / 0.7721 GB, free: 13.3 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.4549, allocations: 101.1 kB / 0.7722 GB, free: 13.2 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.4549, allocations: 3.938 kB / 0.7722 GB, free: 13.2 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002576/0.4552, allocations: 181 kB / 0.7724 GB, free: 13 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.462e-06/0.4552, allocations: 0 / 0.7724 GB, free: 13 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0006398/0.4558, allocations: 370 kB / 0.7728 GB, free: 12.63 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/0.4559, allocations: 132.5 kB / 0.7729 GB, free: 12.47 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.4562, allocations: 282.7 kB / 0.7732 GB, free: 12.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.368e-05/0.4562, allocations: 29.7 kB / 0.7732 GB, free: 12.16 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.4563, allocations: 160.2 kB / 0.7733 GB, free: 12 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.764e-05/0.4563, allocations: 39.45 kB / 0.7734 GB, free: 11.96 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.567e-05/0.4564, allocations: 41.7 kB / 0.7734 GB, free: 11.91 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.4565, allocations: 338.8 kB / 0.7737 GB, free: 11.57 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001562/0.4567, allocations: 83.95 kB / 0.7738 GB, free: 11.49 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.4569, allocations: 141.8 kB / 0.7739 GB, free: 11.34 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003097/0.4572, allocations: 240.9 kB / 0.7742 GB, free: 11.08 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4572, allocations: 0 / 0.7742 GB, free: 11.08 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000471/0.4577, allocations: 341.8 kB / 0.7745 GB, free: 10.73 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.4577, allocations: 41.62 kB / 0.7745 GB, free: 10.69 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.4577, allocations: 4 kB / 0.7745 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.4578, allocations: 0 / 0.7745 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.4579, allocations: 23.92 kB / 0.7746 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.4579, allocations: 4 kB / 0.7746 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.458, allocations: 27.83 kB / 0.7746 GB, free: 10.63 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.4581, allocations: 4 kB / 0.7746 GB, free: 10.62 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.0001648/0.4582, allocations: 192.4 kB / 0.7748 GB, free: 10.42 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.163e-05/0.4583, allocations: 35.61 kB / 0.7748 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.01e-05/0.4583, allocations: 21.84 kB / 0.7748 GB, free: 10.36 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.4583, allocations: 4 kB / 0.7748 GB, free: 10.36 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4584, allocations: 0 / 0.7748 GB, free: 10.36 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.4584, allocations: 3.984 kB / 0.7749 GB, free: 10.35 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002235/0.4586, allocations: 285.5 kB / 0.7751 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.4586, allocations: 3.984 kB / 0.7751 GB, free: 10.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.4587, allocations: 19.94 kB / 0.7751 GB, free: 10 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.4587, allocations: 0 / 0.7751 GB, free: 10 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.4587, allocations: 15.97 kB / 0.7752 GB, free: 9.984 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.4587, allocations: 0 / 0.7752 GB, free: 9.984 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4588, allocations: 0 / 0.7752 GB, free: 9.984 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006679/0.4594, allocations: 470.1 kB / 0.7756 GB, free: 9.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.543e-05/0.4595, allocations: 96.91 kB / 0.7757 GB, free: 9.387 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.353e-05/0.4595, allocations: 16.19 kB / 0.7757 GB, free: 9.371 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.4597, allocations: 15.98 kB / 0.7757 GB, free: 9.355 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.283e-05/0.4597, allocations: 27.91 kB / 0.7758 GB, free: 9.328 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.4598, allocations: 4 kB / 0.7758 GB, free: 9.324 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001681/0.4599, allocations: 205.9 kB / 0.776 GB, free: 9.129 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4599, allocations: 0 / 0.776 GB, free: 9.129 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002633/0.4602, allocations: 59.88 kB / 0.776 GB, free: 9.07 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.001042/0.4613, allocations: 1.031 MB / 0.777 GB, free: 8.004 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004539/0.4617, allocations: 287.5 kB / 0.7773 GB, free: 7.711 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4617, allocations: 4 kB / 0.7773 GB, free: 7.707 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002456/0.462, allocations: 187.3 kB / 0.7775 GB, free: 7.512 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.4623, allocations: 30.89 kB / 0.7775 GB, free: 7.484 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003279/0.4656, allocations: 2.775 MB / 0.7802 GB, free: 4.602 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.4659, allocations: 0.7475 MB / 0.781 GB, free: 3.828 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.633e-05/0.466, allocations: 17.55 kB / 0.781 GB, free: 3.812 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.4661, allocations: 75.41 kB / 0.781 GB, free: 3.738 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.4661, allocations: 0 / 0.781 GB, free: 3.738 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02239/0.4885, allocations: 5.378 MB / 0.7863 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.499/7.987, allocations: 11.36 kB / 0.7863 GB, free: 14.49 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)