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: translateModel(HanserModelica.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_DOL") translateModel(HanserModelica.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 105.4 kB / 16.41 MB, free: 6.461 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.372/1.372, allocations: 222.9 MB / 240.1 MB, free: 4.516 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.001447/0.001446, allocations: 188.5 kB / 290.4 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03376/0.03376, allocations: 8.798 MB / 349.3 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 79.88 kB / 464.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1221, allocations: 51.56 MB / 0.5041 GB, free: 9.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.293/0.4152, allocations: 38.32 MB / 0.5415 GB, free: 4.984 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02247/0.4377, allocations: 10.02 MB / 0.5513 GB, free: 2.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00997/0.4478, allocations: 294.8 kB / 0.5516 GB, free: 2.867 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0256/0.4734, allocations: 10.13 MB / 0.5615 GB, free: 14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01925/0.4927, allocations: 4.041 MB / 0.5654 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009106/0.5018, allocations: 2.373 MB / 0.5677 GB, free: 9.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02634/0.5282, allocations: 16.39 MB / 0.5837 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05776/0.586, allocations: 31.18 MB / 0.6142 GB, free: 0.707 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0181/0.6041, allocations: 8.513 MB / 0.6225 GB, free: 8.172 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01893/0.6231, allocations: 9.324 MB / 0.6316 GB, free: 14.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008422/0.6316, allocations: 2.414 MB / 0.634 GB, free: 12.4 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01228/0.6439, allocations: 2.82 MB / 0.6367 GB, free: 9.582 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01002/0.654, allocations: 4.805 MB / 0.6414 GB, free: 4.762 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0216/0.6756, allocations: 9.199 MB / 0.6504 GB, free: 11.53 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04703/0.7227, allocations: 32.1 MB / 0.6817 GB, free: 11.34 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.7228, allocations: 4 kB / 0.6817 GB, free: 11.33 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.7228, allocations: 3.938 kB / 0.6817 GB, free: 11.33 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001134/0.7239, allocations: 0 / 0.6817 GB, free: 11.33 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.06857/0.7925, allocations: 18.67 MB / 0.7 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.7926, allocations: 8.031 kB / 0.7 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04823/0.8408, allocations: 8.294 MB / 0.7081 GB, free: 208 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02412/0.865, allocations: 10.21 MB / 0.718 GB, free: 5.914 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001414/0.8664, allocations: 1.06 MB / 0.7191 GB, free: 4.852 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006926/0.8734, allocations: 1.394 MB / 0.7204 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.555/1.428, allocations: 22.75 MB / 0.7427 GB, free: 133.9 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000597/1.429, allocations: 19.89 kB / 0.7427 GB, free: 133.9 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004911/1.434, allocations: 0.5763 MB / 0.7432 GB, free: 133.5 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001317/1.435, allocations: 0.7809 MB / 0.744 GB, free: 133.4 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04323/1.479, allocations: 21.01 MB / 0.7645 GB, free: 124.9 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1154/1.594, allocations: 72 MB / 0.8348 GB, free: 57.38 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02503/1.619, allocations: 42.41 MB / 0.8762 GB, free: 10.09 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007464/1.627, allocations: 5.17 MB / 0.8813 GB, free: 4.906 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02307/1.65, allocations: 12.68 MB / 0.8937 GB, free: 8.277 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.973e-05/1.65, allocations: 86.77 kB / 0.8938 GB, free: 8.184 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 7.704e-06/1.65, allocations: 0 / 0.8938 GB, free: 8.184 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.06649/1.716, allocations: 26.35 MB / 0.9195 GB, free: 13.5 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/1.717, allocations: 137.3 kB / 0.9196 GB, free: 13.34 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0135/1.73, allocations: 5.759 MB / 0.9253 GB, free: 7.602 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.00119/1.731, allocations: 109.7 kB / 0.9254 GB, free: 7.488 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.005806/1.737, allocations: 6.153 MB / 0.9314 GB, free: 1.301 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002766/1.74, allocations: 1.739 MB / 0.9331 GB, free: 15.58 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00548/1.745, allocations: 1.461 MB / 0.9345 GB, free: 14.11 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001233/1.746, allocations: 301.1 kB / 0.9348 GB, free: 13.81 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006723/1.752, allocations: 3.63 MB / 0.9383 GB, free: 10.18 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01009/1.762, allocations: 6.478 MB / 0.9446 GB, free: 2.402 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3797/2.142, allocations: 10.75 MB / 0.9551 GB, free: 175.3 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001116/2.142, allocations: 26.56 kB / 0.9552 GB, free: 175.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02797/2.17, allocations: 12.09 MB / 0.967 GB, free: 173.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.000127/2.17, allocations: 52.88 kB / 0.967 GB, free: 173.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000276/2.171, allocations: 92.47 kB / 0.9671 GB, free: 173.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005848/2.177, allocations: 1.601 MB / 0.9687 GB, free: 172.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007745/2.184, allocations: 1.665 MB / 0.9703 GB, free: 172.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02067/2.205, allocations: 19.67 MB / 0.9895 GB, free: 159.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006236/2.211, allocations: 426.4 kB / 0.9899 GB, free: 159.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001441/2.213, allocations: 366.6 kB / 0.9903 GB, free: 159.3 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.009283/2.222, allocations: 5.186 MB / 0.9953 GB, free: 156.9 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001459/2.224, allocations: 0.594 MB / 0.9959 GB, free: 156.9 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01628/2.24, allocations: 9.369 MB / 1.005 GB, free: 153 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008803/2.249, allocations: 5.872 MB / 1.011 GB, free: 150.7 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.796e-05/2.249, allocations: 19.5 kB / 1.011 GB, free: 150.7 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001022/2.249, allocations: 28.88 kB / 1.011 GB, free: 150.7 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03699/2.286, allocations: 21.01 MB / 1.031 GB, free: 139.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-05/2.286, allocations: 4 kB / 1.031 GB, free: 139.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003769/2.29, allocations: 0.862 MB / 1.032 GB, free: 138.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004366/2.294, allocations: 1.64 MB / 1.034 GB, free: 136.7 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009001/2.295, allocations: 128 kB / 1.034 GB, free: 136.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02106/2.316, allocations: 23.24 MB / 1.057 GB, free: 112.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/2.316, allocations: 8.703 kB / 1.057 GB, free: 112.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01926/2.335, allocations: 13.72 MB / 1.07 GB, free: 98.88 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003967/2.339, allocations: 1.355 MB / 1.071 GB, free: 97.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001655/2.341, allocations: 112 kB / 1.071 GB, free: 97.39 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003809/2.345, allocations: 287.7 kB / 1.072 GB, free: 97.11 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001054/2.346, allocations: 412.4 kB / 1.072 GB, free: 96.71 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003373/2.346, allocations: 152 kB / 1.072 GB, free: 96.56 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006389/2.353, allocations: 3.891 MB / 1.076 GB, free: 92.7 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.81e-07/2.353, allocations: 4 kB / 1.076 GB, free: 92.69 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01124/2.364, allocations: 2.337 MB / 1.078 GB, free: 90.36 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.001534/2.366, allocations: 319.3 kB / 1.079 GB, free: 90.06 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01618/2.382, allocations: 9.899 MB / 1.088 GB, free: 80.07 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-05/2.382, allocations: 384 / 1.088 GB, free: 80.07 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.009055/2.391, allocations: 5.455 MB / 1.094 GB, free: 74.54 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01023/2.401, allocations: 1.626 MB / 1.095 GB, free: 72.95 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04673/2.448, allocations: 24.2 MB / 1.119 GB, free: 48.65 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01012/2.458, allocations: 8.571 MB / 1.127 GB, free: 40.04 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002509/2.461, allocations: 0.5111 MB / 1.128 GB, free: 39.53 MB / 0.5763 GB Notification: Performance of SimCode: time 1.312e-06/2.461, allocations: 0 / 1.128 GB, free: 39.53 MB / 0.5763 GB Notification: Performance of Templates: time 1.784/4.245, allocations: 0.6684 GB / 1.796 GB, free: 42.77 MB / 0.6075 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.makefile (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 & ./HanserModelica_HanserModelica.InductionMachines.IMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe 2>&1)