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.001063/0.001063, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.3/1.3, allocations: 222.9 MB / 238.9 MB, free: 4.77 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.001267/0.001267, allocations: 188.4 kB / 289.1 MB, free: 2.516 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03336/0.03336, allocations: 8.799 MB / 348.1 MB, free: 4.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001333, allocations: 80.97 kB / 410.5 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07378/0.07512, allocations: 51.56 MB / 462.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.04878/0.1239, allocations: 37.62 MB / 499.7 MB, free: 9.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01971/0.1437, allocations: 9.927 MB / 0.4977 GB, free: 15.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006074/0.1498, allocations: 279.1 kB / 0.4979 GB, free: 14.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02016/0.17, allocations: 9.521 MB / 0.5072 GB, free: 5.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01282/0.1828, allocations: 3.682 MB / 0.5108 GB, free: 1.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007595/0.1904, allocations: 2.204 MB / 0.513 GB, free: 15.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3775/0.5679, allocations: 16.62 MB / 0.5292 GB, free: 6.383 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03607/0.604, allocations: 25.49 MB / 0.5541 GB, free: 1.926 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01067/0.6147, allocations: 7.174 MB / 0.5611 GB, free: 1.285 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01223/0.627, allocations: 8.855 MB / 0.5698 GB, free: 15.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00561/0.6326, allocations: 1.538 MB / 0.5713 GB, free: 15.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008975/0.6416, allocations: 1.922 MB / 0.5731 GB, free: 15.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007505/0.6492, allocations: 3.897 MB / 0.577 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01643/0.6656, allocations: 8.268 MB / 0.585 GB, free: 5.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03034/0.696, allocations: 31.3 MB / 0.6156 GB, free: 8.414 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.6961, allocations: 3.938 kB / 0.6156 GB, free: 8.41 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6961, allocations: 0 / 0.6156 GB, free: 8.41 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.00075/0.6968, allocations: 0 / 0.6156 GB, free: 8.41 MB / 414.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.04982/0.7466, allocations: 18.74 MB / 0.6339 GB, free: 5.684 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.7467, allocations: 12.03 kB / 0.6339 GB, free: 5.672 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005896/0.7526, allocations: 2.01 MB / 0.6359 GB, free: 3.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04386/0.7965, allocations: 8.257 MB / 0.6439 GB, free: 11.48 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01878/0.8153, allocations: 9.873 MB / 0.6536 GB, free: 1.969 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001018/0.8163, allocations: 1.063 MB / 0.6546 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006914/0.8233, allocations: 1.41 MB / 0.656 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05523/0.8785, allocations: 22.77 MB / 0.6782 GB, free: 8.695 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006818/0.8792, allocations: 23.64 kB / 0.6783 GB, free: 8.676 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006446/0.8857, allocations: 0.577 MB / 0.6788 GB, free: 8.109 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008607/0.8866, allocations: 0.7715 MB / 0.6796 GB, free: 7.336 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04423/0.9308, allocations: 21.02 MB / 0.7001 GB, free: 2.305 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3285/1.259, allocations: 72.92 MB / 0.7713 GB, free: 65.61 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02518/1.285, allocations: 42.45 MB / 0.8128 GB, free: 24.39 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007369/1.292, allocations: 5.241 MB / 0.8179 GB, free: 21.69 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01957/1.312, allocations: 12.82 MB / 0.8304 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.917e-05/1.312, allocations: 86.78 kB / 0.8305 GB, free: 10.82 MB / 494.1 MB Notification: Performance of pre-optimization done (n=504): time 7.644e-06/1.312, allocations: 4 kB / 0.8305 GB, free: 10.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=512): time 0.05373/1.365, allocations: 26.76 MB / 0.8566 GB, free: 15.79 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.936e-05/1.366, allocations: 133.3 kB / 0.8568 GB, free: 15.63 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00871/1.374, allocations: 5.763 MB / 0.8624 GB, free: 9.891 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009836/1.375, allocations: 109.7 kB / 0.8625 GB, free: 9.777 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003795/1.379, allocations: 6.155 MB / 0.8685 GB, free: 3.59 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001942/1.381, allocations: 1.753 MB / 0.8702 GB, free: 1.852 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002249/1.383, allocations: 1.461 MB / 0.8716 GB, free: 392 kB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.377e-05/1.383, allocations: 303.5 kB / 0.8719 GB, free: 88 kB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006057/1.39, allocations: 3.673 MB / 0.8755 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008088/1.398, allocations: 6.516 MB / 0.8819 GB, free: 4.641 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01598/1.414, allocations: 10.84 MB / 0.8925 GB, free: 8.871 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.709e-05/1.414, allocations: 31.19 kB / 0.8925 GB, free: 8.844 MB / 0.545 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.2547/1.668, allocations: 12.17 MB / 0.9044 GB, free: 195.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.61e-05/1.669, allocations: 44.28 kB / 0.9044 GB, free: 195.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001753/1.669, allocations: 92.03 kB / 0.9045 GB, free: 195.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004801/1.674, allocations: 1.597 MB / 0.9061 GB, free: 195.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006747/1.68, allocations: 1.673 MB / 0.9077 GB, free: 195.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02239/1.703, allocations: 18.24 MB / 0.9255 GB, free: 188.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005944/1.709, allocations: 429.2 kB / 0.9259 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0013/1.71, allocations: 364.1 kB / 0.9263 GB, free: 188.6 MB / 0.545 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.008151/1.718, allocations: 5.2 MB / 0.9313 GB, free: 186.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001385/1.72, allocations: 0.5987 MB / 0.9319 GB, free: 186.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01394/1.734, allocations: 9.445 MB / 0.9412 GB, free: 182.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009037/1.743, allocations: 5.957 MB / 0.947 GB, free: 180.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-05/1.743, allocations: 19.16 kB / 0.947 GB, free: 180.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-05/1.743, allocations: 26.3 kB / 0.947 GB, free: 180.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03126/1.774, allocations: 21.16 MB / 0.9677 GB, free: 170.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.028e-05/1.774, allocations: 6.969 kB / 0.9677 GB, free: 170.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003221/1.777, allocations: 0.8655 MB / 0.9685 GB, free: 170.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00422/1.782, allocations: 1.641 MB / 0.9701 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005205/1.782, allocations: 128 kB / 0.9703 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01899/1.801, allocations: 21.37 MB / 0.9911 GB, free: 147.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/1.801, allocations: 11.94 kB / 0.9911 GB, free: 147.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01742/1.819, allocations: 13.85 MB / 1.005 GB, free: 133.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002944/1.822, allocations: 1.368 MB / 1.006 GB, free: 132.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009574/1.823, allocations: 112 kB / 1.006 GB, free: 132.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002665/1.825, allocations: 279.7 kB / 1.006 GB, free: 131.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000892/1.826, allocations: 420 kB / 1.007 GB, free: 131.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003009/1.826, allocations: 152 kB / 1.007 GB, free: 131.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004816/1.831, allocations: 3.891 MB / 1.011 GB, free: 127.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/1.831, allocations: 0 / 1.011 GB, free: 127.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007445/1.839, allocations: 2.345 MB / 1.013 GB, free: 125.2 MB / 0.545 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.01763/1.856, allocations: 14.63 MB / 1.027 GB, free: 110.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01306/1.869, allocations: 9.952 MB / 1.037 GB, free: 100.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.578e-05/1.87, allocations: 3.938 kB / 1.037 GB, free: 100.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007919/1.877, allocations: 5.497 MB / 1.042 GB, free: 94.56 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007952/1.885, allocations: 1.542 MB / 1.044 GB, free: 93.05 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3795/2.265, allocations: 107.6 MB / 1.149 GB, free: 176.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01408/2.279, allocations: 8.848 MB / 1.158 GB, free: 175.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007825/2.287, allocations: 2.533 MB / 1.16 GB, free: 175.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007356/2.294, allocations: 5.158 MB / 1.165 GB, free: 171.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.082e-06/2.294, allocations: 0 / 1.165 GB, free: 171.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.439/2.733, allocations: 186.6 MB / 1.347 GB, free: 157.6 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001232/2.733, allocations: 208.9 kB / 1.348 GB, free: 157.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.365/8.099, allocations: 3.062 kB / 1.348 GB, free: 157.3 MB / 0.545 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)