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.001076/0.001076, allocations: 108 kB / 15.6 MB, free: 132 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.359/1.359, allocations: 222.9 MB / 239.3 MB, free: 4.637 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.001347/0.001347, allocations: 188.5 kB / 289.6 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03423/0.03423, allocations: 8.799 MB / 348.5 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 76.91 kB / 411.2 MB, free: 41.95 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09347/0.09513, allocations: 51.57 MB / 462.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.02832/0.1235, allocations: 27 MB / 489.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01875/0.1423, allocations: 8.047 MB / 497.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005497/0.1478, allocations: 199.4 kB / 498 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02117/0.169, allocations: 9.328 MB / 0.4954 GB, free: 1.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01382/0.1829, allocations: 3.312 MB / 0.4987 GB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0082/0.1911, allocations: 1.819 MB / 0.5004 GB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02146/0.2125, allocations: 12.05 MB / 0.5122 GB, free: 320 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2718/0.4844, allocations: 24.48 MB / 0.5361 GB, free: 11.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01149/0.4959, allocations: 6.439 MB / 0.5424 GB, free: 11.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01433/0.5103, allocations: 7.208 MB / 0.5494 GB, free: 10.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006029/0.5164, allocations: 1.839 MB / 0.5512 GB, free: 10.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008501/0.5249, allocations: 2.21 MB / 0.5534 GB, free: 10.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007239/0.5322, allocations: 3.622 MB / 0.5569 GB, free: 9.992 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0153/0.5475, allocations: 6.918 MB / 0.5637 GB, free: 8.422 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02457/0.5721, allocations: 24.61 MB / 0.5877 GB, free: 9.695 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.5722, allocations: 3.656 kB / 0.5877 GB, free: 9.695 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5722, allocations: 0 / 0.5877 GB, free: 9.695 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006276/0.5728, allocations: 0 / 0.5877 GB, free: 9.695 MB / 382.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.0417/0.6145, allocations: 14.55 MB / 0.6019 GB, free: 11.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.6146, allocations: 8.031 kB / 0.6019 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005564/0.6201, allocations: 1.794 MB / 0.6037 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0469/0.6671, allocations: 8.433 MB / 0.6119 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01622/0.6833, allocations: 7.442 MB / 0.6192 GB, free: 9.82 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007296/0.6841, allocations: 0.8143 MB / 0.62 GB, free: 9.02 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00469/0.6888, allocations: 1.055 MB / 0.621 GB, free: 7.977 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04295/0.7317, allocations: 18.3 MB / 0.6389 GB, free: 5.668 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003531/0.7321, allocations: 23.36 kB / 0.6389 GB, free: 5.648 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003829/0.736, allocations: 458 kB / 0.6394 GB, free: 5.215 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006728/0.7367, allocations: 0.6633 MB / 0.64 GB, free: 4.551 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03721/0.7739, allocations: 17.53 MB / 0.6571 GB, free: 3.012 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5175/1.291, allocations: 58.73 MB / 0.7145 GB, free: 94.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02834/1.32, allocations: 37.47 MB / 0.7511 GB, free: 63.74 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005974/1.326, allocations: 4.119 MB / 0.7551 GB, free: 63.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004053/1.326, allocations: 196.4 kB / 0.7553 GB, free: 63.56 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.556e-05/1.326, allocations: 93.75 kB / 0.7554 GB, free: 63.51 MB / 494.1 MB Notification: Performance of pre-optimization done (n=518): time 7.043e-06/1.326, allocations: 2.531 kB / 0.7554 GB, free: 63.51 MB / 494.1 MB Notification: Performance of matching and sorting (n=524): time 0.04165/1.368, allocations: 21.45 MB / 0.7763 GB, free: 61.11 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/1.368, allocations: 105.5 kB / 0.7764 GB, free: 61.04 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004851/1.373, allocations: 4.183 MB / 0.7805 GB, free: 60.64 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000519/1.373, allocations: 106.4 kB / 0.7806 GB, free: 60.61 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001706/1.375, allocations: 4.519 MB / 0.785 GB, free: 58.12 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00129/1.376, allocations: 1.779 MB / 0.7867 GB, free: 57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0017/1.378, allocations: 1.351 MB / 0.7881 GB, free: 56.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.375e-05/1.378, allocations: 305.1 kB / 0.7884 GB, free: 56.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004144/1.382, allocations: 3.442 MB / 0.7917 GB, free: 56.58 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005043/1.387, allocations: 5.876 MB / 0.7975 GB, free: 53.33 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01045/1.398, allocations: 10.02 MB / 0.8072 GB, free: 46.61 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.428e-05/1.398, allocations: 22.06 kB / 0.8073 GB, free: 46.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.01715/1.415, allocations: 10.95 MB / 0.818 GB, free: 40.53 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.508e-05/1.415, allocations: 36 kB / 0.818 GB, free: 40.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001291/1.415, allocations: 76 kB / 0.8181 GB, free: 40.42 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003738/1.419, allocations: 1.433 MB / 0.8195 GB, free: 38.99 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006036/1.425, allocations: 1.609 MB / 0.821 GB, free: 37.49 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01418/1.439, allocations: 11.47 MB / 0.8322 GB, free: 25.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005143/1.445, allocations: 408.6 kB / 0.8326 GB, free: 25.53 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008608/1.445, allocations: 336 kB / 0.8329 GB, free: 25.2 MB / 494.1 MB 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.005435/1.451, allocations: 4.173 MB / 0.837 GB, free: 21.12 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009681/1.452, allocations: 474.2 kB / 0.8375 GB, free: 20.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0124/1.464, allocations: 8.476 MB / 0.8457 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01017/1.474, allocations: 7.083 MB / 0.8527 GB, free: 4.98 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.467e-05/1.475, allocations: 12 kB / 0.8527 GB, free: 4.969 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.299e-05/1.475, allocations: 27.89 kB / 0.8527 GB, free: 4.941 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03189/1.507, allocations: 19.32 MB / 0.8716 GB, free: 1.477 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-05/1.507, allocations: 4 kB / 0.8716 GB, free: 1.473 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003821/1.51, allocations: 0.9355 MB / 0.8725 GB, free: 0.582 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003661/1.514, allocations: 1.285 MB / 0.8737 GB, free: 15.29 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005298/1.515, allocations: 112 kB / 0.8739 GB, free: 15.18 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01443/1.529, allocations: 10.17 MB / 0.8838 GB, free: 4.906 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.529, allocations: 7.984 kB / 0.8838 GB, free: 4.898 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0187/1.548, allocations: 12.27 MB / 0.8958 GB, free: 8.473 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0029/1.551, allocations: 1.155 MB / 0.8969 GB, free: 7.293 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000874/1.552, allocations: 92 kB / 0.897 GB, free: 7.203 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002606/1.554, allocations: 275.8 kB / 0.8973 GB, free: 6.934 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007474/1.555, allocations: 348 kB / 0.8976 GB, free: 6.594 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003186/1.555, allocations: 152 kB / 0.8977 GB, free: 6.445 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004605/1.56, allocations: 2.819 MB / 0.9005 GB, free: 3.613 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.71e-07/1.56, allocations: 3.938 kB / 0.9005 GB, free: 3.609 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007036/1.567, allocations: 1.938 MB / 0.9024 GB, free: 1.676 MB / 0.5294 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.2338/1.801, allocations: 13.02 MB / 0.9151 GB, free: 187.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.04797/1.849, allocations: 20.62 MB / 0.9352 GB, free: 186.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/1.849, allocations: 0.7656 kB / 0.9352 GB, free: 186.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00721/1.856, allocations: 4.177 MB / 0.9393 GB, free: 184.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007562/1.864, allocations: 1.117 MB / 0.9404 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1076/1.971, allocations: 75.98 MB / 1.015 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0121/1.984, allocations: 7.011 MB / 1.021 GB, free: 106.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008324/1.992, allocations: 2.319 MB / 1.024 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006627/1.999, allocations: 3.838 MB / 1.027 GB, free: 100.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.313e-06/1.999, allocations: 0 / 1.027 GB, free: 100.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3915/2.39, allocations: 151 MB / 1.175 GB, free: 155.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/14.86, allocations: 6.75 kB / 1.175 GB, free: 155.1 MB / 0.5294 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)