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.006224/0.006224, 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.002237/0.002237, allocations: 196.2 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.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9569/0.9569, allocations: 135.1 MB / 425.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.89 kB / 0.5851 GB, free: 3.859 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4311/0.4325, allocations: 80.91 MB / 0.6641 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002632/0.4352, allocations: 1.965 MB / 0.6661 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001099/0.4363, allocations: 0.694 MB / 0.6667 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.4365, allocations: 7.062 kB / 0.6667 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.4367, allocations: 86.66 kB / 0.6668 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.4368, allocations: 87.95 kB / 0.6669 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005428/0.4374, allocations: 188 kB / 0.6671 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002789/0.4377, allocations: 261 kB / 0.6673 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.4378, allocations: 76.72 kB / 0.6674 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001236/0.438, allocations: 113.5 kB / 0.6675 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001927/0.4382, allocations: 152.2 kB / 0.6677 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.649e-05/0.4382, allocations: 23.47 kB / 0.6677 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.4384, allocations: 94.05 kB / 0.6678 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.172e-05/0.4385, allocations: 61.86 kB / 0.6678 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.4386, allocations: 101.2 kB / 0.6679 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003767/0.439, allocations: 319.1 kB / 0.6682 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.439, allocations: 0 / 0.6682 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.253e-06/0.439, allocations: 0 / 0.6682 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.58e-05/0.439, allocations: 1.125 kB / 0.6682 GB, free: 4.176 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.0008173/0.4398, allocations: 0.5804 MB / 0.6688 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.4399, allocations: 9.344 kB / 0.6688 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.925e-05/0.44, allocations: 44.16 kB / 0.6689 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.092e-05/0.44, allocations: 34.55 kB / 0.6689 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005108/0.4405, allocations: 310 kB / 0.6692 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.743e-05/0.4406, allocations: 14.56 kB / 0.6692 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.4406, allocations: 13.53 kB / 0.6692 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003993/0.441, allocations: 221.8 kB / 0.6694 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.4411, allocations: 0 / 0.6694 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/0.4411, allocations: 10.62 kB / 0.6694 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.4411, allocations: 7.281 kB / 0.6694 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002572/0.4414, allocations: 131.2 kB / 0.6696 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007682/0.4421, allocations: 0.6736 MB / 0.6702 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003498/0.4425, allocations: 171.1 kB / 0.6704 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.4427, allocations: 96.08 kB / 0.6705 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.4427, allocations: 5.031 kB / 0.6705 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002568/0.443, allocations: 182.6 kB / 0.6707 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.443, allocations: 0 / 0.6707 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006738/0.4436, allocations: 375 kB / 0.671 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.4437, allocations: 132.2 kB / 0.6711 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002332/0.4439, allocations: 279.7 kB / 0.6714 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.444, allocations: 33.48 kB / 0.6714 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.097e-05/0.4441, allocations: 157.4 kB / 0.6716 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.121e-05/0.4441, allocations: 38.05 kB / 0.6716 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.045e-05/0.4442, allocations: 46.2 kB / 0.6717 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.616e-05/0.4442, allocations: 341.5 kB / 0.672 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.4444, allocations: 87.61 kB / 0.6721 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.4446, allocations: 133.9 kB / 0.6722 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.4449, allocations: 239.1 kB / 0.6724 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4449, allocations: 1.469 kB / 0.6724 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004674/0.4454, allocations: 332.8 kB / 0.6727 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.737e-05/0.4454, allocations: 41.75 kB / 0.6728 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.4454, allocations: 1.438 kB / 0.6728 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.4454, allocations: 1.375 kB / 0.6728 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.4456, allocations: 26.23 kB / 0.6728 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.4456, allocations: 6.125 kB / 0.6728 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.4457, allocations: 26.36 kB / 0.6728 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.4458, allocations: 5.344 kB / 0.6729 GB, free: 0.5078 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 (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.0001489/0.4459, allocations: 198.3 kB / 0.673 GB, free: 340 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.446, allocations: 25.53 kB / 0.6731 GB, free: 328 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.626e-05/0.446, allocations: 30.7 kB / 0.6731 GB, free: 308 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.446, allocations: 1.062 kB / 0.6731 GB, free: 308 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.446, allocations: 5.062 kB / 0.6731 GB, free: 304 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.446, allocations: 0 / 0.6731 GB, free: 304 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.4463, allocations: 298.5 kB / 0.6734 GB, free: 8 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.4463, allocations: 0 / 0.6734 GB, free: 8 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.4464, allocations: 19.2 kB / 0.6734 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.4464, allocations: 1.438 kB / 0.6734 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.4465, allocations: 10.67 kB / 0.6734 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.4465, allocations: 5.125 kB / 0.6734 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4465, allocations: 3.938 kB / 0.6734 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007334/0.4472, allocations: 468.1 kB / 0.6739 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.096e-05/0.4473, allocations: 99.33 kB / 0.674 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.933e-05/0.4474, allocations: 8.75 kB / 0.674 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.4475, allocations: 10.52 kB / 0.674 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.267e-05/0.4476, allocations: 29.78 kB / 0.674 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.4476, allocations: 8.359 kB / 0.674 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001788/0.4478, allocations: 202 kB / 0.6742 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4478, allocations: 0 / 0.6742 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002903/0.4481, allocations: 59.78 kB / 0.6743 GB, free: 15.46 MB / 0.5137 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.001057/0.4491, allocations: 1.025 MB / 0.6753 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004822/0.4496, allocations: 294.8 kB / 0.6756 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4496, allocations: 0 / 0.6756 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002304/0.4499, allocations: 184.7 kB / 0.6757 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.4502, allocations: 36.27 kB / 0.6758 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003558/0.4538, allocations: 2.778 MB / 0.6785 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.4541, allocations: 0.7485 MB / 0.6792 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 9.636e-05/0.4542, allocations: 18.95 kB / 0.6792 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.4543, allocations: 72.34 kB / 0.6793 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of SimCode: time 9.31e-07/0.4543, allocations: 0 / 0.6793 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02364/0.478, allocations: 5.499 MB / 0.6847 GB, free: 8.898 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.848/8.326, allocations: 3.75 kB / 0.6847 GB, free: 8.898 MB / 0.5137 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/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)