Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.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.IMC_Inverter1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Inverter1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1",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.009782/0.009782, allocations: 169.5 kB / 15.13 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06991/0.06991, allocations: 8.807 MB / 24.67 MB, free: 4.098 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.439/2.439, allocations: 223.3 MB / 250.8 MB, free: 4.801 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.001388/0.001388, allocations: 97.36 kB / 304.1 MB, free: 3.582 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005443/0.0005444, allocations: 12 kB / 367.3 MB, free: 6.703 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2014, allocations: 52.54 MB / 419.8 MB, free: 2.109 MB / 346.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.4115/0.6129, allocations: 11.52 MB / 431.3 MB, free: 39.96 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01281/0.6259, allocations: 4.011 MB / 435.3 MB, free: 38.19 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004275/0.6302, allocations: 78.91 kB / 435.4 MB, free: 38.17 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004239/0.6345, allocations: 0.7733 MB / 436.2 MB, free: 37.8 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006667/0.6412, allocations: 1.051 MB / 437.2 MB, free: 37.14 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003515/0.6447, allocations: 0.5953 MB / 437.8 MB, free: 36.78 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.6558, allocations: 4.033 MB / 441.9 MB, free: 34.86 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008779/0.6646, allocations: 2.445 MB / 444.3 MB, free: 34.08 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005192/0.6699, allocations: 1.296 MB / 445.6 MB, free: 33.53 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004996/0.675, allocations: 1.626 MB / 447.2 MB, free: 32.81 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001342/0.6764, allocations: 213.6 kB / 447.4 MB, free: 32.81 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003069/0.6795, allocations: 401.1 kB / 447.8 MB, free: 32.75 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001275/0.6808, allocations: 0.757 MB / 448.6 MB, free: 32.35 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002984/0.6838, allocations: 0.7533 MB / 449.3 MB, free: 31.88 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01343/0.6972, allocations: 5.647 MB / 455 MB, free: 30.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.787e-06/0.6973, allocations: 0 / 455 MB, free: 30.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.747e-06/0.6973, allocations: 0 / 455 MB, free: 30.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000299/0.6976, allocations: 4 kB / 455 MB, free: 30.73 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 880 * Number of variables: 880 Notification: Performance of Generate backend data structure: time 0.02105/0.7187, allocations: 3.791 MB / 458.8 MB, free: 28.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.538e-05/0.7188, allocations: 9.469 kB / 458.8 MB, free: 28.83 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003498/0.7223, allocations: 0.5143 MB / 459.3 MB, free: 28.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009051/0.7314, allocations: 0.8296 MB / 460.1 MB, free: 28.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01045/0.7419, allocations: 2.321 MB / 462.5 MB, free: 26.92 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004878/0.7424, allocations: 250 kB / 462.7 MB, free: 26.8 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00217/0.7446, allocations: 331.9 kB / 463 MB, free: 26.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02052/0.7652, allocations: 4.486 MB / 467.5 MB, free: 24.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001309/0.7654, allocations: 11.02 kB / 467.5 MB, free: 24.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005664/0.766, allocations: 134.2 kB / 467.7 MB, free: 24.74 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003451/0.7663, allocations: 159.6 kB / 467.8 MB, free: 24.72 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01548/0.7818, allocations: 3.808 MB / 471.6 MB, free: 23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04066/0.8225, allocations: 14.25 MB / 485.9 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00846/0.8311, allocations: 6.155 MB / 492 MB, free: 3.129 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003116/0.8343, allocations: 1.221 MB / 493.2 MB, free: 1.918 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009784/0.8442, allocations: 3.33 MB / 496.6 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.13e-05/0.8443, allocations: 47.56 kB / 496.6 MB, free: 14.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=115): time 6.713e-06/0.8443, allocations: 0 / 496.6 MB, free: 14.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=118): time 0.01835/0.8627, allocations: 5.33 MB / 0.4902 GB, free: 8.918 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.368e-05/0.8628, allocations: 64.41 kB / 0.4902 GB, free: 8.844 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004186/0.867, allocations: 1.671 MB / 0.4919 GB, free: 7.168 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001791/0.8672, allocations: 45.7 kB / 0.4919 GB, free: 7.117 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001813/0.869, allocations: 1.492 MB / 0.4934 GB, free: 5.605 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006144/0.8697, allocations: 418 kB / 0.4938 GB, free: 5.191 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.8698, allocations: 32 kB / 0.4938 GB, free: 5.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000263/0.8701, allocations: 373.9 kB / 0.4942 GB, free: 4.789 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001802/0.8719, allocations: 0.6286 MB / 0.4948 GB, free: 4.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002323/0.8742, allocations: 1.135 MB / 0.4959 GB, free: 2.801 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002164/0.8764, allocations: 0.8379 MB / 0.4967 GB, free: 1.961 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-05/0.8764, allocations: 8 kB / 0.4967 GB, free: 1.953 MB / 362.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006059/0.8825, allocations: 2.197 MB / 0.4989 GB, free: 15.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.513e-05/0.8826, allocations: 12 kB / 0.4989 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.001e-05/0.8826, allocations: 16 kB / 0.4989 GB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005756/0.8832, allocations: 138.8 kB / 0.499 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002412/0.8856, allocations: 401 kB / 0.4994 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004277/0.8899, allocations: 3.091 MB / 0.5024 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002807/0.8928, allocations: 84.09 kB / 0.5025 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002697/0.8931, allocations: 68 kB / 0.5026 GB, free: 11.65 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * 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 (196): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003835/0.8969, allocations: 1.044 MB / 0.5036 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000728/0.8976, allocations: 173.8 kB / 0.5037 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006249/0.9039, allocations: 2.061 MB / 0.5058 GB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/0.904, allocations: 12 kB / 0.5058 GB, free: 8.285 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.127e-05/0.904, allocations: 11.95 kB / 0.5058 GB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.925e-05/0.904, allocations: 3.984 kB / 0.5058 GB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01337/0.9174, allocations: 4.802 MB / 0.5105 GB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/0.9175, allocations: 0 / 0.5105 GB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.9187, allocations: 164 kB / 0.5106 GB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001912/0.9206, allocations: 435.2 kB / 0.511 GB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001374/0.9207, allocations: 35.98 kB / 0.5111 GB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01529/0.936, allocations: 10.1 MB / 0.5209 GB, free: 7.941 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.9361, allocations: 0 / 0.5209 GB, free: 7.941 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007542/0.9437, allocations: 2.885 MB / 0.5238 GB, free: 4.961 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001713/0.9454, allocations: 390.8 kB / 0.5241 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003606/0.9458, allocations: 24 kB / 0.5242 GB, free: 4.535 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/0.9471, allocations: 75.94 kB / 0.5242 GB, free: 4.461 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004029/0.9475, allocations: 100.8 kB / 0.5243 GB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001147/0.9476, allocations: 35.98 kB / 0.5244 GB, free: 4.328 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002815/0.9504, allocations: 1.135 MB / 0.5255 GB, free: 3.199 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.9504, allocations: 4 kB / 0.5255 GB, free: 3.195 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003584/0.954, allocations: 0.5507 MB / 0.526 GB, free: 2.645 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.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 (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007809/0.9619, allocations: 3.483 MB / 0.5294 GB, free: 15.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004823/0.9667, allocations: 1.841 MB / 0.5312 GB, free: 13.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.9668, allocations: 4.188 kB / 0.5312 GB, free: 13.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003505/0.9703, allocations: 1.493 MB / 0.5327 GB, free: 11.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00454/0.9749, allocations: 0.5079 MB / 0.5332 GB, free: 11.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05747/1.032, allocations: 15.77 MB / 0.5486 GB, free: 10.43 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004067/1.036, allocations: 2.37 MB / 0.5509 GB, free: 8.039 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003051/1.04, allocations: 388 kB / 0.5512 GB, free: 7.656 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002656/1.042, allocations: 1.144 MB / 0.5524 GB, free: 6.512 MB / 426.7 MB Notification: Performance of SimCode: time 3.036e-06/1.042, allocations: 4 kB / 0.5524 GB, free: 6.508 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4442/1.486, allocations: 46.98 MB / 0.5982 GB, free: 122.4 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002863/1.487, allocations: 201.2 kB / 0.5984 GB, free: 122.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.169/6.656, allocations: 0 / 0.5984 GB, free: 122.1 MB / 442.7 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)