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.001111/0.001112, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.35/1.35, allocations: 223.2 MB / 238.9 MB, free: 5.664 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.001664/0.001664, allocations: 181 kB / 290.2 MB, free: 2.352 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03344/0.03344, allocations: 8.783 MB / 350.1 MB, free: 4.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003763/0.0003763, allocations: 11.81 kB / 413.2 MB, free: 43.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09955/0.09994, allocations: 52.57 MB / 465.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.03588/0.1359, allocations: 36.26 MB / 0.4902 GB, free: 9.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02412/0.16, allocations: 11.41 MB / 0.5014 GB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00885/0.1689, allocations: 298.9 kB / 0.5017 GB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0103/0.1793, allocations: 2.468 MB / 0.5041 GB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01787/0.1972, allocations: 4.139 MB / 0.5081 GB, free: 6.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009578/0.2068, allocations: 2.023 MB / 0.5101 GB, free: 4.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02798/0.2348, allocations: 16.52 MB / 0.5262 GB, free: 4.223 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.4802/0.715, allocations: 31.66 MB / 0.5571 GB, free: 5.219 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01513/0.7302, allocations: 7.235 MB / 0.5642 GB, free: 5.215 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01604/0.7463, allocations: 7.93 MB / 0.5719 GB, free: 5.211 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006084/0.7524, allocations: 1.216 MB / 0.5731 GB, free: 5.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009171/0.7616, allocations: 1.52 MB / 0.5746 GB, free: 5.207 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0087/0.7704, allocations: 3.742 MB / 0.5783 GB, free: 4.965 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009659/0.7801, allocations: 3.967 MB / 0.5821 GB, free: 3.516 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0431/0.8232, allocations: 34.82 MB / 0.6161 GB, free: 5.578 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.8232, allocations: 0 / 0.6161 GB, free: 5.578 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.8233, allocations: 0 / 0.6161 GB, free: 5.578 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.001268/0.8245, allocations: 0 / 0.6161 GB, free: 5.578 MB / 398.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.06528/0.8898, allocations: 20.01 MB / 0.6357 GB, free: 3.742 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.8899, allocations: 8.031 kB / 0.6357 GB, free: 3.734 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01175/0.9017, allocations: 2.944 MB / 0.6386 GB, free: 1.98 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06057/0.9623, allocations: 11.15 MB / 0.6495 GB, free: 7.551 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03003/0.9923, allocations: 12.85 MB / 0.662 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001513/0.9939, allocations: 1.361 MB / 0.6633 GB, free: 9.492 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008556/1.002, allocations: 1.794 MB / 0.6651 GB, free: 7.711 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08873/1.091, allocations: 29.32 MB / 0.6937 GB, free: 10.31 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001076/1.092, allocations: 27.73 kB / 0.6938 GB, free: 10.28 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00762/1.1, allocations: 0.7485 MB / 0.6945 GB, free: 9.551 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001024/1.101, allocations: 0.9907 MB / 0.6954 GB, free: 8.555 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5078/1.609, allocations: 27.19 MB / 0.722 GB, free: 116.2 MB / 478.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1646/1.773, allocations: 94.29 MB / 0.8141 GB, free: 44.95 MB / 478.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03498/1.808, allocations: 51.94 MB / 0.8648 GB, free: 4.129 MB / 494.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03909/1.848, allocations: 16.46 MB / 0.8809 GB, free: 3.766 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.294e-05/1.848, allocations: 108.6 kB / 0.881 GB, free: 3.648 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=697): time 8.837e-06/1.848, allocations: 0 / 0.881 GB, free: 3.648 MB / 0.4983 GB Notification: Performance of matching and sorting (n=705): time 0.3612/2.209, allocations: 39.1 MB / 0.9192 GB, free: 150.8 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/2.209, allocations: 150.8 kB / 0.9193 GB, free: 150.7 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01155/2.221, allocations: 7.007 MB / 0.9261 GB, free: 150.2 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.00146/2.222, allocations: 137.2 kB / 0.9263 GB, free: 150.1 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.004537/2.227, allocations: 7.778 MB / 0.9339 GB, free: 145.3 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.002968/2.23, allocations: 2.391 MB / 0.9362 GB, free: 143.5 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008817/2.231, allocations: 196 kB / 0.9364 GB, free: 143.4 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 0.000498/2.231, allocations: 0.6958 MB / 0.9371 GB, free: 142.9 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007347/2.238, allocations: 4.93 MB / 0.9419 GB, free: 141 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01035/2.249, allocations: 8.356 MB / 0.9501 GB, free: 134.8 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01066/2.26, allocations: 6.648 MB / 0.9565 GB, free: 131.8 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001258/2.26, allocations: 34.31 kB / 0.9566 GB, free: 131.8 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.02826/2.288, allocations: 16.22 MB / 0.9724 GB, free: 125.1 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 7.51e-05/2.288, allocations: 56.94 kB / 0.9725 GB, free: 125.1 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001791/2.288, allocations: 111.5 kB / 0.9726 GB, free: 125.1 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005668/2.294, allocations: 2.55 MB / 0.9751 GB, free: 123.8 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008144/2.302, allocations: 2.123 MB / 0.9771 GB, free: 122 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02844/2.331, allocations: 29.35 MB / 1.006 GB, free: 94.31 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00883/2.34, allocations: 0.5386 MB / 1.006 GB, free: 93.77 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001583/2.341, allocations: 459.9 kB / 1.007 GB, free: 93.32 MB / 0.5139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 507 * 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 (1102): * Single equations (assignments): 1089 * 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.01088/2.352, allocations: 6.762 MB / 1.013 GB, free: 86.54 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001893/2.354, allocations: 0.7679 MB / 1.014 GB, free: 85.77 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01983/2.374, allocations: 13.31 MB / 1.027 GB, free: 72.25 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01239/2.386, allocations: 8.355 MB / 1.035 GB, free: 63.8 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.415e-05/2.386, allocations: 28 kB / 1.035 GB, free: 63.77 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.763e-05/2.386, allocations: 35.86 kB / 1.035 GB, free: 63.73 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04947/2.436, allocations: 28.35 MB / 1.063 GB, free: 35.19 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.033e-05/2.436, allocations: 5.75 kB / 1.063 GB, free: 35.19 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00487/2.441, allocations: 1.143 MB / 1.064 GB, free: 34.04 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005748/2.447, allocations: 2.603 MB / 1.067 GB, free: 31.41 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009255/2.448, allocations: 152 kB / 1.067 GB, free: 31.26 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2779/2.725, allocations: 33.88 MB / 1.1 GB, free: 128.8 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/2.725, allocations: 6.938 kB / 1.1 GB, free: 128.8 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03408/2.76, allocations: 19.71 MB / 1.119 GB, free: 126.8 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00558/2.765, allocations: 1.787 MB / 1.121 GB, free: 126.7 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001877/2.767, allocations: 134.3 kB / 1.121 GB, free: 126.7 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004289/2.771, allocations: 407.3 kB / 1.121 GB, free: 126.7 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00118/2.773, allocations: 0.5364 MB / 1.122 GB, free: 126.7 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004403/2.773, allocations: 205.3 kB / 1.122 GB, free: 126.7 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.007386/2.78, allocations: 4.695 MB / 1.127 GB, free: 126.4 MB / 0.5139 GB Notification: Performance of sort global known variables: time 6.41e-07/2.78, allocations: 3.438 kB / 1.127 GB, free: 126.4 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.0153/2.796, allocations: 3.067 MB / 1.13 GB, free: 126.4 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 (577): * Single equations (assignments): 562 * 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%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,41.0%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02925/2.825, allocations: 21.1 MB / 1.15 GB, free: 116.5 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.02014/2.845, allocations: 13.55 MB / 1.164 GB, free: 109.1 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/2.845, allocations: 3.125 kB / 1.164 GB, free: 109.1 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.01714/2.862, allocations: 7.693 MB / 1.171 GB, free: 102.2 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01414/2.877, allocations: 1.947 MB / 1.173 GB, free: 100.6 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4469/3.324, allocations: 176.6 MB / 1.345 GB, free: 127.4 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01291/3.337, allocations: 11.65 MB / 1.357 GB, free: 122.2 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.01006/3.347, allocations: 3.313 MB / 1.36 GB, free: 121 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01123/3.358, allocations: 6.813 MB / 1.367 GB, free: 114.7 MB / 0.5295 GB Notification: Performance of SimCode: time 2.805e-06/3.358, allocations: 2.438 kB / 1.367 GB, free: 114.7 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5045/3.862, allocations: 237.6 MB / 1.599 GB, free: 66.11 MB / 0.5295 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001447/3.863, allocations: 197.2 kB / 1.599 GB, free: 65.87 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.192/11.05, allocations: 0 / 1.599 GB, free: 65.87 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: