Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_DOL.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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.IMC_DOL,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_DOL,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_DOL",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.0008616/0.0008616, allocations: 86.17 kB / 15.06 MB, free: 1.09 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.34/1.34, allocations: 223.2 MB / 239 MB, free: 5.473 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.0009562/0.0009564, allocations: 180.5 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03303/0.03303, allocations: 8.774 MB / 350.1 MB, free: 4.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.000366, allocations: 13.38 kB / 413.3 MB, free: 42.92 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09292/0.09331, allocations: 52.56 MB / 465.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03394/0.1273, allocations: 33.5 MB / 499.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02402/0.1514, allocations: 9.298 MB / 0.4967 GB, free: 2.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008801/0.1602, allocations: 271.1 kB / 0.497 GB, free: 2.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007972/0.1682, allocations: 1.876 MB / 0.4988 GB, free: 332 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0126/0.1809, allocations: 3.349 MB / 0.5021 GB, free: 12.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006269/0.1871, allocations: 1.571 MB / 0.5036 GB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02763/0.2148, allocations: 18.78 MB / 0.5219 GB, free: 8.566 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.4519/0.6667, allocations: 24.62 MB / 0.546 GB, free: 7.352 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01197/0.6788, allocations: 6.092 MB / 0.5519 GB, free: 7.348 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01305/0.6918, allocations: 6.889 MB / 0.5587 GB, free: 7.344 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004372/0.6963, allocations: 0.9393 MB / 0.5596 GB, free: 7.344 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008791/0.7051, allocations: 1.304 MB / 0.5609 GB, free: 7.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004583/0.7097, allocations: 2.984 MB / 0.5638 GB, free: 7.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006903/0.7166, allocations: 3.08 MB / 0.5668 GB, free: 7.309 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03005/0.7467, allocations: 27.04 MB / 0.5932 GB, free: 7.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.627e-06/0.7467, allocations: 0 / 0.5932 GB, free: 7.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.228e-06/0.7468, allocations: 3.172 kB / 0.5932 GB, free: 7.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001103/0.7479, allocations: 0 / 0.5932 GB, free: 7.152 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: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.04981/0.7977, allocations: 15.75 MB / 0.6086 GB, free: 9.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.7977, allocations: 8.562 kB / 0.6086 GB, free: 9.082 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009002/0.8068, allocations: 2.014 MB / 0.6105 GB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04498/0.8518, allocations: 8.286 MB / 0.6186 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02358/0.8754, allocations: 9.759 MB / 0.6282 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001406/0.8768, allocations: 1.061 MB / 0.6292 GB, free: 10.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007109/0.884, allocations: 1.398 MB / 0.6306 GB, free: 9.125 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06707/0.951, allocations: 22.67 MB / 0.6527 GB, free: 3.754 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000699/0.9518, allocations: 19.81 kB / 0.6527 GB, free: 3.734 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006603/0.9584, allocations: 0.5838 MB / 0.6533 GB, free: 3.164 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001031/0.9595, allocations: 0.7854 MB / 0.6541 GB, free: 2.379 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04995/1.009, allocations: 20.93 MB / 0.6745 GB, free: 13.45 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3981/1.408, allocations: 73.1 MB / 0.7459 GB, free: 99.07 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02664/1.434, allocations: 42.41 MB / 0.7873 GB, free: 61.53 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008199/1.443, allocations: 5.251 MB / 0.7924 GB, free: 58.84 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0226/1.465, allocations: 12.82 MB / 0.805 GB, free: 50.38 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.701e-05/1.465, allocations: 83.09 kB / 0.805 GB, free: 50.31 MB / 478.1 MB Notification: Performance of pre-optimization done (n=504): time 7.784e-06/1.465, allocations: 3.719 kB / 0.805 GB, free: 50.31 MB / 478.1 MB Notification: Performance of matching and sorting (n=512): time 0.06466/1.53, allocations: 29.03 MB / 0.8334 GB, free: 28.02 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.347e-05/1.53, allocations: 129.4 kB / 0.8335 GB, free: 27.87 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008275/1.538, allocations: 5.724 MB / 0.8391 GB, free: 22.16 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001116/1.539, allocations: 105.7 kB / 0.8392 GB, free: 22.05 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003368/1.543, allocations: 6.152 MB / 0.8452 GB, free: 15.87 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002221/1.545, allocations: 1.751 MB / 0.8469 GB, free: 14.13 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004659/1.546, allocations: 152 kB / 0.8471 GB, free: 13.98 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000342/1.546, allocations: 0.6084 MB / 0.8477 GB, free: 13.37 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004997/1.551, allocations: 3.647 MB / 0.8512 GB, free: 9.723 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006686/1.558, allocations: 6.502 MB / 0.8576 GB, free: 1.922 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008191/1.566, allocations: 5.041 MB / 0.8625 GB, free: 12.87 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.151e-05/1.566, allocations: 28 kB / 0.8625 GB, free: 12.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=968) (initialization): time 0.02456/1.59, allocations: 12.13 MB / 0.8744 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001392/1.591, allocations: 46.03 kB / 0.8744 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001864/1.591, allocations: 92 kB / 0.8745 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004467/1.595, allocations: 1.613 MB / 0.8761 GB, free: 14.88 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006694/1.602, allocations: 1.669 MB / 0.8777 GB, free: 13.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3062/1.908, allocations: 18.22 MB / 0.8955 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006313/1.915, allocations: 428.8 kB / 0.8959 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001749/1.916, allocations: 367.3 kB / 0.8963 GB, free: 142.6 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (868): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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: 5 {(1,100.0%) 1,(12,54.2%) 64,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01306/1.929, allocations: 5.188 MB / 0.9013 GB, free: 142.5 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001593/1.931, allocations: 0.6007 MB / 0.9019 GB, free: 142.5 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01777/1.949, allocations: 9.451 MB / 0.9111 GB, free: 142 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008859/1.958, allocations: 5.938 MB / 0.9169 GB, free: 140.5 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.528e-05/1.958, allocations: 19.73 kB / 0.917 GB, free: 140.5 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.823e-05/1.958, allocations: 37.08 kB / 0.917 GB, free: 140.5 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03595/1.994, allocations: 21.13 MB / 0.9376 GB, free: 131.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.72e-05/1.994, allocations: 11.56 kB / 0.9376 GB, free: 131.8 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003508/1.997, allocations: 0.8605 MB / 0.9385 GB, free: 131.8 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004307/2.002, allocations: 1.633 MB / 0.9401 GB, free: 131.3 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009016/2.003, allocations: 122.3 kB / 0.9402 GB, free: 131.3 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02097/2.024, allocations: 21.36 MB / 0.961 GB, free: 115.8 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/2.024, allocations: 13.47 kB / 0.9611 GB, free: 115.8 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01945/2.043, allocations: 13.84 MB / 0.9746 GB, free: 103.9 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003595/2.047, allocations: 1.365 MB / 0.9759 GB, free: 102.7 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001363/2.048, allocations: 111.9 kB / 0.976 GB, free: 102.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003067/2.051, allocations: 302.2 kB / 0.9763 GB, free: 102.3 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008274/2.052, allocations: 406 kB / 0.9767 GB, free: 101.9 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000321/2.052, allocations: 160 kB / 0.9768 GB, free: 101.8 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005922/2.058, allocations: 3.84 MB / 0.9806 GB, free: 97.96 MB / 0.4982 GB Notification: Performance of sort global known variables: time 5.31e-07/2.058, allocations: 0 / 0.9806 GB, free: 97.96 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01105/2.069, allocations: 2.342 MB / 0.9829 GB, free: 95.62 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (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,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (441): * Single equations (assignments): 430 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(12,52.8%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01955/2.089, allocations: 14.61 MB / 0.9971 GB, free: 80.67 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0138/2.103, allocations: 9.922 MB / 1.007 GB, free: 70.64 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/2.103, allocations: 4 kB / 1.007 GB, free: 70.64 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007758/2.111, allocations: 5.496 MB / 1.012 GB, free: 65.07 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008214/2.119, allocations: 1.569 MB / 1.014 GB, free: 63.54 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.421/2.54, allocations: 74.57 MB / 1.087 GB, free: 156.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.016/2.556, allocations: 8.848 MB / 1.095 GB, free: 155.5 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.00828/2.564, allocations: 2.529 MB / 1.098 GB, free: 155.4 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009447/2.574, allocations: 5.161 MB / 1.103 GB, free: 155.2 MB / 0.5138 GB Notification: Performance of SimCode: time 1.613e-06/2.574, allocations: 1.562 kB / 1.103 GB, free: 155.2 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4926/3.066, allocations: 181.6 MB / 1.28 GB, free: 115.7 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002407/3.067, allocations: 200.3 kB / 1.28 GB, free: 115.5 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.576/8.643, allocations: 3.25 kB / 1.28 GB, free: 115.5 MB / 0.5138 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_DOL.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe 2>&1) Environment - environmentSimulation: