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.007558/0.007558, allocations: 98.7 kB / 15.73 MB, free: 6.055 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.409/1.409, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001682/0.001682, allocations: 180.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03655/0.03655, allocations: 8.795 MB / 348.7 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002266/0.002266, allocations: 83.86 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09736/0.09964, allocations: 51.56 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.2265/0.3262, allocations: 38.31 MB / 0.5403 GB, free: 4.477 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02315/0.3494, allocations: 10.03 MB / 0.5501 GB, free: 2.965 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009557/0.359, allocations: 291.3 kB / 0.5504 GB, free: 2.906 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02261/0.3816, allocations: 10.14 MB / 0.5603 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01659/0.3982, allocations: 4.035 MB / 0.5643 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008319/0.4066, allocations: 2.373 MB / 0.5666 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02412/0.4307, allocations: 16.39 MB / 0.5826 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04921/0.4799, allocations: 31.19 MB / 0.613 GB, free: 1.086 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01652/0.4965, allocations: 8.462 MB / 0.6213 GB, free: 8.602 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01712/0.5137, allocations: 9.324 MB / 0.6304 GB, free: 15.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006557/0.5203, allocations: 2.414 MB / 0.6328 GB, free: 12.83 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009466/0.5297, allocations: 2.82 MB / 0.6355 GB, free: 10.01 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007872/0.5376, allocations: 4.809 MB / 0.6402 GB, free: 5.188 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01845/0.5561, allocations: 9.199 MB / 0.6492 GB, free: 11.95 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04191/0.5981, allocations: 32.18 MB / 0.6806 GB, free: 11.67 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.5981, allocations: 0 / 0.6806 GB, free: 11.67 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5981, allocations: 0 / 0.6806 GB, free: 11.67 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0007429/0.5989, allocations: 0 / 0.6806 GB, free: 11.67 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.05739/0.6563, allocations: 19.02 MB / 0.6992 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.6563, allocations: 11.97 kB / 0.6992 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008207/0.6645, allocations: 2.015 MB / 0.7012 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04661/0.7112, allocations: 8.368 MB / 0.7093 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02169/0.7329, allocations: 10.23 MB / 0.7193 GB, free: 3.77 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001158/0.7341, allocations: 1.064 MB / 0.7204 GB, free: 2.703 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005817/0.7399, allocations: 1.398 MB / 0.7217 GB, free: 1.305 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4123/1.152, allocations: 22.74 MB / 0.744 GB, free: 132.9 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004684/1.153, allocations: 17.44 kB / 0.744 GB, free: 132.9 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003654/1.156, allocations: 0.5818 MB / 0.7445 GB, free: 132.5 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008076/1.157, allocations: 0.7771 MB / 0.7453 GB, free: 132.4 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03902/1.196, allocations: 21.01 MB / 0.7658 GB, free: 123.6 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09879/1.295, allocations: 72.19 MB / 0.8363 GB, free: 54.75 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0242/1.319, allocations: 42.42 MB / 0.8777 GB, free: 7.461 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007013/1.326, allocations: 5.158 MB / 0.8828 GB, free: 2.281 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02257/1.349, allocations: 12.7 MB / 0.8952 GB, free: 5.793 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.345e-05/1.349, allocations: 90.7 kB / 0.8953 GB, free: 5.695 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 6.002e-06/1.349, allocations: 3.938 kB / 0.8953 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.05904/1.408, allocations: 26.67 MB / 0.9213 GB, free: 11.27 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.811e-05/1.408, allocations: 129.3 kB / 0.9214 GB, free: 11.12 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01032/1.419, allocations: 5.768 MB / 0.9271 GB, free: 5.441 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.000968/1.42, allocations: 113.6 kB / 0.9272 GB, free: 5.324 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004835/1.424, allocations: 6.365 MB / 0.9334 GB, free: 15.08 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002401/1.427, allocations: 1.814 MB / 0.9352 GB, free: 13.29 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00269/1.43, allocations: 1.47 MB / 0.9366 GB, free: 11.81 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001269/1.43, allocations: 301.1 kB / 0.9369 GB, free: 11.51 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005815/1.436, allocations: 3.634 MB / 0.9404 GB, free: 7.875 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00863/1.444, allocations: 6.474 MB / 0.9468 GB, free: 104 kB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2558/1.7, allocations: 10.76 MB / 0.9573 GB, free: 174.1 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001031/1.7, allocations: 26.5 kB / 0.9573 GB, free: 174.1 MB / 0.5763 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02485/1.725, allocations: 12.12 MB / 0.9691 GB, free: 171.6 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.278e-05/1.725, allocations: 53.09 kB / 0.9692 GB, free: 171.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001972/1.725, allocations: 91.66 kB / 0.9693 GB, free: 171.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004689/1.73, allocations: 1.6 MB / 0.9708 GB, free: 171.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006324/1.736, allocations: 1.665 MB / 0.9725 GB, free: 171 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01891/1.755, allocations: 19.69 MB / 0.9917 GB, free: 158 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005628/1.761, allocations: 428 kB / 0.9921 GB, free: 157.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009565/1.762, allocations: 365.2 kB / 0.9924 GB, free: 157.8 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.007387/1.769, allocations: 5.187 MB / 0.9975 GB, free: 155.3 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001378/1.771, allocations: 0.6233 MB / 0.9981 GB, free: 155.3 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0139/1.785, allocations: 9.365 MB / 1.007 GB, free: 151.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007661/1.792, allocations: 5.882 MB / 1.013 GB, free: 149.1 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.705e-05/1.792, allocations: 19.5 kB / 1.013 GB, free: 149.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.01e-05/1.792, allocations: 28.59 kB / 1.013 GB, free: 149.1 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03131/1.824, allocations: 21.01 MB / 1.034 GB, free: 137.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.187e-05/1.824, allocations: 8 kB / 1.034 GB, free: 137.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003407/1.827, allocations: 0.8582 MB / 1.034 GB, free: 136.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004178/1.831, allocations: 1.643 MB / 1.036 GB, free: 134.5 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006623/1.832, allocations: 124.8 kB / 1.036 GB, free: 134.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01967/1.852, allocations: 23.27 MB / 1.059 GB, free: 110.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/1.852, allocations: 8 kB / 1.059 GB, free: 110.5 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01803/1.87, allocations: 13.75 MB / 1.072 GB, free: 96.62 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003274/1.873, allocations: 1.401 MB / 1.074 GB, free: 95.21 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001413/1.875, allocations: 107.9 kB / 1.074 GB, free: 95.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003525/1.878, allocations: 287.7 kB / 1.074 GB, free: 94.82 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009445/1.879, allocations: 404.3 kB / 1.074 GB, free: 94.42 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003397/1.879, allocations: 156 kB / 1.075 GB, free: 94.27 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005543/1.885, allocations: 3.883 MB / 1.078 GB, free: 90.41 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.31e-07/1.885, allocations: 4.219 kB / 1.078 GB, free: 90.41 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009181/1.894, allocations: 2.345 MB / 1.081 GB, free: 88.07 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.02171/1.916, allocations: 14.53 MB / 1.095 GB, free: 73.2 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01434/1.93, allocations: 9.907 MB / 1.105 GB, free: 63.18 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/1.93, allocations: 0 / 1.105 GB, free: 63.18 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.008934/1.939, allocations: 5.467 MB / 1.11 GB, free: 57.63 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00988/1.949, allocations: 1.629 MB / 1.111 GB, free: 56.05 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3756/2.325, allocations: 80.3 MB / 1.19 GB, free: 166 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01337/2.338, allocations: 8.847 MB / 1.198 GB, free: 163.5 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006934/2.345, allocations: 2.537 MB / 1.201 GB, free: 163.3 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007533/2.353, allocations: 5.156 MB / 1.206 GB, free: 158.8 MB / 0.5763 GB Notification: Performance of SimCode: time 1.263e-06/2.353, allocations: 0 / 1.206 GB, free: 158.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4823/2.835, allocations: 187.5 MB / 1.389 GB, free: 144.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.97/25.8, allocations: 6.969 kB / 1.389 GB, free: 144.9 MB / 0.5919 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)