Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_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.0008693/0.0008696, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.00109/0.00109, allocations: 168.7 kB / 15.95 MB, free: 204 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.455/1.455, allocations: 223.2 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7708/0.7708, allocations: 132.3 MB / 423.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003425, allocations: 12 kB / 0.5035 GB, free: 4.113 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4451/0.4455, allocations: 81.57 MB / 0.5832 GB, free: 3.988 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002026/0.4476, allocations: 1.61 MB / 0.5847 GB, free: 2.82 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.4486, allocations: 0.6634 MB / 0.5854 GB, free: 2.363 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.481e-05/0.4487, allocations: 4.375 kB / 0.5854 GB, free: 2.363 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002123/0.449, allocations: 67.95 kB / 0.5854 GB, free: 2.355 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.4491, allocations: 82.69 kB / 0.5855 GB, free: 2.336 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004915/0.4496, allocations: 137 kB / 0.5856 GB, free: 2.27 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002859/0.4499, allocations: 216.9 kB / 0.5859 GB, free: 2.176 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.4501, allocations: 57 kB / 0.5859 GB, free: 2.152 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.4502, allocations: 84.59 kB / 0.586 GB, free: 2.129 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.4504, allocations: 119.8 kB / 0.5861 GB, free: 2.09 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.6e-05/0.4505, allocations: 6.062 kB / 0.5861 GB, free: 2.09 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000163/0.4506, allocations: 72.69 kB / 0.5862 GB, free: 2.074 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.598e-05/0.4507, allocations: 40.42 kB / 0.5862 GB, free: 2.059 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.224e-05/0.4508, allocations: 66.36 kB / 0.5863 GB, free: 2 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.4511, allocations: 220.1 kB / 0.5865 GB, free: 1.945 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.4511, allocations: 0 / 0.5865 GB, free: 1.945 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4512, allocations: 3.938 kB / 0.5865 GB, free: 1.941 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.4512, allocations: 3.938 kB / 0.5865 GB, free: 1.938 MB / 430.1 MB 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.0007692/0.4519, allocations: 0.5499 MB / 0.587 GB, free: 1.449 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.452, allocations: 8.531 kB / 0.587 GB, free: 1.449 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.771e-05/0.4521, allocations: 47.14 kB / 0.5871 GB, free: 1.402 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.09e-05/0.4521, allocations: 35.17 kB / 0.5871 GB, free: 1.383 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004385/0.4526, allocations: 296.6 kB / 0.5874 GB, free: 1.133 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/0.4526, allocations: 11.5 kB / 0.5874 GB, free: 1.129 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.688e-05/0.4526, allocations: 13.12 kB / 0.5874 GB, free: 1.125 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004163/0.4531, allocations: 227.9 kB / 0.5876 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.4531, allocations: 0.75 kB / 0.5876 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.049e-05/0.4531, allocations: 6.75 kB / 0.5877 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.4531, allocations: 2.75 kB / 0.5877 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002714/0.4534, allocations: 138.7 kB / 0.5878 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008025/0.4542, allocations: 0.6835 MB / 0.5885 GB, free: 404 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.4546, allocations: 178.1 kB / 0.5886 GB, free: 332 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.4548, allocations: 106.2 kB / 0.5887 GB, free: 292 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.4548, allocations: 1.156 kB / 0.5887 GB, free: 292 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003068/0.4552, allocations: 170 kB / 0.5889 GB, free: 188 kB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.4552, allocations: 0 / 0.5889 GB, free: 188 kB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007431/0.4559, allocations: 390.6 kB / 0.5893 GB, free: 36 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.769e-05/0.456, allocations: 137 kB / 0.5894 GB, free: 15.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003411/0.4564, allocations: 283.9 kB / 0.5897 GB, free: 15.72 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.4564, allocations: 31.8 kB / 0.5897 GB, free: 15.69 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.4565, allocations: 167.7 kB / 0.5899 GB, free: 15.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.212e-05/0.4566, allocations: 41.33 kB / 0.5899 GB, free: 15.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.047e-05/0.4566, allocations: 1.375 kB / 0.5899 GB, free: 15.51 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.4567, allocations: 338 kB / 0.5902 GB, free: 15.19 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.4569, allocations: 87.3 kB / 0.5903 GB, free: 15.17 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.4572, allocations: 141.7 kB / 0.5904 GB, free: 15.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.4574, allocations: 113.2 kB / 0.5905 GB, free: 15.03 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.4574, allocations: 0 / 0.5905 GB, free: 15.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005799/0.458, allocations: 340.6 kB / 0.5909 GB, free: 14.89 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.744e-05/0.458, allocations: 39.95 kB / 0.5909 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.458, allocations: 1.531 kB / 0.5909 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.4581, allocations: 1.562 kB / 0.5909 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.4582, allocations: 28.12 kB / 0.5909 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.4582, allocations: 9.656 kB / 0.5909 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.4584, allocations: 30.66 kB / 0.591 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.4584, allocations: 5.594 kB / 0.591 GB, free: 14.83 MB / 446.1 MB 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.0002649/0.4587, allocations: 202.7 kB / 0.5912 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.24e-05/0.4587, allocations: 25.81 kB / 0.5912 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.574e-05/0.4588, allocations: 34.08 kB / 0.5912 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.4588, allocations: 1.281 kB / 0.5912 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4588, allocations: 1.234 kB / 0.5912 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.4588, allocations: 0.7969 kB / 0.5912 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003228/0.4591, allocations: 296.6 kB / 0.5915 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.4592, allocations: 0.5938 kB / 0.5915 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.4593, allocations: 17.28 kB / 0.5915 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.4593, allocations: 0.9688 kB / 0.5915 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.4593, allocations: 4.547 kB / 0.5915 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.4593, allocations: 1.375 kB / 0.5915 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4593, allocations: 4.703 kB / 0.5915 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008448/0.4602, allocations: 480.2 kB / 0.592 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.403e-05/0.4603, allocations: 103.9 kB / 0.5921 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.844e-05/0.4603, allocations: 12.44 kB / 0.5921 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.4604, allocations: 16.48 kB / 0.5921 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.214e-05/0.4605, allocations: 25.77 kB / 0.5922 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.576e-05/0.4606, allocations: 6.047 kB / 0.5922 GB, free: 14.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000234/0.4608, allocations: 202.1 kB / 0.5924 GB, free: 13.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4608, allocations: 0 / 0.5924 GB, free: 13.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003557/0.4612, allocations: 61.02 kB / 0.5924 GB, free: 13.92 MB / 446.1 MB 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.001274/0.4625, allocations: 1.038 MB / 0.5934 GB, free: 13.17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006004/0.4631, allocations: 297.1 kB / 0.5937 GB, free: 13.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.4631, allocations: 0 / 0.5937 GB, free: 13.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003103/0.4634, allocations: 194.8 kB / 0.5939 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.4638, allocations: 29.23 kB / 0.5939 GB, free: 12.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003474/0.4672, allocations: 1.643 MB / 0.5955 GB, free: 12.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.4677, allocations: 0.7535 MB / 0.5963 GB, free: 11.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.4678, allocations: 20.14 kB / 0.5963 GB, free: 11.37 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.4679, allocations: 75.42 kB / 0.5964 GB, free: 11.31 MB / 446.1 MB Notification: Performance of SimCode: time 1.603e-06/0.4679, allocations: 0 / 0.5964 GB, free: 11.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.4889, allocations: 4.864 MB / 0.6011 GB, free: 9.602 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/0.4892, allocations: 176.4 kB / 0.6013 GB, free: 9.363 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/2.299, allocations: 0 / 0.6013 GB, free: 9.363 MB / 446.1 MB (rm -f IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) Environment - environmentSimulation: