Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_dev_IDEAS_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.0009346/0.0009347, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009157/0.0009157, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.546/1.546, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.102/1.102, allocations: 135.2 MB / 426.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00057/0.0005701, allocations: 8.5 kB / 0.5069 GB, free: 5.164 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1819, allocations: 82.32 MB / 0.5873 GB, free: 3.023 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002186/0.1841, allocations: 1.598 MB / 0.5889 GB, free: 1.406 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.1853, allocations: 0.6451 MB / 0.5895 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.1855, allocations: 3.938 kB / 0.5895 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.1857, allocations: 79.75 kB / 0.5896 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001591/0.1858, allocations: 83.84 kB / 0.5896 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005011/0.1863, allocations: 131.7 kB / 0.5898 GB, free: 480 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002942/0.1867, allocations: 147.7 kB / 0.5899 GB, free: 332 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.1868, allocations: 53.94 kB / 0.59 GB, free: 280 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.187, allocations: 87.73 kB / 0.59 GB, free: 192 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.1871, allocations: 111.5 kB / 0.5901 GB, free: 80 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.692e-05/0.1872, allocations: 4 kB / 0.5902 GB, free: 76 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.1873, allocations: 67.94 kB / 0.5902 GB, free: 8 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.594e-05/0.1874, allocations: 43.83 kB / 0.5903 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.229e-05/0.1875, allocations: 61.58 kB / 0.5903 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002583/0.1877, allocations: 211.5 kB / 0.5905 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1878, allocations: 0 / 0.5905 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.362e-06/0.1878, allocations: 3.938 kB / 0.5905 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.276e-05/0.1878, allocations: 4 kB / 0.5905 GB, free: 15.68 MB / 0.4981 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.0008142/0.1886, allocations: 0.5584 MB / 0.5911 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.1887, allocations: 16.03 kB / 0.5911 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.646e-05/0.1887, allocations: 46.55 kB / 0.5911 GB, free: 15 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.947e-05/0.1888, allocations: 31.62 kB / 0.5912 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004535/0.1893, allocations: 297.5 kB / 0.5914 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.652e-05/0.1893, allocations: 12 kB / 0.5915 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.525e-05/0.1894, allocations: 16 kB / 0.5915 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004077/0.1898, allocations: 223.9 kB / 0.5917 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1898, allocations: 0 / 0.5917 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.1898, allocations: 8 kB / 0.5917 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.1899, allocations: 0 / 0.5917 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002484/0.1901, allocations: 136.4 kB / 0.5918 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009113/0.191, allocations: 0.6962 MB / 0.5925 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.1914, allocations: 182.5 kB / 0.5927 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.462e-05/0.1914, allocations: 0 / 0.5927 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003206/0.1918, allocations: 173.2 kB / 0.5928 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.1918, allocations: 4 kB / 0.5928 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0007031/0.1925, allocations: 458.2 kB / 0.5933 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.867e-05/0.1926, allocations: 136.5 kB / 0.5934 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.1928, allocations: 286.6 kB / 0.5937 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.009e-05/0.1929, allocations: 33.7 kB / 0.5937 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.193, allocations: 160.1 kB / 0.5939 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.28e-05/0.1931, allocations: 43.44 kB / 0.5939 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.031e-05/0.1931, allocations: 7.938 kB / 0.5939 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1932, allocations: 342.8 kB / 0.5942 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001718/0.1934, allocations: 84.14 kB / 0.5943 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.1936, allocations: 137.5 kB / 0.5945 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.1937, allocations: 111.7 kB / 0.5946 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1938, allocations: 4.031 kB / 0.5946 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000454/0.1942, allocations: 342.8 kB / 0.5949 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.567e-05/0.1943, allocations: 37.7 kB / 0.5949 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.1943, allocations: 0 / 0.5949 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.1943, allocations: 4 kB / 0.5949 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.1944, allocations: 28.08 kB / 0.595 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1944, allocations: 0 / 0.595 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.1946, allocations: 27.83 kB / 0.595 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.1946, allocations: 12.03 kB / 0.595 GB, free: 10.76 MB / 0.4981 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001619/0.1948, allocations: 198.7 kB / 0.5952 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.36e-05/0.1948, allocations: 31.67 kB / 0.5952 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.995e-05/0.1948, allocations: 29.83 kB / 0.5952 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1949, allocations: 4 kB / 0.5953 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.1949, allocations: 0 / 0.5953 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1949, allocations: 0 / 0.5953 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002219/0.1951, allocations: 285.4 kB / 0.5955 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1951, allocations: 0 / 0.5955 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.1952, allocations: 19.98 kB / 0.5955 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.1952, allocations: 3.953 kB / 0.5955 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.1953, allocations: 11.94 kB / 0.5956 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1953, allocations: 0 / 0.5956 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1953, allocations: 0 / 0.5956 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006649/0.1959, allocations: 478.3 kB / 0.596 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.647e-05/0.196, allocations: 92.86 kB / 0.5961 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/0.1961, allocations: 15.95 kB / 0.5961 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.1962, allocations: 15.92 kB / 0.5961 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.186e-05/0.1963, allocations: 31.94 kB / 0.5962 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.1963, allocations: 4 kB / 0.5962 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001655/0.1965, allocations: 209.9 kB / 0.5964 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1965, allocations: 4.062 kB / 0.5964 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002645/0.1967, allocations: 59.97 kB / 0.5964 GB, free: 9.191 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009754/0.1977, allocations: 1.03 MB / 0.5974 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004238/0.1982, allocations: 311.2 kB / 0.5977 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1982, allocations: 4.25 kB / 0.5977 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.1984, allocations: 183.4 kB / 0.5979 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.1986, allocations: 30.56 kB / 0.5979 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002414/0.201, allocations: 2.064 MB / 0.6 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.2014, allocations: 0.7597 MB / 0.6007 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.897e-05/0.2014, allocations: 21.55 kB / 0.6007 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.2016, allocations: 75.34 kB / 0.6008 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of SimCode: time 2.9e-07/0.2016, allocations: 0 / 0.6008 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.282/0.4836, allocations: 4.832 MB / 0.6055 GB, free: 49.53 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/0.4838, allocations: 178.4 kB / 0.6057 GB, free: 49.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.028/2.512, allocations: 5.219 kB / 0.6057 GB, free: 49.29 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) Environment - environmentSimulation: