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.007541/0.007541, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001713/0.001713, allocations: 197 kB / 16.67 MB, free: 5.977 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00213/0.00213, allocations: 270.9 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9678/0.9678, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002174, allocations: 91.84 kB / 0.6809 GB, free: 20 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1876, allocations: 86.98 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003208/0.1909, allocations: 1.945 MB / 0.7678 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001359/0.1922, allocations: 0.7051 MB / 0.7685 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.1924, allocations: 8 kB / 0.7685 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002436/0.1927, allocations: 87.64 kB / 0.7686 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001477/0.1929, allocations: 91.56 kB / 0.7686 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006473/0.1935, allocations: 189.5 kB / 0.7688 GB, free: 5.918 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003806/0.1939, allocations: 267.4 kB / 0.7691 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001767/0.1941, allocations: 72.3 kB / 0.7692 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.1943, allocations: 115.7 kB / 0.7693 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.1945, allocations: 155.5 kB / 0.7694 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.153e-05/0.1945, allocations: 24 kB / 0.7694 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001426/0.1947, allocations: 87.94 kB / 0.7695 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.928e-05/0.1948, allocations: 63.83 kB / 0.7696 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.1949, allocations: 107.3 kB / 0.7697 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003599/0.1953, allocations: 311 kB / 0.77 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1953, allocations: 3.938 kB / 0.77 GB, free: 4.738 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.232e-06/0.1953, allocations: 0 / 0.77 GB, free: 4.738 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.624e-06/0.1953, allocations: 0 / 0.77 GB, free: 4.738 MB / 0.5606 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.0008043/0.1961, allocations: 0.5858 MB / 0.7706 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.1962, allocations: 12.03 kB / 0.7706 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.823e-05/0.1962, allocations: 46.73 kB / 0.7706 GB, free: 4.031 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.951e-05/0.1963, allocations: 28.66 kB / 0.7706 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004519/0.1967, allocations: 302.8 kB / 0.7709 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.1968, allocations: 16.31 kB / 0.7709 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.602e-05/0.1968, allocations: 16.38 kB / 0.771 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003801/0.1972, allocations: 219.1 kB / 0.7712 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.1972, allocations: 0 / 0.7712 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.1972, allocations: 12 kB / 0.7712 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1972, allocations: 0 / 0.7712 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002386/0.1975, allocations: 136.3 kB / 0.7713 GB, free: 3.258 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008682/0.1984, allocations: 0.673 MB / 0.772 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003321/0.1987, allocations: 178.4 kB / 0.7721 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.1989, allocations: 96.95 kB / 0.7722 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.1989, allocations: 4 kB / 0.7722 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002609/0.1992, allocations: 173.1 kB / 0.7724 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.1992, allocations: 0 / 0.7724 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0006145/0.1998, allocations: 374.8 kB / 0.7728 GB, free: 1.676 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.846e-05/0.1999, allocations: 132.5 kB / 0.7729 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002493/0.2001, allocations: 278.7 kB / 0.7731 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.2002, allocations: 33.64 kB / 0.7732 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.2003, allocations: 164.2 kB / 0.7733 GB, free: 1.039 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.509e-05/0.2003, allocations: 39.39 kB / 0.7734 GB, free: 1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.82e-05/0.2004, allocations: 41.7 kB / 0.7734 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.2005, allocations: 342.8 kB / 0.7737 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.2007, allocations: 83.95 kB / 0.7738 GB, free: 0.5273 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.2009, allocations: 133.6 kB / 0.7739 GB, free: 392 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000295/0.2012, allocations: 237.3 kB / 0.7742 GB, free: 132 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.2012, allocations: 4 kB / 0.7742 GB, free: 128 kB / 0.5606 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.3938/0.595, allocations: 333 kB / 0.7745 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.374e-05/0.5951, allocations: 36.38 kB / 0.7745 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.5952, allocations: 3.438 kB / 0.7745 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.5952, allocations: 2.562 kB / 0.7745 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.5953, allocations: 27.77 kB / 0.7746 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.5953, allocations: 1.219 kB / 0.7746 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001417/0.5955, allocations: 22.16 kB / 0.7746 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.5955, allocations: 9.812 kB / 0.7746 GB, free: 12.78 MB / 0.5606 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.0001931/0.5957, allocations: 201 kB / 0.7748 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.65e-05/0.5958, allocations: 28.22 kB / 0.7748 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.277e-05/0.5958, allocations: 30.58 kB / 0.7748 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.5959, allocations: 1.688 kB / 0.7748 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.5959, allocations: 3.375 kB / 0.7748 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.5959, allocations: 1.547 kB / 0.7748 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.5961, allocations: 290.9 kB / 0.7751 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.5962, allocations: 0.7812 kB / 0.7751 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.5963, allocations: 15.08 kB / 0.7751 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.5963, allocations: 1.406 kB / 0.7751 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.5963, allocations: 3.781 kB / 0.7751 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.5963, allocations: 2.125 kB / 0.7751 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.5963, allocations: 0 / 0.7751 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006983/0.597, allocations: 476 kB / 0.7756 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.345e-05/0.5971, allocations: 99.78 kB / 0.7757 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.097e-05/0.5971, allocations: 7.375 kB / 0.7757 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.5972, allocations: 12.52 kB / 0.7757 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.293e-05/0.5973, allocations: 26.11 kB / 0.7757 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.35e-05/0.5974, allocations: 8.438 kB / 0.7757 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001757/0.5975, allocations: 201 kB / 0.7759 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5975, allocations: 1.422 kB / 0.7759 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003108/0.5979, allocations: 65.14 kB / 0.776 GB, free: 12.16 MB / 0.5606 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.0009523/0.5988, allocations: 1.028 MB / 0.777 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004682/0.5993, allocations: 290.6 kB / 0.7773 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5993, allocations: 5.156 kB / 0.7773 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000217/0.5995, allocations: 182.8 kB / 0.7775 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.5999, allocations: 33.36 kB / 0.7775 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003176/0.603, allocations: 2.772 MB / 0.7802 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001977/0.6033, allocations: 0.759 MB / 0.7809 GB, free: 9.406 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.539e-05/0.6033, allocations: 18.64 kB / 0.781 GB, free: 9.406 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.6035, allocations: 70.73 kB / 0.781 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/0.6035, allocations: 0 / 0.781 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.629, allocations: 5.507 MB / 0.7864 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.435/8.064, allocations: 17.33 kB / 0.7864 GB, free: 8.84 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)