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.007535/0.007535, allocations: 104.4 kB / 15.74 MB, free: 6.039 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.338/1.338, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001421/0.001421, allocations: 192.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03557/0.03557, allocations: 8.794 MB / 348.7 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 80.11 kB / 463.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1054, allocations: 51.54 MB / 0.5029 GB, free: 9.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.2534/0.3588, allocations: 38.32 MB / 0.5403 GB, free: 4.504 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02348/0.3823, allocations: 10.02 MB / 0.5501 GB, free: 2.957 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009726/0.3921, allocations: 294.5 kB / 0.5504 GB, free: 2.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02443/0.4166, allocations: 10.14 MB / 0.5603 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01878/0.4354, allocations: 4.032 MB / 0.5642 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008849/0.4443, allocations: 2.394 MB / 0.5666 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02631/0.4706, allocations: 16.38 MB / 0.5826 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05877/0.5294, allocations: 31.18 MB / 0.613 GB, free: 1.012 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02232/0.5518, allocations: 8.505 MB / 0.6213 GB, free: 8.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02665/0.5785, allocations: 9.328 MB / 0.6304 GB, free: 15.12 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009413/0.588, allocations: 2.418 MB / 0.6328 GB, free: 12.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01224/0.6002, allocations: 2.816 MB / 0.6355 GB, free: 9.891 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01109/0.6114, allocations: 4.805 MB / 0.6402 GB, free: 5.07 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02544/0.6369, allocations: 9.199 MB / 0.6492 GB, free: 11.84 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0601/0.697, allocations: 32.1 MB / 0.6806 GB, free: 11.64 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.6971, allocations: 4 kB / 0.6806 GB, free: 11.64 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.6971, allocations: 0 / 0.6806 GB, free: 11.64 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0008206/0.6979, allocations: 0 / 0.6806 GB, free: 11.64 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.06771/0.7657, allocations: 18.67 MB / 0.6988 GB, free: 8.844 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.7657, allocations: 12.03 kB / 0.6988 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008518/0.7742, allocations: 2.007 MB / 0.7008 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04757/0.8218, allocations: 8.306 MB / 0.7089 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02499/0.8469, allocations: 10.21 MB / 0.7189 GB, free: 4.191 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001348/0.8483, allocations: 1.06 MB / 0.7199 GB, free: 3.129 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00621/0.8545, allocations: 1.402 MB / 0.7213 GB, free: 1.727 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5329/1.387, allocations: 22.74 MB / 0.7435 GB, free: 133.1 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005416/1.388, allocations: 24.12 kB / 0.7435 GB, free: 133.1 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004256/1.392, allocations: 0.5794 MB / 0.7441 GB, free: 132.6 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009318/1.393, allocations: 0.7757 MB / 0.7448 GB, free: 132.5 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04735/1.441, allocations: 21.01 MB / 0.7653 GB, free: 123.9 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1171/1.558, allocations: 71.99 MB / 0.8356 GB, free: 55.1 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02778/1.586, allocations: 42.41 MB / 0.8771 GB, free: 7.824 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008106/1.594, allocations: 5.162 MB / 0.8821 GB, free: 2.645 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02908/1.623, allocations: 12.69 MB / 0.8945 GB, free: 6.012 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.061e-05/1.623, allocations: 86.7 kB / 0.8946 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 9.458e-06/1.623, allocations: 0 / 0.8946 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.06417/1.687, allocations: 26.36 MB / 0.9203 GB, free: 11.22 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/1.687, allocations: 133.3 kB / 0.9204 GB, free: 11.07 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01176/1.699, allocations: 5.756 MB / 0.9261 GB, free: 5.332 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0009709/1.7, allocations: 109.7 kB / 0.9262 GB, free: 5.219 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.005118/1.705, allocations: 6.164 MB / 0.9322 GB, free: 15.02 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002425/1.708, allocations: 1.735 MB / 0.9339 GB, free: 13.3 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005248/1.713, allocations: 1.461 MB / 0.9353 GB, free: 11.83 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001246/1.713, allocations: 305.1 kB / 0.9356 GB, free: 11.53 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007355/1.721, allocations: 3.63 MB / 0.9391 GB, free: 7.898 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009353/1.73, allocations: 6.474 MB / 0.9455 GB, free: 128 kB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2709/2.001, allocations: 10.75 MB / 0.956 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001126/2.001, allocations: 27.16 kB / 0.956 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02601/2.027, allocations: 12.09 MB / 0.9678 GB, free: 171.4 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.758e-05/2.027, allocations: 49.12 kB / 0.9678 GB, free: 171.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002156/2.027, allocations: 96.5 kB / 0.9679 GB, free: 171.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004872/2.032, allocations: 1.595 MB / 0.9695 GB, free: 171 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006538/2.039, allocations: 1.67 MB / 0.9711 GB, free: 170.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01998/2.059, allocations: 19.66 MB / 0.9903 GB, free: 157.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006497/2.065, allocations: 424.6 kB / 0.9907 GB, free: 157.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001384/2.067, allocations: 370 kB / 0.9911 GB, free: 157.6 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.008752/2.076, allocations: 5.184 MB / 0.9961 GB, free: 155.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001477/2.077, allocations: 0.5957 MB / 0.9967 GB, free: 155.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01508/2.092, allocations: 9.366 MB / 1.006 GB, free: 151.2 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008031/2.1, allocations: 5.875 MB / 1.012 GB, free: 149 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-05/2.1, allocations: 18.72 kB / 1.012 GB, free: 149 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-05/2.1, allocations: 37.83 kB / 1.012 GB, free: 148.9 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03269/2.133, allocations: 21.01 MB / 1.032 GB, free: 137 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.668e-05/2.133, allocations: 8.156 kB / 1.032 GB, free: 137 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003628/2.137, allocations: 0.862 MB / 1.033 GB, free: 136.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004439/2.141, allocations: 1.648 MB / 1.035 GB, free: 134.4 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006919/2.142, allocations: 124 kB / 1.035 GB, free: 134.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02268/2.165, allocations: 23.24 MB / 1.057 GB, free: 110.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/2.165, allocations: 7.938 kB / 1.057 GB, free: 110.4 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01773/2.182, allocations: 13.71 MB / 1.071 GB, free: 96.54 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002857/2.185, allocations: 1.355 MB / 1.072 GB, free: 95.16 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001063/2.186, allocations: 108 kB / 1.072 GB, free: 95.06 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002944/2.189, allocations: 287.7 kB / 1.073 GB, free: 94.78 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008143/2.19, allocations: 408.4 kB / 1.073 GB, free: 94.38 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003094/2.19, allocations: 155.9 kB / 1.073 GB, free: 94.22 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005007/2.195, allocations: 3.895 MB / 1.077 GB, free: 90.36 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.51e-07/2.195, allocations: 0 / 1.077 GB, free: 90.36 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008984/2.204, allocations: 2.341 MB / 1.079 GB, free: 88.02 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.02014/2.225, allocations: 14.5 MB / 1.093 GB, free: 73.18 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01398/2.239, allocations: 9.897 MB / 1.103 GB, free: 63.19 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/2.239, allocations: 4 kB / 1.103 GB, free: 63.18 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.007168/2.246, allocations: 5.449 MB / 1.108 GB, free: 57.65 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006253/2.252, allocations: 1.638 MB / 1.11 GB, free: 56.06 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3614/2.614, allocations: 79.86 MB / 1.188 GB, free: 166.2 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01209/2.626, allocations: 8.851 MB / 1.197 GB, free: 164 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007091/2.633, allocations: 2.53 MB / 1.199 GB, free: 163.7 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007932/2.641, allocations: 5.163 MB / 1.204 GB, free: 159.3 MB / 0.5763 GB Notification: Performance of SimCode: time 1.713e-06/2.641, allocations: 4 kB / 1.204 GB, free: 159.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.518/3.159, allocations: 188 MB / 1.388 GB, free: 132 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.76/27.92, allocations: 5.406 kB / 1.388 GB, free: 132 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)