Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.conf.json 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/HanserModelica 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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) Running command: "" <> buildModelFMU(HanserModelica.InductionMachines.IMS_Characteristics1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMS_Characteristics1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 174.5 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04109/0.04109, allocations: 8.7 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 221.4 MB / 246 MB, free: 3.551 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008935/0.0008934, allocations: 86.98 kB / 299.1 MB, free: 3.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.478e-05/3.511e-05, allocations: 4 kB / 359.6 MB, free: 6.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2728, allocations: 52.53 MB / 412.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4288/0.7016, allocations: 131.1 MB / 0.5305 GB, free: 40.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001915/0.7019, allocations: 85.84 kB / 0.5306 GB, free: 40.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.426/2.128, allocations: 379.6 MB / 0.9013 GB, free: 50.66 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.155e-06/2.128, allocations: 0 / 0.9013 GB, free: 50.66 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0007862/2.129, allocations: 243.3 kB / 0.9015 GB, free: 50.64 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.04144/2.17, allocations: 10.18 MB / 0.9114 GB, free: 47.58 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.93e-05/2.17, allocations: 7.594 kB / 0.9114 GB, free: 47.58 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00865/2.179, allocations: 1.778 MB / 0.9132 GB, free: 47.44 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03296/2.212, allocations: 5.642 MB / 0.9187 GB, free: 46.84 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02292/2.235, allocations: 8.954 MB / 0.9274 GB, free: 45.68 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009768/2.236, allocations: 0.7698 MB / 0.9282 GB, free: 45.66 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005589/2.241, allocations: 1.011 MB / 0.9292 GB, free: 45.65 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05139/2.293, allocations: 17.84 MB / 0.9466 GB, free: 42.27 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004901/2.293, allocations: 11.75 kB / 0.9466 GB, free: 42.27 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004586/2.298, allocations: 449 kB / 0.947 GB, free: 41.94 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00109/2.299, allocations: 0.8692 MB / 0.9479 GB, free: 41.73 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03777/2.337, allocations: 16.05 MB / 0.9636 GB, free: 33.56 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1325/2.469, allocations: 58.47 MB / 1.021 GB, free: 0.8555 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4406/2.91, allocations: 37.92 MB / 1.058 GB, free: 32.85 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007741/2.918, allocations: 4.122 MB / 1.062 GB, free: 32.78 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000612/2.919, allocations: 190.6 kB / 1.062 GB, free: 32.68 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.576e-05/2.919, allocations: 86.14 kB / 1.062 GB, free: 32.63 MB / 490.7 MB Notification: Performance of pre-optimization done (n=524): time 7.504e-06/2.919, allocations: 0 / 1.062 GB, free: 32.63 MB / 490.7 MB Notification: Performance of matching and sorting (n=530): time 0.0301/2.949, allocations: 15.54 MB / 1.077 GB, free: 30.98 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.759e-05/2.949, allocations: 107.8 kB / 1.077 GB, free: 30.91 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006955/2.956, allocations: 3.577 MB / 1.081 GB, free: 30.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001347/2.957, allocations: 112.5 kB / 1.081 GB, free: 30.54 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003685/2.961, allocations: 4.515 MB / 1.085 GB, free: 28.25 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002745/2.964, allocations: 1.797 MB / 1.087 GB, free: 27.11 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005577/2.964, allocations: 144.9 kB / 1.087 GB, free: 27.11 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004649/2.965, allocations: 0.5885 MB / 1.088 GB, free: 26.79 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005244/2.97, allocations: 3.37 MB / 1.091 GB, free: 26.78 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007308/2.977, allocations: 5.792 MB / 1.097 GB, free: 23.89 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008249/2.986, allocations: 4.734 MB / 1.101 GB, free: 23.79 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001103/2.986, allocations: 20.97 kB / 1.101 GB, free: 23.79 MB / 490.7 MB Notification: Performance of matching and sorting (n=917) (initialization): time 0.02201/3.008, allocations: 10.78 MB / 1.112 GB, free: 23.29 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002604/3.008, allocations: 39.03 kB / 1.112 GB, free: 23.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003693/3.009, allocations: 81.19 kB / 1.112 GB, free: 23.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004304/3.013, allocations: 1.375 MB / 1.113 GB, free: 23.26 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006806/3.02, allocations: 1.607 MB / 1.115 GB, free: 23.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01776/3.037, allocations: 10.51 MB / 1.125 GB, free: 21.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007817/3.045, allocations: 424.1 kB / 1.126 GB, free: 21.03 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002385/3.048, allocations: 334.5 kB / 1.126 GB, free: 20.98 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 356 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (844): * Single equations (assignments): 839 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,40.8%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003776/3.052, allocations: 0.5357 MB / 1.126 GB, free: 20.62 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002446/3.054, allocations: 478.7 kB / 1.127 GB, free: 20.38 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02188/3.076, allocations: 8.362 MB / 1.135 GB, free: 17.12 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01491/3.091, allocations: 6.938 MB / 1.142 GB, free: 14.53 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.78e-05/3.091, allocations: 11.47 kB / 1.142 GB, free: 14.53 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001478/3.091, allocations: 29.77 kB / 1.142 GB, free: 14.53 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05358/3.145, allocations: 19.68 MB / 1.161 GB, free: 6.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.646e-05/3.145, allocations: 3.562 kB / 1.161 GB, free: 6.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004445/3.149, allocations: 0.9313 MB / 1.162 GB, free: 6.039 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003667/3.153, allocations: 1.201 MB / 1.163 GB, free: 5.793 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001163/3.154, allocations: 118.2 kB / 1.163 GB, free: 5.719 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01475/3.169, allocations: 9.133 MB / 1.172 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/3.169, allocations: 3.422 kB / 1.172 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03094/3.2, allocations: 12.23 MB / 1.184 GB, free: 4.117 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004886/3.205, allocations: 1.163 MB / 1.185 GB, free: 3.059 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002449/3.207, allocations: 92 kB / 1.185 GB, free: 2.969 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00502/3.213, allocations: 288.8 kB / 1.186 GB, free: 2.762 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001724/3.214, allocations: 350.1 kB / 1.186 GB, free: 2.547 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001212/3.216, allocations: 147.1 kB / 1.186 GB, free: 2.41 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00745/3.223, allocations: 2.663 MB / 1.189 GB, free: 44 kB / 0.4948 GB Notification: Performance of sort global known variables: time 7.41e-07/3.223, allocations: 4 kB / 1.189 GB, free: 40 kB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01424/3.237, allocations: 1.977 MB / 1.191 GB, free: 14.09 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (speed.phi,resistor.resistor[1].pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (502): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.3%) 56} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02904/3.266, allocations: 13.74 MB / 1.204 GB, free: 1.793 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02079/3.287, allocations: 8.71 MB / 1.213 GB, free: 10.42 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/3.287, allocations: 448 / 1.213 GB, free: 10.42 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009701/3.297, allocations: 4.089 MB / 1.217 GB, free: 6.715 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008474/3.305, allocations: 0.9891 MB / 1.217 GB, free: 5.941 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4363/3.742, allocations: 19.85 MB / 1.237 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01255/3.754, allocations: 7.194 MB / 1.244 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007977/3.762, allocations: 2.329 MB / 1.246 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009019/3.771, allocations: 3.903 MB / 1.25 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.964e-06/3.771, allocations: 2.188 kB / 1.25 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2419/4.013, allocations: 150.3 MB / 1.397 GB, free: 25.65 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/4.014, allocations: 174.8 kB / 1.397 GB, free: 25.43 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.212/10.23, allocations: 4.062 kB / 1.397 GB, free: 25.43 MB / 0.5261 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1.fmu > HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe 2>&1)