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.001265/0.001265, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 239.3 MB, free: 4.645 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.00148/0.001479, allocations: 184.5 kB / 289.6 MB, free: 2.375 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03454/0.03454, allocations: 8.798 MB / 348.5 MB, free: 4.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.00168, allocations: 78.59 kB / 411.2 MB, free: 42.12 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07657/0.07827, allocations: 51.56 MB / 462.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03765/0.116, allocations: 38.32 MB / 0.4893 GB, free: 7.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02056/0.1366, allocations: 10.03 MB / 0.4991 GB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00759/0.1442, allocations: 295 kB / 0.4994 GB, free: 13.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02222/0.1664, allocations: 10.13 MB / 0.5093 GB, free: 3.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01253/0.179, allocations: 4.052 MB / 0.5132 GB, free: 15.26 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006831/0.1858, allocations: 2.37 MB / 0.5156 GB, free: 12.89 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1963/0.3821, allocations: 16.26 MB / 0.5314 GB, free: 6.469 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04757/0.4297, allocations: 31.38 MB / 0.5621 GB, free: 1.738 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01061/0.4404, allocations: 8.473 MB / 0.5704 GB, free: 0 / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0154/0.4558, allocations: 9.383 MB / 0.5795 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007997/0.4639, allocations: 2.422 MB / 0.5819 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01081/0.4747, allocations: 2.818 MB / 0.5846 GB, free: 4.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00847/0.4832, allocations: 4.814 MB / 0.5893 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0181/0.5014, allocations: 9.203 MB / 0.5983 GB, free: 8.016 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03475/0.5362, allocations: 31.93 MB / 0.6295 GB, free: 10.38 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.5362, allocations: 0 / 0.6295 GB, free: 10.38 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5362, allocations: 0 / 0.6295 GB, free: 10.38 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0008628/0.5371, allocations: 0 / 0.6295 GB, free: 10.38 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.06289/0.6, allocations: 18.73 MB / 0.6478 GB, free: 7.652 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/0.6001, allocations: 12.03 kB / 0.6478 GB, free: 7.641 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008824/0.6089, allocations: 2.008 MB / 0.6498 GB, free: 5.633 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04778/0.6567, allocations: 8.251 MB / 0.6578 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02436/0.6811, allocations: 9.926 MB / 0.6675 GB, free: 3.895 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001195/0.6824, allocations: 1.068 MB / 0.6686 GB, free: 2.84 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005904/0.6883, allocations: 1.402 MB / 0.6699 GB, free: 1.449 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06004/0.7484, allocations: 22.75 MB / 0.6922 GB, free: 10.64 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006099/0.749, allocations: 19.47 kB / 0.6922 GB, free: 10.63 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004479/0.7535, allocations: 0.5753 MB / 0.6927 GB, free: 10.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009339/0.7545, allocations: 0.7755 MB / 0.6935 GB, free: 9.289 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4302/1.185, allocations: 21 MB / 0.714 GB, free: 147.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09724/1.282, allocations: 72.92 MB / 0.7852 GB, free: 99.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02431/1.306, allocations: 42.41 MB / 0.8266 GB, free: 51.87 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006876/1.313, allocations: 5.209 MB / 0.8317 GB, free: 46.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01749/1.331, allocations: 12.73 MB / 0.8441 GB, free: 33.97 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.165e-05/1.331, allocations: 86.7 kB / 0.8442 GB, free: 33.88 MB / 494.1 MB Notification: Performance of pre-optimization done (n=498): time 6.392e-06/1.331, allocations: 0 / 0.8442 GB, free: 33.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=506): time 0.04914/1.38, allocations: 26.36 MB / 0.87 GB, free: 7.195 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/1.38, allocations: 133.3 kB / 0.8701 GB, free: 7.043 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00689/1.387, allocations: 5.767 MB / 0.8757 GB, free: 1.297 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00079/1.388, allocations: 113.6 kB / 0.8758 GB, free: 1.18 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003987/1.392, allocations: 6.158 MB / 0.8818 GB, free: 11.02 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001957/1.394, allocations: 1.735 MB / 0.8835 GB, free: 9.297 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002497/1.396, allocations: 1.461 MB / 0.885 GB, free: 7.828 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001623/1.396, allocations: 305.1 kB / 0.8852 GB, free: 7.527 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005525/1.402, allocations: 3.634 MB / 0.8888 GB, free: 3.891 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1989/1.601, allocations: 6.465 MB / 0.8951 GB, free: 149.2 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01195/1.613, allocations: 10.76 MB / 0.9056 GB, free: 145.4 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.431e-05/1.613, allocations: 26.03 kB / 0.9056 GB, free: 145.4 MB / 0.4982 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02021/1.633, allocations: 12.09 MB / 0.9175 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.388e-05/1.633, allocations: 47.44 kB / 0.9175 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001895/1.634, allocations: 92.69 kB / 0.9176 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004244/1.638, allocations: 1.617 MB / 0.9192 GB, free: 142.2 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006192/1.644, allocations: 1.666 MB / 0.9208 GB, free: 142 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0206/1.665, allocations: 19.68 MB / 0.94 GB, free: 129 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005814/1.671, allocations: 424.6 kB / 0.9404 GB, free: 128.9 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008781/1.671, allocations: 365.1 kB / 0.9408 GB, free: 128.8 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 (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.007393/1.679, allocations: 5.183 MB / 0.9458 GB, free: 126.3 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001227/1.68, allocations: 0.5982 MB / 0.9464 GB, free: 126.3 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0143/1.694, allocations: 9.373 MB / 0.9556 GB, free: 122.4 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008583/1.703, allocations: 5.879 MB / 0.9613 GB, free: 119.7 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.905e-05/1.703, allocations: 20 kB / 0.9613 GB, free: 119.7 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-05/1.703, allocations: 30.86 kB / 0.9614 GB, free: 119.6 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03675/1.74, allocations: 21.03 MB / 0.9819 GB, free: 101.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.42e-05/1.74, allocations: 8 kB / 0.9819 GB, free: 101.9 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00355/1.744, allocations: 0.8667 MB / 0.9827 GB, free: 101 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004345/1.748, allocations: 1.662 MB / 0.9844 GB, free: 99.32 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006796/1.749, allocations: 128 kB / 0.9845 GB, free: 99.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02115/1.77, allocations: 23.25 MB / 1.007 GB, free: 75.25 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/1.77, allocations: 4 kB / 1.007 GB, free: 75.24 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01846/1.788, allocations: 13.72 MB / 1.021 GB, free: 61.43 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003332/1.792, allocations: 1.356 MB / 1.022 GB, free: 60.05 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001407/1.793, allocations: 108 kB / 1.022 GB, free: 59.95 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00358/1.797, allocations: 291.7 kB / 1.022 GB, free: 59.66 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001072/1.798, allocations: 400.7 kB / 1.023 GB, free: 59.27 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003205/1.798, allocations: 160 kB / 1.023 GB, free: 59.11 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005647/1.804, allocations: 3.891 MB / 1.027 GB, free: 55.25 MB / 0.4982 GB Notification: Performance of sort global known variables: time 5.61e-07/1.804, allocations: 4 kB / 1.027 GB, free: 55.25 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.00945/1.813, allocations: 2.338 MB / 1.029 GB, free: 52.91 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 (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.0186/1.832, allocations: 14.5 MB / 1.043 GB, free: 38.06 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.03012/1.862, allocations: 15.88 MB / 1.059 GB, free: 22.15 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.42e-05/1.862, allocations: 0 / 1.059 GB, free: 22.15 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.008494/1.871, allocations: 5.45 MB / 1.064 GB, free: 16.62 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008262/1.879, allocations: 1.631 MB / 1.065 GB, free: 15.03 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3528/2.232, allocations: 101.5 MB / 1.165 GB, free: 92.38 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01092/2.243, allocations: 8.846 MB / 1.173 GB, free: 83.49 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.008333/2.251, allocations: 2.529 MB / 1.176 GB, free: 81.01 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00926/2.26, allocations: 5.158 MB / 1.181 GB, free: 75.85 MB / 0.4982 GB Notification: Performance of SimCode: time 1.343e-06/2.26, allocations: 0 / 1.181 GB, free: 75.85 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4586/2.719, allocations: 189.7 MB / 1.366 GB, free: 88.58 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/16.11, allocations: 15.97 kB / 1.366 GB, free: 88.57 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)