Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Start.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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.IMS_Start,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMS_Start,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Start",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.0008671/0.0008671, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.406/1.406, allocations: 223.3 MB / 239 MB, free: 5.441 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.001259/0.001259, allocations: 176.5 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03452/0.03452, allocations: 8.784 MB / 350.2 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003773/0.0003773, allocations: 10.59 kB / 413.3 MB, free: 43.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1092, allocations: 52.56 MB / 465.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.04128/0.1505, allocations: 39.63 MB / 0.4936 GB, free: 5.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02787/0.1784, allocations: 10.97 MB / 0.5043 GB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01123/0.1897, allocations: 318.9 kB / 0.5046 GB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009892/0.1996, allocations: 2.229 MB / 0.5068 GB, free: 8.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01791/0.2176, allocations: 4.013 MB / 0.5107 GB, free: 4.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009057/0.2266, allocations: 1.973 MB / 0.5127 GB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.4228/0.6494, allocations: 23.09 MB / 0.5352 GB, free: 8.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07228/0.7218, allocations: 31.96 MB / 0.5664 GB, free: 4.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0157/0.7375, allocations: 7.768 MB / 0.574 GB, free: 4.582 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01765/0.7552, allocations: 8.831 MB / 0.5826 GB, free: 2.469 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006574/0.7618, allocations: 1.215 MB / 0.5838 GB, free: 1.254 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01319/0.7751, allocations: 1.669 MB / 0.5854 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01038/0.7855, allocations: 3.874 MB / 0.5892 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0123/0.7978, allocations: 3.969 MB / 0.5931 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04378/0.8417, allocations: 34.9 MB / 0.6272 GB, free: 14.76 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.8417, allocations: 0 / 0.6272 GB, free: 14.76 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.8417, allocations: 0 / 0.6272 GB, free: 14.76 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0014/0.8431, allocations: 0 / 0.6272 GB, free: 14.76 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: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.06687/0.91, allocations: 20.09 MB / 0.6468 GB, free: 12 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.287e-05/0.9101, allocations: 8.031 kB / 0.6468 GB, free: 11.99 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01385/0.924, allocations: 2.946 MB / 0.6497 GB, free: 9.047 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05905/0.983, allocations: 11.35 MB / 0.6608 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02812/1.011, allocations: 12.87 MB / 0.6733 GB, free: 1.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001547/1.013, allocations: 1.364 MB / 0.6747 GB, free: 80 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007925/1.021, allocations: 1.792 MB / 0.6764 GB, free: 14.3 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09209/1.113, allocations: 29.48 MB / 0.7052 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001062/1.114, allocations: 26.59 kB / 0.7052 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.4404/1.554, allocations: 0.7381 MB / 0.706 GB, free: 120.6 MB / 478.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001277/1.556, allocations: 0.9866 MB / 0.7069 GB, free: 120.6 MB / 478.2 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0668/1.622, allocations: 27.18 MB / 0.7335 GB, free: 118.1 MB / 478.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1437/1.766, allocations: 94.32 MB / 0.8256 GB, free: 35.99 MB / 478.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03582/1.802, allocations: 51.94 MB / 0.8763 GB, free: 11.16 MB / 0.4983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01197/1.814, allocations: 7.336 MB / 0.8835 GB, free: 3.816 MB / 0.4983 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2513/2.065, allocations: 20.21 MB / 0.9032 GB, free: 151.9 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001008/2.066, allocations: 110.9 kB / 0.9033 GB, free: 151.9 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=683): time 1.48e-05/2.066, allocations: 0.5 kB / 0.9033 GB, free: 151.9 MB / 0.5139 GB Notification: Performance of matching and sorting (n=691): time 0.1097/2.175, allocations: 43.04 MB / 0.9453 GB, free: 145.3 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/2.175, allocations: 146.3 kB / 0.9455 GB, free: 145.2 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01036/2.186, allocations: 7.053 MB / 0.9524 GB, free: 144 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.001146/2.187, allocations: 133.5 kB / 0.9525 GB, free: 143.8 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.003723/2.191, allocations: 7.815 MB / 0.9601 GB, free: 138 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.002419/2.193, allocations: 2.341 MB / 0.9624 GB, free: 136.2 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006083/2.194, allocations: 187.7 kB / 0.9626 GB, free: 136 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 0.0004271/2.194, allocations: 0.7034 MB / 0.9633 GB, free: 135.6 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006006/2.2, allocations: 4.874 MB / 0.968 GB, free: 133.5 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007456/2.208, allocations: 8.349 MB / 0.9762 GB, free: 126.2 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007948/2.216, allocations: 6.59 MB / 0.9826 GB, free: 122.2 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.496e-05/2.216, allocations: 32 kB / 0.9826 GB, free: 122.2 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.02106/2.237, allocations: 16.09 MB / 0.9984 GB, free: 105.9 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 7.552e-05/2.237, allocations: 52 kB / 0.9984 GB, free: 105.9 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001458/2.237, allocations: 112 kB / 0.9985 GB, free: 105.8 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005292/2.242, allocations: 2.581 MB / 1.001 GB, free: 103.2 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007822/2.25, allocations: 2.103 MB / 1.003 GB, free: 101.1 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02586/2.276, allocations: 28.57 MB / 1.031 GB, free: 71.45 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006774/2.283, allocations: 0.5306 MB / 1.032 GB, free: 70.92 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001003/2.284, allocations: 464.5 kB / 1.032 GB, free: 70.46 MB / 0.5139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1092): * Single equations (assignments): 1079 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(18,41.7%) 100,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0112/2.295, allocations: 6.754 MB / 1.039 GB, free: 63.7 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001646/2.297, allocations: 0.7666 MB / 1.039 GB, free: 62.92 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01943/2.316, allocations: 13.17 MB / 1.052 GB, free: 49.55 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01068/2.327, allocations: 8.266 MB / 1.06 GB, free: 41.19 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.409e-05/2.327, allocations: 24 kB / 1.06 GB, free: 41.16 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.594e-05/2.327, allocations: 39.86 kB / 1.06 GB, free: 41.12 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04282/2.37, allocations: 28.06 MB / 1.088 GB, free: 12.87 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.28e-05/2.37, allocations: 3.953 kB / 1.088 GB, free: 12.87 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004264/2.374, allocations: 1.112 MB / 1.089 GB, free: 11.75 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2156/2.59, allocations: 2.63 MB / 1.091 GB, free: 136.4 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001227/2.591, allocations: 151.9 kB / 1.091 GB, free: 136.4 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03317/2.624, allocations: 32.96 MB / 1.124 GB, free: 122.2 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/2.624, allocations: 3.938 kB / 1.124 GB, free: 122.2 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02808/2.652, allocations: 18.87 MB / 1.142 GB, free: 114.9 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004777/2.657, allocations: 1.765 MB / 1.144 GB, free: 114.3 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001613/2.659, allocations: 133.9 kB / 1.144 GB, free: 114.2 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003781/2.663, allocations: 407.7 kB / 1.144 GB, free: 114.1 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001345/2.664, allocations: 0.5306 MB / 1.145 GB, free: 114.1 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004821/2.664, allocations: 195 kB / 1.145 GB, free: 114 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.007495/2.672, allocations: 4.738 MB / 1.15 GB, free: 112.3 MB / 0.5139 GB Notification: Performance of sort global known variables: time 4.51e-07/2.672, allocations: 2.625 kB / 1.15 GB, free: 112.3 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.01278/2.685, allocations: 3.06 MB / 1.153 GB, free: 112 MB / 0.5139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.stray.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,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 (563): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,41.7%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02652/2.711, allocations: 19.71 MB / 1.172 GB, free: 103.4 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.01999/2.731, allocations: 13.4 MB / 1.185 GB, free: 92.97 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/2.731, allocations: 4 kB / 1.185 GB, free: 92.96 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.01044/2.742, allocations: 7.587 MB / 1.192 GB, free: 86.14 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01095/2.753, allocations: 2.06 MB / 1.194 GB, free: 84.47 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3898/3.143, allocations: 100.8 MB / 1.293 GB, free: 149.1 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02342/3.166, allocations: 11.35 MB / 1.304 GB, free: 148 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.01362/3.18, allocations: 3.287 MB / 1.307 GB, free: 147.8 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01354/3.193, allocations: 6.817 MB / 1.314 GB, free: 147.7 MB / 0.5295 GB Notification: Performance of SimCode: time 1.172e-06/3.193, allocations: 0 / 1.314 GB, free: 147.7 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5278/3.721, allocations: 237.5 MB / 1.546 GB, free: 118.7 MB / 0.5295 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/3.721, allocations: 203.1 kB / 1.546 GB, free: 118.4 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.825/10.55, allocations: 0 / 1.546 GB, free: 118.4 MB / 0.5295 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMS_Start.fmu > HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe 2>&1) Environment - environmentSimulation: