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/ModelicaServices 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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008976/0.008976, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.502/1.502, allocations: 222.9 MB / 239.4 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 196.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05432/0.05432, allocations: 8.796 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 79.88 kB / 463.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.123, allocations: 51.56 MB / 0.5029 GB, free: 9.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.2767/0.3997, allocations: 27 MB / 0.5293 GB, free: 5.004 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01722/0.4169, allocations: 8.052 MB / 0.5371 GB, free: 4.898 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007196/0.4241, allocations: 204.1 kB / 0.5373 GB, free: 4.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02234/0.4465, allocations: 9.313 MB / 0.5464 GB, free: 3.711 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01284/0.4593, allocations: 3.316 MB / 0.5497 GB, free: 2.797 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0057/0.4651, allocations: 1.802 MB / 0.5514 GB, free: 2.648 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01742/0.4825, allocations: 12.14 MB / 0.5633 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04775/0.5303, allocations: 24.39 MB / 0.5871 GB, free: 9.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01381/0.5441, allocations: 6.476 MB / 0.5934 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01406/0.5582, allocations: 7.167 MB / 0.6004 GB, free: 12.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006121/0.5644, allocations: 1.84 MB / 0.6022 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008899/0.5733, allocations: 2.199 MB / 0.6044 GB, free: 8.504 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006351/0.5797, allocations: 3.609 MB / 0.6079 GB, free: 4.938 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01495/0.5947, allocations: 6.921 MB / 0.6147 GB, free: 14.04 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03731/0.632, allocations: 24.73 MB / 0.6388 GB, free: 5.715 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.667e-06/0.6321, allocations: 4 kB / 0.6388 GB, free: 5.711 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.078e-06/0.6321, allocations: 0 / 0.6388 GB, free: 5.711 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001063/0.6332, allocations: 3.938 kB / 0.6388 GB, free: 5.707 MB / 446.1 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.04807/0.6813, allocations: 14.48 MB / 0.653 GB, free: 7.234 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.6813, allocations: 12.03 kB / 0.653 GB, free: 7.223 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007523/0.6889, allocations: 1.785 MB / 0.6547 GB, free: 5.438 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04754/0.7364, allocations: 8.484 MB / 0.663 GB, free: 13.04 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01649/0.7529, allocations: 7.645 MB / 0.6705 GB, free: 5.355 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007786/0.7538, allocations: 0.807 MB / 0.6713 GB, free: 4.562 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005035/0.7588, allocations: 1.056 MB / 0.6723 GB, free: 3.52 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05356/0.8124, allocations: 18.29 MB / 0.6902 GB, free: 1.215 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004681/0.8129, allocations: 19.8 kB / 0.6902 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00497/0.8179, allocations: 453.7 kB / 0.6906 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007693/0.8186, allocations: 0.675 MB / 0.6913 GB, free: 92 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04069/0.8593, allocations: 17.53 MB / 0.7084 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6003/1.46, allocations: 58.06 MB / 0.7651 GB, free: 118.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0289/1.489, allocations: 37.48 MB / 0.8017 GB, free: 83.13 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00945/1.498, allocations: 4.107 MB / 0.8057 GB, free: 80.98 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006836/1.499, allocations: 200.4 kB / 0.8059 GB, free: 80.84 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001201/1.499, allocations: 89.44 kB / 0.806 GB, free: 80.77 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=518): time 1.309e-05/1.499, allocations: 0 / 0.806 GB, free: 80.77 MB / 0.5138 GB Notification: Performance of matching and sorting (n=524): time 0.07543/1.575, allocations: 21.44 MB / 0.8269 GB, free: 66.87 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.108e-05/1.575, allocations: 107.5 kB / 0.827 GB, free: 66.75 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008333/1.583, allocations: 4.183 MB / 0.8311 GB, free: 62.54 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001103/1.584, allocations: 105.7 kB / 0.8312 GB, free: 62.43 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002614/1.587, allocations: 4.515 MB / 0.8356 GB, free: 57.88 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002047/1.589, allocations: 1.777 MB / 0.8373 GB, free: 56.12 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003801/1.593, allocations: 1.351 MB / 0.8387 GB, free: 54.76 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.762e-05/1.593, allocations: 309 kB / 0.839 GB, free: 54.46 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00431/1.597, allocations: 3.441 MB / 0.8423 GB, free: 51.01 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005201/1.602, allocations: 5.883 MB / 0.8481 GB, free: 44.04 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01189/1.614, allocations: 10.02 MB / 0.8578 GB, free: 32.85 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.673e-05/1.614, allocations: 24 kB / 0.8579 GB, free: 32.82 MB / 0.5138 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.01939/1.634, allocations: 10.93 MB / 0.8685 GB, free: 21.8 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001303/1.634, allocations: 37.56 kB / 0.8686 GB, free: 21.76 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002154/1.634, allocations: 80 kB / 0.8687 GB, free: 21.68 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00409/1.638, allocations: 1.43 MB / 0.8701 GB, free: 20.25 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006034/1.644, allocations: 1.614 MB / 0.8716 GB, free: 18.64 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01624/1.66, allocations: 11.47 MB / 0.8828 GB, free: 7.023 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007423/1.668, allocations: 411.3 kB / 0.8832 GB, free: 6.621 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002134/1.67, allocations: 335.9 kB / 0.8835 GB, free: 6.293 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 354 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (840): * Single equations (assignments): 838 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,40.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01053/1.681, allocations: 4.165 MB / 0.8876 GB, free: 2.113 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00207/1.683, allocations: 474.2 kB / 0.8881 GB, free: 1.645 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01838/1.701, allocations: 8.475 MB / 0.8963 GB, free: 9.062 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01306/1.714, allocations: 7.084 MB / 0.9033 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.903e-05/1.714, allocations: 12 kB / 0.9033 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.342e-05/1.714, allocations: 27.89 kB / 0.9033 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04584/1.76, allocations: 18.76 MB / 0.9216 GB, free: 15.01 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.222e-05/1.76, allocations: 4 kB / 0.9216 GB, free: 15.01 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004436/1.765, allocations: 0.9403 MB / 0.9225 GB, free: 14.07 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004226/1.769, allocations: 1.281 MB / 0.9238 GB, free: 12.78 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009342/1.77, allocations: 112 kB / 0.9239 GB, free: 12.67 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01739/1.788, allocations: 10.17 MB / 0.9338 GB, free: 2.371 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/1.788, allocations: 4 kB / 0.9338 GB, free: 2.367 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3618/2.149, allocations: 12.26 MB / 0.9458 GB, free: 179.6 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003714/2.153, allocations: 1.164 MB / 0.9469 GB, free: 179.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001499/2.155, allocations: 90.33 kB / 0.947 GB, free: 179.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003216/2.158, allocations: 270.4 kB / 0.9473 GB, free: 179.5 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001049/2.159, allocations: 347.9 kB / 0.9476 GB, free: 179.5 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003931/2.159, allocations: 150.8 kB / 0.9478 GB, free: 179.5 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.006243/2.166, allocations: 2.818 MB / 0.9505 GB, free: 179.3 MB / 0.5607 GB Notification: Performance of sort global known variables: time 6.01e-07/2.166, allocations: 0 / 0.9505 GB, free: 179.3 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01101/2.177, allocations: 1.933 MB / 0.9524 GB, free: 179.3 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (ims.rotor.stray.port_p.reference.gamma,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (499): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,40.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03068/2.207, allocations: 13.04 MB / 0.9651 GB, free: 174.2 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01571/2.223, allocations: 8.729 MB / 0.9737 GB, free: 170.8 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/2.223, allocations: 3.969 kB / 0.9737 GB, free: 170.8 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.00763/2.231, allocations: 4.169 MB / 0.9777 GB, free: 169.1 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008541/2.239, allocations: 1.13 MB / 0.9788 GB, free: 168.7 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1138/2.353, allocations: 63.82 MB / 1.041 GB, free: 109.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008884/2.362, allocations: 7.001 MB / 1.048 GB, free: 102.4 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005687/2.368, allocations: 2.313 MB / 1.05 GB, free: 100.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005819/2.374, allocations: 3.842 MB / 1.054 GB, free: 96.23 MB / 0.5607 GB Notification: Performance of SimCode: time 9.22e-07/2.374, allocations: 0 / 1.054 GB, free: 96.23 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4948/2.869, allocations: 149.7 MB / 1.2 GB, free: 148 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.85/23.72, allocations: 64 / 1.2 GB, free: 148 MB / 0.5607 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/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)