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.001087/0.001087, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.288/1.288, allocations: 222.9 MB / 239 MB, free: 4.621 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.001327/0.001327, allocations: 188.5 kB / 289.3 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03451/0.03451, allocations: 8.801 MB / 348.2 MB, free: 4.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 76.91 kB / 410.7 MB, free: 42.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07518/0.07662, allocations: 51.57 MB / 462.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03536/0.112, allocations: 37.62 MB / 499.9 MB, free: 8.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01859/0.1307, allocations: 9.88 MB / 0.4978 GB, free: 14.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006226/0.1369, allocations: 283 kB / 0.4981 GB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02191/0.1588, allocations: 9.525 MB / 0.5074 GB, free: 5.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01232/0.1712, allocations: 3.657 MB / 0.511 GB, free: 1.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006768/0.178, allocations: 2.184 MB / 0.5131 GB, free: 15.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3424/0.5204, allocations: 16.46 MB / 0.5292 GB, free: 6.594 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04371/0.5641, allocations: 35.03 MB / 0.5634 GB, free: 1.945 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01369/0.5779, allocations: 8.601 MB / 0.5718 GB, free: 0 / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01255/0.5905, allocations: 9.421 MB / 0.581 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005557/0.5961, allocations: 2.41 MB / 0.5833 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007788/0.6039, allocations: 2.823 MB / 0.5861 GB, free: 4.953 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006886/0.6108, allocations: 4.81 MB / 0.5908 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01518/0.626, allocations: 9.201 MB / 0.5998 GB, free: 8.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03416/0.6602, allocations: 31.9 MB / 0.6309 GB, free: 9.871 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.6602, allocations: 0 / 0.6309 GB, free: 9.871 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.6602, allocations: 0 / 0.6309 GB, free: 9.871 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000775/0.661, allocations: 0 / 0.6309 GB, free: 9.871 MB / 430.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.05592/0.7169, allocations: 18.74 MB / 0.6492 GB, free: 7.137 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.717, allocations: 12.03 kB / 0.6492 GB, free: 7.125 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007231/0.7243, allocations: 2.012 MB / 0.6512 GB, free: 5.117 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04632/0.7706, allocations: 8.253 MB / 0.6593 GB, free: 12.94 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02139/0.792, allocations: 9.881 MB / 0.6689 GB, free: 3.426 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00121/0.7933, allocations: 1.06 MB / 0.6699 GB, free: 2.375 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006185/0.7995, allocations: 1.403 MB / 0.6713 GB, free: 0.9844 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05732/0.8568, allocations: 22.77 MB / 0.6935 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000728/0.8576, allocations: 30.97 kB / 0.6936 GB, free: 10.14 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004996/0.8626, allocations: 0.5769 MB / 0.6941 GB, free: 9.574 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008282/0.8634, allocations: 0.7715 MB / 0.6949 GB, free: 8.801 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2344/1.098, allocations: 21.02 MB / 0.7154 GB, free: 148.9 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1055/1.203, allocations: 72.92 MB / 0.7866 GB, free: 99.04 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02335/1.227, allocations: 42.45 MB / 0.8281 GB, free: 51.68 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007125/1.234, allocations: 5.244 MB / 0.8332 GB, free: 46.43 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0194/1.253, allocations: 12.82 MB / 0.8457 GB, free: 33.66 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.616e-05/1.254, allocations: 82.78 kB / 0.8458 GB, free: 33.57 MB / 494.1 MB Notification: Performance of pre-optimization done (n=504): time 6.572e-06/1.254, allocations: 7.938 kB / 0.8458 GB, free: 33.56 MB / 494.1 MB Notification: Performance of matching and sorting (n=512): time 0.05517/1.309, allocations: 26.77 MB / 0.872 GB, free: 6.438 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.918e-05/1.309, allocations: 129.4 kB / 0.8721 GB, free: 6.289 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008936/1.318, allocations: 5.756 MB / 0.8777 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008991/1.319, allocations: 113.7 kB / 0.8778 GB, free: 448 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003982/1.323, allocations: 6.149 MB / 0.8838 GB, free: 10.25 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002024/1.325, allocations: 1.746 MB / 0.8855 GB, free: 8.523 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003683/1.328, allocations: 1.477 MB / 0.887 GB, free: 7.039 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 8.426e-05/1.329, allocations: 305.1 kB / 0.8873 GB, free: 6.738 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00579/1.334, allocations: 3.665 MB / 0.8908 GB, free: 3.07 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1995/1.534, allocations: 6.517 MB / 0.8972 GB, free: 150 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01346/1.547, allocations: 10.84 MB / 0.9078 GB, free: 146.2 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001076/1.547, allocations: 30.31 kB / 0.9078 GB, free: 146.2 MB / 0.4982 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.02274/1.57, allocations: 12.16 MB / 0.9197 GB, free: 143.1 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 9.332e-05/1.57, allocations: 49.19 kB / 0.9197 GB, free: 143.1 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001604/1.57, allocations: 92.66 kB / 0.9198 GB, free: 143.1 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004134/1.575, allocations: 1.623 MB / 0.9214 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006156/1.581, allocations: 1.662 MB / 0.923 GB, free: 142.5 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02007/1.601, allocations: 19.68 MB / 0.9423 GB, free: 129.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005722/1.607, allocations: 426.4 kB / 0.9427 GB, free: 129.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001225/1.608, allocations: 366.9 kB / 0.943 GB, free: 129.3 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[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 (868): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,53.5%), (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.007648/1.616, allocations: 5.187 MB / 0.9481 GB, free: 126.8 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00132/1.617, allocations: 0.5973 MB / 0.9487 GB, free: 126.8 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01464/1.632, allocations: 9.446 MB / 0.9579 GB, free: 122.9 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008198/1.64, allocations: 5.956 MB / 0.9637 GB, free: 119.4 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-05/1.64, allocations: 19.94 kB / 0.9637 GB, free: 119.4 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.436e-05/1.64, allocations: 34.28 kB / 0.9637 GB, free: 119.4 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03163/1.672, allocations: 21.16 MB / 0.9844 GB, free: 100.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.023e-05/1.672, allocations: 4 kB / 0.9844 GB, free: 100.9 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003841/1.675, allocations: 0.8684 MB / 0.9853 GB, free: 100 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004527/1.68, allocations: 1.645 MB / 0.9869 GB, free: 98.35 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008575/1.681, allocations: 128 kB / 0.987 GB, free: 98.22 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02048/1.701, allocations: 23.23 MB / 1.01 GB, free: 74.29 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/1.701, allocations: 16.09 kB / 1.01 GB, free: 74.28 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01802/1.719, allocations: 13.85 MB / 1.023 GB, free: 60.33 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003102/1.723, allocations: 1.366 MB / 1.025 GB, free: 58.94 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001232/1.724, allocations: 108 kB / 1.025 GB, free: 58.84 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003144/1.727, allocations: 287.7 kB / 1.025 GB, free: 58.55 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009293/1.728, allocations: 400.5 kB / 1.025 GB, free: 58.16 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003219/1.728, allocations: 167.9 kB / 1.025 GB, free: 58 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.004896/1.733, allocations: 3.887 MB / 1.029 GB, free: 54.14 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.61e-07/1.733, allocations: 0 / 1.029 GB, free: 54.14 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.007819/1.741, allocations: 2.339 MB / 1.032 GB, free: 51.8 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 (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.0185/1.76, allocations: 14.64 MB / 1.046 GB, free: 36.81 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.03114/1.791, allocations: 16.13 MB / 1.062 GB, free: 20.64 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/1.791, allocations: 0.875 kB / 1.062 GB, free: 20.64 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.008795/1.8, allocations: 5.492 MB / 1.067 GB, free: 15.07 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009321/1.809, allocations: 1.629 MB / 1.069 GB, free: 13.48 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3604/2.169, allocations: 107.6 MB / 1.174 GB, free: 85.59 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01414/2.184, allocations: 8.844 MB / 1.182 GB, free: 76.7 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.007734/2.191, allocations: 2.536 MB / 1.185 GB, free: 74.21 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009049/2.2, allocations: 5.162 MB / 1.19 GB, free: 69.04 MB / 0.4982 GB Notification: Performance of SimCode: time 1.623e-06/2.2, allocations: 0 / 1.19 GB, free: 69.04 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4664/2.667, allocations: 190.2 MB / 1.376 GB, free: 79.95 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001615/2.667, allocations: 216.3 kB / 1.376 GB, free: 79.69 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.652/8.319, allocations: 7.938 kB / 1.376 GB, free: 79.68 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/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)