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-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.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.001257/0.001257, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.329/1.329, allocations: 222.9 MB / 238.9 MB, free: 4.766 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.001385/0.001385, allocations: 192.5 kB / 289.1 MB, free: 2.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03434/0.03434, allocations: 8.799 MB / 348.1 MB, free: 4.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 74.48 kB / 410.5 MB, free: 42.45 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08645/0.08803, allocations: 51.58 MB / 462.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.04054/0.1286, allocations: 44.48 MB / 0.4947 GB, free: 2.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02418/0.1528, allocations: 11.66 MB / 0.5061 GB, free: 6.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01002/0.1629, allocations: 342.8 kB / 0.5064 GB, free: 6.059 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02595/0.1889, allocations: 11.61 MB / 0.5177 GB, free: 10.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01437/0.2033, allocations: 4.376 MB / 0.522 GB, free: 6.043 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008071/0.2114, allocations: 2.724 MB / 0.5247 GB, free: 3.336 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2074/0.4188, allocations: 21.3 MB / 0.5455 GB, free: 6.316 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0519/0.4707, allocations: 34.6 MB / 0.5792 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01602/0.4868, allocations: 9.275 MB / 0.5883 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01834/0.5052, allocations: 11.53 MB / 0.5996 GB, free: 9.062 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006616/0.5119, allocations: 2.004 MB / 0.6015 GB, free: 7.059 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009574/0.5215, allocations: 2.405 MB / 0.6039 GB, free: 4.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007022/0.5285, allocations: 5.084 MB / 0.6088 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01709/0.5456, allocations: 10.69 MB / 0.6193 GB, free: 5.137 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04085/0.5865, allocations: 40.39 MB / 0.6587 GB, free: 13.41 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.5865, allocations: 1.594 kB / 0.6587 GB, free: 13.41 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.5866, allocations: 0 / 0.6587 GB, free: 13.41 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001081/0.5876, allocations: 0 / 0.6587 GB, free: 13.41 MB / 462.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.06937/0.657, allocations: 23.94 MB / 0.6821 GB, free: 5.504 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.6571, allocations: 19.91 kB / 0.6821 GB, free: 5.484 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01075/0.6678, allocations: 2.953 MB / 0.685 GB, free: 2.535 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05922/0.7271, allocations: 11.3 MB / 0.696 GB, free: 7.344 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3561/1.083, allocations: 13 MB / 0.7087 GB, free: 137.8 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001421/1.085, allocations: 1.367 MB / 0.7101 GB, free: 137.8 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007121/1.092, allocations: 1.797 MB / 0.7118 GB, free: 137.8 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06704/1.159, allocations: 29.6 MB / 0.7407 GB, free: 127.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008274/1.16, allocations: 28.86 kB / 0.7408 GB, free: 127.7 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005712/1.166, allocations: 0.7425 MB / 0.7415 GB, free: 127.1 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008385/1.166, allocations: 0.9856 MB / 0.7424 GB, free: 127 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04951/1.216, allocations: 27.31 MB / 0.7691 GB, free: 107.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1335/1.349, allocations: 94.03 MB / 0.8609 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3894/1.739, allocations: 52.02 MB / 0.9117 GB, free: 139.7 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01175/1.751, allocations: 7.312 MB / 0.9189 GB, free: 139.6 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03442/1.785, allocations: 20.19 MB / 0.9386 GB, free: 134.2 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.447e-05/1.785, allocations: 117.6 kB / 0.9387 GB, free: 134.1 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=683): time 7.174e-06/1.785, allocations: 0 / 0.9387 GB, free: 134.1 MB / 0.5139 GB Notification: Performance of matching and sorting (n=691): time 0.07812/1.863, allocations: 38.81 MB / 0.9766 GB, free: 118.2 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.219e-05/1.863, allocations: 152.4 kB / 0.9768 GB, free: 118 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008944/1.872, allocations: 7.101 MB / 0.9837 GB, free: 115.3 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.001049/1.873, allocations: 140.7 kB / 0.9838 GB, free: 115.2 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.003274/1.877, allocations: 7.81 MB / 0.9915 GB, free: 108.4 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.002076/1.879, allocations: 2.344 MB / 0.9937 GB, free: 106.4 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002527/1.881, allocations: 1.868 MB / 0.9956 GB, free: 105.3 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 3.398e-05/1.881, allocations: 301.1 kB / 0.9959 GB, free: 105 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006392/1.888, allocations: 4.899 MB / 1.001 GB, free: 101.9 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008624/1.896, allocations: 8.376 MB / 1.009 GB, free: 91.97 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01586/1.912, allocations: 14.07 MB / 1.023 GB, free: 76.24 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001035/1.912, allocations: 32 kB / 1.023 GB, free: 76.21 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.02515/1.938, allocations: 16.16 MB / 1.038 GB, free: 59.89 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 7.993e-05/1.938, allocations: 56.86 kB / 1.038 GB, free: 59.84 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000134/1.938, allocations: 115.9 kB / 1.039 GB, free: 59.73 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005685/1.944, allocations: 2.566 MB / 1.041 GB, free: 57.14 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007218/1.951, allocations: 2.102 MB / 1.043 GB, free: 55.04 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02808/1.979, allocations: 28.54 MB / 1.071 GB, free: 25.45 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007213/1.986, allocations: 0.5267 MB / 1.071 GB, free: 24.92 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001533/1.988, allocations: 464 kB / 1.072 GB, free: 24.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 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,rheostatQS.booleanStep[3].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[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 (1092): * Single equations (assignments): 1079 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * 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): 8 systems {(1,1,100.0%), (18,100,41.7%), (1,5,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01144/1.999, allocations: 6.758 MB / 1.079 GB, free: 17.69 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002257/2.001, allocations: 0.7685 MB / 1.079 GB, free: 16.91 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2048/2.206, allocations: 13.15 MB / 1.092 GB, free: 136.4 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01312/2.219, allocations: 8.305 MB / 1.1 GB, free: 136.1 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.616e-05/2.22, allocations: 27.69 kB / 1.1 GB, free: 136.1 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-05/2.22, allocations: 34.39 kB / 1.1 GB, free: 136.1 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04407/2.264, allocations: 28.1 MB / 1.128 GB, free: 127.8 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.339e-05/2.264, allocations: 3.969 kB / 1.128 GB, free: 127.8 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004606/2.268, allocations: 1.111 MB / 1.129 GB, free: 127.7 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005921/2.274, allocations: 2.636 MB / 1.131 GB, free: 126.9 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009261/2.275, allocations: 150.3 kB / 1.132 GB, free: 126.8 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02868/2.304, allocations: 32.98 MB / 1.164 GB, free: 103.8 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/2.304, allocations: 11.56 kB / 1.164 GB, free: 103.8 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02589/2.33, allocations: 18.91 MB / 1.182 GB, free: 95.79 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004697/2.335, allocations: 1.765 MB / 1.184 GB, free: 95.05 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002102/2.337, allocations: 128.9 kB / 1.184 GB, free: 94.95 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00458/2.341, allocations: 395.7 kB / 1.184 GB, free: 94.75 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001436/2.343, allocations: 0.5328 MB / 1.185 GB, free: 94.47 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004566/2.343, allocations: 194.2 kB / 1.185 GB, free: 94.41 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.005981/2.349, allocations: 4.789 MB / 1.19 GB, free: 90.88 MB / 0.5139 GB Notification: Performance of sort global known variables: time 2.71e-07/2.349, allocations: 3.844 kB / 1.19 GB, free: 90.88 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.00946/2.359, allocations: 3.058 MB / 1.193 GB, free: 87.82 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 (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,5,100.0%), (1,8,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (18,100,41.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02461/2.383, allocations: 19.75 MB / 1.212 GB, free: 68.25 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.01586/2.399, allocations: 13.45 MB / 1.225 GB, free: 54.69 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/2.399, allocations: 4 kB / 1.225 GB, free: 54.69 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.008462/2.408, allocations: 7.593 MB / 1.233 GB, free: 46.99 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007927/2.416, allocations: 2.017 MB / 1.235 GB, free: 45.05 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3689/2.785, allocations: 143 MB / 1.374 GB, free: 100.8 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01118/2.796, allocations: 11.35 MB / 1.385 GB, free: 93.99 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.008325/2.804, allocations: 3.29 MB / 1.389 GB, free: 90.75 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007098/2.811, allocations: 6.818 MB / 1.395 GB, free: 83.93 MB / 0.5295 GB Notification: Performance of SimCode: time 8.22e-07/2.811, allocations: 0 / 1.395 GB, free: 83.93 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.46/3.271, allocations: 244.1 MB / 1.634 GB, free: 19.07 MB / 0.5295 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001446/3.272, allocations: 209 kB / 1.634 GB, free: 18.82 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.7/9.972, allocations: 4 kB / 1.634 GB, free: 18.81 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/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)