Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.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.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",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.0008152/0.0008153, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.373/1.373, allocations: 223.2 MB / 239 MB, free: 5.457 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.001142/0.001141, allocations: 192.4 kB / 290.3 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03269/0.03269, allocations: 8.775 MB / 350.1 MB, free: 4.668 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004943/0.0004944, allocations: 15.38 kB / 413.3 MB, free: 42.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1134, allocations: 52.56 MB / 465.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01268/0.1261, allocations: 11.96 MB / 477.8 MB, free: 1.383 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00838/0.1346, allocations: 4.125 MB / 481.9 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002144/0.1367, allocations: 67.75 kB / 482 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002621/0.1394, allocations: 0.7419 MB / 482.7 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003804/0.1432, allocations: 1.06 MB / 483.8 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001936/0.1451, allocations: 0.6271 MB / 484.4 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005643/0.1508, allocations: 4.101 MB / 488.5 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003222/0.154, allocations: 2.206 MB / 490.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002534/0.1566, allocations: 1.292 MB / 492 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002865/0.1595, allocations: 1.591 MB / 493.6 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004478/0.1599, allocations: 208 kB / 493.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001177/0.1611, allocations: 391.8 kB / 494.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006439/0.1618, allocations: 0.7238 MB / 494.9 MB, free: 180 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009893/0.1628, allocations: 0.746 MB / 495.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005008/0.1678, allocations: 5.446 MB / 0.4894 GB, free: 9.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.008e-05/0.1678, allocations: 0 / 0.4894 GB, free: 9.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.237e-06/0.1678, allocations: 0 / 0.4894 GB, free: 9.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001966/0.168, allocations: 0 / 0.4894 GB, free: 9.961 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.009552/0.1776, allocations: 3.739 MB / 0.493 GB, free: 6.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.1777, allocations: 12.03 kB / 0.493 GB, free: 6.137 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009053/0.1786, allocations: 467.7 kB / 0.4935 GB, free: 5.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003953/0.1825, allocations: 0.8232 MB / 0.4943 GB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00388/0.1864, allocations: 2.275 MB / 0.4965 GB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/0.1866, allocations: 250.5 kB / 0.4967 GB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004543/0.1871, allocations: 331.9 kB / 0.4971 GB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007036/0.1941, allocations: 4.287 MB / 0.5012 GB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.737e-05/0.1942, allocations: 8 kB / 0.5013 GB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000281/0.1945, allocations: 136 kB / 0.5014 GB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001417/0.1946, allocations: 150.5 kB / 0.5015 GB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005857/0.2005, allocations: 3.57 MB / 0.505 GB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02019/0.2207, allocations: 13.91 MB / 0.5186 GB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005846/0.2266, allocations: 6.605 MB / 0.5251 GB, free: 4.004 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002025/0.2287, allocations: 1.41 MB / 0.5264 GB, free: 2.598 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.236/0.4647, allocations: 3.678 MB / 0.53 GB, free: 62.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00147/0.4662, allocations: 0.9429 MB / 0.5309 GB, free: 62.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 4.669e-06/0.4662, allocations: 1.75 kB / 0.5309 GB, free: 62.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.01158/0.4778, allocations: 6.042 MB / 0.5368 GB, free: 61.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.481e-05/0.4779, allocations: 230.6 kB / 0.5371 GB, free: 61.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002843/0.4807, allocations: 1.766 MB / 0.5388 GB, free: 60.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001355/0.4809, allocations: 56.97 kB / 0.5388 GB, free: 60.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001277/0.4822, allocations: 1.464 MB / 0.5403 GB, free: 60.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003993/0.4826, allocations: 0.4971 MB / 0.5408 GB, free: 59.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.329e-05/0.4827, allocations: 37.19 kB / 0.5408 GB, free: 59.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.4828, allocations: 384.7 kB / 0.5412 GB, free: 59.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.484, allocations: 0.6871 MB / 0.5418 GB, free: 59.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001708/0.4857, allocations: 1.344 MB / 0.5431 GB, free: 58.76 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.4871, allocations: 0.9357 MB / 0.5441 GB, free: 58.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.488e-05/0.4872, allocations: 5.219 kB / 0.5441 GB, free: 58.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004124/0.4913, allocations: 2.629 MB / 0.5466 GB, free: 57.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.537e-05/0.4914, allocations: 12.88 kB / 0.5466 GB, free: 57.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.518e-05/0.4914, allocations: 22.06 kB / 0.5467 GB, free: 57.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009176/0.4923, allocations: 376.1 kB / 0.547 GB, free: 57.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/0.4937, allocations: 394.9 kB / 0.5474 GB, free: 57.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00618/0.4999, allocations: 7.694 MB / 0.5549 GB, free: 51.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/0.5015, allocations: 102.5 kB / 0.555 GB, free: 51.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000163/0.5017, allocations: 82.62 kB / 0.5551 GB, free: 51.12 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsI[3].mean.y_last,rmsI[3].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[1].mean.y_last,rmsI[1].mean.y_last,idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001742/0.5034, allocations: 1.024 MB / 0.5561 GB, free: 50.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002709/0.5037, allocations: 204.4 kB / 0.5563 GB, free: 50.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003238/0.5069, allocations: 2.327 MB / 0.5586 GB, free: 49.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.507, allocations: 18.33 kB / 0.5586 GB, free: 49.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.507, allocations: 8.984 kB / 0.5586 GB, free: 49.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.507, allocations: 7.594 kB / 0.5586 GB, free: 49.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006564/0.5136, allocations: 5.123 MB / 0.5636 GB, free: 46.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.5136, allocations: 4.391 kB / 0.5636 GB, free: 46.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006879/0.5143, allocations: 170.8 kB / 0.5638 GB, free: 46.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001162/0.5155, allocations: 0.5253 MB / 0.5643 GB, free: 46.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.901e-05/0.5156, allocations: 51.7 kB / 0.5643 GB, free: 46.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00875/0.5243, allocations: 12.11 MB / 0.5761 GB, free: 34.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.5244, allocations: 4 kB / 0.5761 GB, free: 34.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004146/0.5285, allocations: 3.272 MB / 0.5793 GB, free: 31.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007854/0.5293, allocations: 434.6 kB / 0.5798 GB, free: 30.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000257/0.5296, allocations: 44.11 kB / 0.5798 GB, free: 30.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000715/0.5303, allocations: 63.95 kB / 0.5799 GB, free: 30.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002505/0.5306, allocations: 123.8 kB / 0.58 GB, free: 30.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.272e-05/0.5306, allocations: 43.98 kB / 0.58 GB, free: 30.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001473/0.5321, allocations: 1.204 MB / 0.5812 GB, free: 29.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5321, allocations: 0 / 0.5812 GB, free: 29.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00231/0.5344, allocations: 0.5937 MB / 0.5818 GB, free: 28.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (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,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control,idealOpener.control,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004107/0.5386, allocations: 3.886 MB / 0.5856 GB, free: 24.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003118/0.5417, allocations: 2.405 MB / 0.5879 GB, free: 22.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.5417, allocations: 1.875 kB / 0.5879 GB, free: 22.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00199/0.5437, allocations: 1.76 MB / 0.5896 GB, free: 20.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002448/0.5462, allocations: 0.5332 MB / 0.5902 GB, free: 19.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02816/0.5744, allocations: 16.98 MB / 0.6067 GB, free: 1.848 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001669/0.5761, allocations: 2.331 MB / 0.609 GB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001525/0.5776, allocations: 416 kB / 0.6094 GB, free: 15.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001465/0.5791, allocations: 1.151 MB / 0.6105 GB, free: 13.93 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5791, allocations: 0 / 0.6105 GB, free: 13.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08273/0.6618, allocations: 50.72 MB / 0.6601 GB, free: 11.63 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/0.662, allocations: 203.3 kB / 0.6603 GB, free: 11.39 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.778/3.44, allocations: 0 / 0.6603 GB, free: 11.39 MB / 430.1 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1) Environment - environmentSimulation: