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.001639/0.001639, 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.002492/0.002492, 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 2.266/2.266, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.196/1.196, allocations: 132.2 MB / 423.2 MB, free: 2.184 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005146/0.0005152, allocations: 12 kB / 0.5033 GB, free: 4.199 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7263/0.7268, allocations: 81.57 MB / 0.583 GB, free: 3.879 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002914/0.7298, allocations: 1.605 MB / 0.5845 GB, free: 2.719 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0016/0.7315, allocations: 0.6528 MB / 0.5852 GB, free: 2.27 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.7316, allocations: 6.969 kB / 0.5852 GB, free: 2.266 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000212/0.7319, allocations: 76.08 kB / 0.5853 GB, free: 2.25 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002335/0.7321, allocations: 84.17 kB / 0.5853 GB, free: 2.23 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007036/0.7328, allocations: 130 kB / 0.5855 GB, free: 2.168 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004046/0.7332, allocations: 150.5 kB / 0.5856 GB, free: 2.098 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.7335, allocations: 54.09 kB / 0.5857 GB, free: 2.078 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002085/0.7337, allocations: 86.16 kB / 0.5857 GB, free: 2.051 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002886/0.734, allocations: 117.1 kB / 0.5858 GB, free: 2.012 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.196e-05/0.734, allocations: 5.344 kB / 0.5858 GB, free: 2.012 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000224/0.7343, allocations: 68.19 kB / 0.5859 GB, free: 1.996 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.765e-05/0.7344, allocations: 45.22 kB / 0.586 GB, free: 1.977 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 8.561e-05/0.7345, allocations: 58.75 kB / 0.586 GB, free: 1.926 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005454/0.735, allocations: 215.4 kB / 0.5862 GB, free: 1.875 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.735, allocations: 4 kB / 0.5862 GB, free: 1.871 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.7351, allocations: 0 / 0.5862 GB, free: 1.871 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.7351, allocations: 0 / 0.5862 GB, free: 1.871 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.001092/0.7362, allocations: 0.559 MB / 0.5868 GB, free: 1.375 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.181e-05/0.7362, allocations: 12.84 kB / 0.5868 GB, free: 1.371 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.26e-05/0.7363, allocations: 47.42 kB / 0.5868 GB, free: 1.324 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.536e-05/0.7364, allocations: 26.56 kB / 0.5869 GB, free: 1.312 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006715/0.7371, allocations: 297.5 kB / 0.5871 GB, free: 1.062 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.275e-05/0.7371, allocations: 14.06 kB / 0.5871 GB, free: 1.055 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.586e-05/0.7372, allocations: 13.53 kB / 0.5872 GB, free: 1.051 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005195/0.7377, allocations: 219.3 kB / 0.5874 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.7377, allocations: 0 / 0.5874 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.7378, allocations: 10.44 kB / 0.5874 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.7378, allocations: 7.453 kB / 0.5874 GB, free: 0.918 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003466/0.7381, allocations: 135.4 kB / 0.5875 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.7393, allocations: 0.6905 MB / 0.5882 GB, free: 324 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004821/0.7398, allocations: 174.4 kB / 0.5884 GB, free: 256 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.851e-05/0.7398, allocations: 1.281 kB / 0.5884 GB, free: 256 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004194/0.7402, allocations: 177 kB / 0.5885 GB, free: 144 kB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 2.014e-06/0.7402, allocations: 0 / 0.5885 GB, free: 144 kB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.001065/0.7413, allocations: 462.7 kB / 0.589 GB, free: 15.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.7414, allocations: 141.6 kB / 0.5891 GB, free: 15.74 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004137/0.7419, allocations: 282.8 kB / 0.5894 GB, free: 15.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.945e-05/0.7419, allocations: 33.2 kB / 0.5894 GB, free: 15.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.7421, allocations: 154.9 kB / 0.5896 GB, free: 15.42 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.7422, allocations: 42.14 kB / 0.5896 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.505e-05/0.7423, allocations: 5 kB / 0.5896 GB, free: 15.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.7425, allocations: 342.5 kB / 0.5899 GB, free: 15.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002856/0.7428, allocations: 93.81 kB / 0.59 GB, free: 15.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003388/0.7431, allocations: 132.2 kB / 0.5901 GB, free: 14.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/0.7434, allocations: 115.2 kB / 0.5902 GB, free: 14.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.7434, allocations: 0.9688 kB / 0.5903 GB, free: 14.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007836/0.7442, allocations: 345 kB / 0.5906 GB, free: 14.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.728e-05/0.7443, allocations: 40.83 kB / 0.5906 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.7443, allocations: 4.906 kB / 0.5906 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.7444, allocations: 2.156 kB / 0.5906 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.7445, allocations: 23.33 kB / 0.5906 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.403e-05/0.7446, allocations: 2.266 kB / 0.5906 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.7448, allocations: 29.77 kB / 0.5907 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.7448, allocations: 6.812 kB / 0.5907 GB, free: 14.7 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.0002889/0.7451, allocations: 201.2 kB / 0.5909 GB, free: 14.53 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.4e-05/0.7452, allocations: 24.53 kB / 0.5909 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.765e-05/0.7452, allocations: 31.73 kB / 0.5909 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.7453, allocations: 1.375 kB / 0.5909 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.7453, allocations: 4.609 kB / 0.5909 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.7453, allocations: 0.75 kB / 0.5909 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004551/0.7457, allocations: 288.5 kB / 0.5912 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.82e-06/0.7458, allocations: 4.656 kB / 0.5912 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001366/0.7459, allocations: 21.03 kB / 0.5912 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.7459, allocations: 1.062 kB / 0.5912 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/0.746, allocations: 7.578 kB / 0.5912 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.746, allocations: 1.453 kB / 0.5912 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.746, allocations: 0.625 kB / 0.5912 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.7471, allocations: 472.8 kB / 0.5917 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.617e-05/0.7472, allocations: 104.7 kB / 0.5918 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.191e-05/0.7472, allocations: 8.234 kB / 0.5918 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.7474, allocations: 22.66 kB / 0.5918 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.7475, allocations: 23.05 kB / 0.5918 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.309e-05/0.7475, allocations: 14.66 kB / 0.5919 GB, free: 13.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003339/0.7479, allocations: 198.6 kB / 0.5921 GB, free: 13.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7479, allocations: 0 / 0.5921 GB, free: 13.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003959/0.7483, allocations: 59.33 kB / 0.5921 GB, free: 13.79 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.001512/0.7498, allocations: 1.041 MB / 0.5931 GB, free: 13.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007268/0.7505, allocations: 302.2 kB / 0.5934 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.7506, allocations: 0 / 0.5934 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003289/0.7509, allocations: 186.2 kB / 0.5936 GB, free: 12.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.7513, allocations: 33.56 kB / 0.5936 GB, free: 12.79 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004028/0.7553, allocations: 2.072 MB / 0.5956 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005564/0.7559, allocations: 0.7582 MB / 0.5964 GB, free: 10.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000131/0.756, allocations: 20.84 kB / 0.5964 GB, free: 10.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.7562, allocations: 70.55 kB / 0.5965 GB, free: 10.74 MB / 446.1 MB Notification: Performance of SimCode: time 4.589e-06/0.7562, allocations: 0 / 0.5965 GB, free: 10.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02615/0.7824, allocations: 4.851 MB / 0.6012 GB, free: 9.086 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002803/0.7827, allocations: 165 kB / 0.6014 GB, free: 8.848 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.128/3.911, allocations: 0 / 0.6014 GB, free: 8.848 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: