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-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.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.004951/0.004951, allocations: 99.64 kB / 15.73 MB, free: 6.023 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.408/1.408, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001382/0.001382, allocations: 196.4 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03436/0.03436, allocations: 8.805 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 71.89 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1171, allocations: 51.56 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.277/0.3941, allocations: 38.31 MB / 0.5403 GB, free: 4.453 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0219/0.416, allocations: 10.03 MB / 0.5501 GB, free: 2.965 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01007/0.4261, allocations: 298.2 kB / 0.5504 GB, free: 2.898 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.024/0.4502, allocations: 10.13 MB / 0.5603 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01511/0.4653, allocations: 4.032 MB / 0.5642 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007827/0.4731, allocations: 2.377 MB / 0.5666 GB, free: 9.656 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02343/0.4966, allocations: 16.39 MB / 0.5826 GB, free: 15.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05708/0.5537, allocations: 31.2 MB / 0.613 GB, free: 1.109 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01432/0.5681, allocations: 8.509 MB / 0.6213 GB, free: 8.578 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01491/0.583, allocations: 9.32 MB / 0.6304 GB, free: 15.23 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006207/0.5893, allocations: 2.418 MB / 0.6328 GB, free: 12.81 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008779/0.5981, allocations: 2.812 MB / 0.6355 GB, free: 9.996 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007122/0.6052, allocations: 4.816 MB / 0.6403 GB, free: 5.164 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01578/0.621, allocations: 9.199 MB / 0.6492 GB, free: 11.93 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03785/0.6589, allocations: 32.1 MB / 0.6806 GB, free: 11.74 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.659, allocations: 4 kB / 0.6806 GB, free: 11.73 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.659, allocations: 0 / 0.6806 GB, free: 11.73 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001004/0.66, allocations: 0 / 0.6806 GB, free: 11.73 MB / 494.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.05506/0.7151, allocations: 18.68 MB / 0.6988 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.7151, allocations: 12.03 kB / 0.6988 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008057/0.7232, allocations: 2.007 MB / 0.7008 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04618/0.7694, allocations: 8.298 MB / 0.7089 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02458/0.794, allocations: 10.21 MB / 0.7189 GB, free: 4.293 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001125/0.7952, allocations: 1.06 MB / 0.7199 GB, free: 3.23 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004917/0.8001, allocations: 1.402 MB / 0.7213 GB, free: 1.828 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4933/1.293, allocations: 22.74 MB / 0.7435 GB, free: 133 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006691/1.294, allocations: 25.97 kB / 0.7435 GB, free: 133 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005332/1.299, allocations: 0.5753 MB / 0.7441 GB, free: 132.6 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001446/1.301, allocations: 0.7774 MB / 0.7448 GB, free: 132.5 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0497/1.351, allocations: 21.01 MB / 0.7653 GB, free: 123.9 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1298/1.48, allocations: 72 MB / 0.8357 GB, free: 55.26 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02571/1.506, allocations: 42.4 MB / 0.8771 GB, free: 7.977 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007458/1.514, allocations: 5.166 MB / 0.8821 GB, free: 2.793 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0232/1.537, allocations: 12.68 MB / 0.8945 GB, free: 6.168 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.992e-05/1.537, allocations: 90.75 kB / 0.8946 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 6.803e-06/1.537, allocations: 0 / 0.8946 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.0595/1.597, allocations: 26.36 MB / 0.9203 GB, free: 11.37 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.834e-05/1.597, allocations: 133.3 kB / 0.9204 GB, free: 11.21 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009146/1.606, allocations: 5.752 MB / 0.9261 GB, free: 5.484 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001002/1.607, allocations: 113.7 kB / 0.9262 GB, free: 5.367 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004271/1.611, allocations: 6.161 MB / 0.9322 GB, free: 15.17 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002914/1.614, allocations: 1.735 MB / 0.9339 GB, free: 13.45 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003127/1.617, allocations: 1.461 MB / 0.9353 GB, free: 11.98 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001125/1.617, allocations: 301.1 kB / 0.9356 GB, free: 11.69 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005668/1.623, allocations: 3.63 MB / 0.9391 GB, free: 8.055 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008034/1.631, allocations: 6.474 MB / 0.9455 GB, free: 288 kB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.295/1.926, allocations: 10.76 MB / 0.956 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.19e-05/1.926, allocations: 27.28 kB / 0.956 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02315/1.949, allocations: 12.08 MB / 0.9678 GB, free: 171.4 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 8.632e-05/1.95, allocations: 48.97 kB / 0.9678 GB, free: 171.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002042/1.95, allocations: 93.16 kB / 0.9679 GB, free: 171.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00477/1.955, allocations: 1.613 MB / 0.9695 GB, free: 171 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006467/1.961, allocations: 1.663 MB / 0.9711 GB, free: 170.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0204/1.981, allocations: 19.66 MB / 0.9903 GB, free: 157.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006255/1.988, allocations: 426.2 kB / 0.9907 GB, free: 157.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001226/1.989, allocations: 366.6 kB / 0.9911 GB, free: 157.7 MB / 0.5763 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[3].y,booleanStepQS[2].y,booleanStepQS[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (865): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (12,64,52.1%), (1,5,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007838/1.997, allocations: 5.191 MB / 0.9962 GB, free: 155.2 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001364/1.998, allocations: 0.5908 MB / 0.9967 GB, free: 155.2 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01501/2.013, allocations: 9.37 MB / 1.006 GB, free: 151.3 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008136/2.021, allocations: 5.875 MB / 1.012 GB, free: 149 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-05/2.022, allocations: 15.62 kB / 1.012 GB, free: 149 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-05/2.022, allocations: 33.59 kB / 1.012 GB, free: 149 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03495/2.057, allocations: 21.01 MB / 1.032 GB, free: 137.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-05/2.057, allocations: 4.781 kB / 1.032 GB, free: 137.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003296/2.06, allocations: 0.8659 MB / 1.033 GB, free: 136.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004393/2.064, allocations: 1.635 MB / 1.035 GB, free: 134.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004795/2.065, allocations: 124 kB / 1.035 GB, free: 134.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02064/2.085, allocations: 23.23 MB / 1.057 GB, free: 110.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/2.085, allocations: 8.125 kB / 1.057 GB, free: 110.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01841/2.104, allocations: 13.73 MB / 1.071 GB, free: 96.73 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004399/2.108, allocations: 1.358 MB / 1.072 GB, free: 95.36 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0014/2.11, allocations: 104 kB / 1.072 GB, free: 95.25 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003123/2.113, allocations: 287.7 kB / 1.073 GB, free: 94.97 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009944/2.114, allocations: 404.4 kB / 1.073 GB, free: 94.57 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003127/2.114, allocations: 163.9 kB / 1.073 GB, free: 94.41 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005958/2.12, allocations: 3.883 MB / 1.077 GB, free: 90.56 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.81e-07/2.12, allocations: 0 / 1.077 GB, free: 90.56 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01056/2.131, allocations: 2.341 MB / 1.079 GB, free: 88.22 MB / 0.5763 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 (438): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (12,64,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01944/2.15, allocations: 14.51 MB / 1.093 GB, free: 73.37 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01699/2.167, allocations: 9.888 MB / 1.103 GB, free: 63.38 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 2.018e-05/2.167, allocations: 6 kB / 1.103 GB, free: 63.38 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.009531/2.177, allocations: 5.449 MB / 1.108 GB, free: 57.84 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01143/2.188, allocations: 1.633 MB / 1.11 GB, free: 56.25 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4431/2.632, allocations: 79.86 MB / 1.188 GB, free: 166.1 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01449/2.646, allocations: 8.856 MB / 1.197 GB, free: 163.9 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007006/2.653, allocations: 2.53 MB / 1.199 GB, free: 163.6 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007763/2.661, allocations: 5.156 MB / 1.204 GB, free: 159.2 MB / 0.5763 GB Notification: Performance of SimCode: time 1.092e-06/2.661, allocations: 0 / 1.204 GB, free: 159.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5638/3.225, allocations: 188 MB / 1.388 GB, free: 131.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.64/26.86, allocations: 3.578 kB / 1.388 GB, free: 131.8 MB / 0.5763 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/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)