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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.491/1.491, allocations: 230.6 MB / 253.5 MB, free: 14.24 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00165/0.00165, allocations: 209.3 kB / 310 MB, free: 3.07 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04252/0.04252, allocations: 8.915 MB / 375.4 MB, free: 6.57 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003643/0.003643, allocations: 85.59 kB / 0.4899 GB, free: 44.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08756/0.09121, allocations: 55.61 MB / 0.5442 GB, free: 5.051 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01477/0.106, allocations: 12.43 MB / 0.5564 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008992/0.115, allocations: 4.49 MB / 0.5607 GB, free: 4.047 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002214/0.1172, allocations: 99.44 kB / 0.5608 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002979/0.1202, allocations: 0.9978 MB / 0.5618 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004212/0.1244, allocations: 1.32 MB / 0.5631 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00302/0.1274, allocations: 0.9343 MB / 0.564 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2125/0.3399, allocations: 4.228 MB / 0.5681 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002455/0.3423, allocations: 1.786 MB / 0.5699 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003018/0.3453, allocations: 1.981 MB / 0.5718 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003692/0.349, allocations: 2.231 MB / 0.574 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001322/0.3503, allocations: 0.5102 MB / 0.5745 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002231/0.3526, allocations: 0.7223 MB / 0.5752 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00125/0.3538, allocations: 1.105 MB / 0.5763 GB, free: 9.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003274/0.3571, allocations: 1.709 MB / 0.5779 GB, free: 8.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008277/0.3654, allocations: 6.785 MB / 0.5846 GB, free: 6.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.3654, allocations: 7.594 kB / 0.5846 GB, free: 6.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3654, allocations: 0 / 0.5846 GB, free: 6.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002068/0.3656, allocations: 1.938 kB / 0.5846 GB, free: 6.414 MB / 382.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.01661/0.3822, allocations: 5.432 MB / 0.5899 GB, free: 3.652 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/0.3823, allocations: 16.52 kB / 0.5899 GB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001778/0.3824, allocations: 88.95 kB / 0.59 GB, free: 3.637 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001533/0.384, allocations: 461.6 kB / 0.5904 GB, free: 3.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005187/0.3892, allocations: 0.8355 MB / 0.5912 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006369/0.3955, allocations: 2.421 MB / 0.5936 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002854/0.3958, allocations: 247.6 kB / 0.5938 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001303/0.3971, allocations: 340.4 kB / 0.5942 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01051/0.4076, allocations: 4.475 MB / 0.5985 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001114/0.4077, allocations: 11.17 kB / 0.5986 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004707/0.4082, allocations: 129.9 kB / 0.5987 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001452/0.4083, allocations: 149.2 kB / 0.5988 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007879/0.4162, allocations: 3.599 MB / 0.6023 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02563/0.4419, allocations: 12.3 MB / 0.6143 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005403/0.4473, allocations: 2.669 MB / 0.617 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002492/0.4498, allocations: 1.282 MB / 0.6182 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006948/0.4567, allocations: 3.125 MB / 0.6213 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001731/0.4584, allocations: 1.101 MB / 0.6223 GB, free: 10.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=143): time 4.108e-06/0.4584, allocations: 0 / 0.6223 GB, free: 10.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=146): time 0.01353/0.472, allocations: 5.353 MB / 0.6276 GB, free: 5.312 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.4721, allocations: 230.9 kB / 0.6278 GB, free: 5.039 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00351/0.4756, allocations: 1.83 MB / 0.6296 GB, free: 3.211 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003729/0.476, allocations: 61.69 kB / 0.6296 GB, free: 3.145 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001973/0.478, allocations: 1.514 MB / 0.6311 GB, free: 1.621 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000753/0.4787, allocations: 0.5232 MB / 0.6316 GB, free: 1.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008773/0.4796, allocations: 354.5 kB / 0.632 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4797, allocations: 301.1 kB / 0.6322 GB, free: 472 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001459/0.4812, allocations: 0.6995 MB / 0.6329 GB, free: 15.76 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002141/0.4833, allocations: 1.529 MB / 0.6344 GB, free: 13.92 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003508/0.4868, allocations: 2.126 MB / 0.6365 GB, free: 11.61 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.477e-05/0.4869, allocations: 4 kB / 0.6365 GB, free: 11.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.005853/0.4927, allocations: 2.591 MB / 0.639 GB, free: 9.129 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.476e-05/0.4928, allocations: 14.22 kB / 0.639 GB, free: 9.117 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-05/0.4928, allocations: 20.88 kB / 0.6391 GB, free: 9.098 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001325/0.4941, allocations: 366.9 kB / 0.6394 GB, free: 8.727 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/0.4958, allocations: 400.4 kB / 0.6398 GB, free: 8.363 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008743/0.5046, allocations: 7.929 MB / 0.6475 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/0.5065, allocations: 96.25 kB / 0.6476 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002316/0.5068, allocations: 87.98 kB / 0.6477 GB, free: 15.87 MB / 446.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,rmsI[3].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[1].mean.y_last,$PRE.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 (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,7,100.0%), (2,8,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.002261/0.509, allocations: 1.036 MB / 0.6487 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005144/0.5095, allocations: 214.6 kB / 0.6489 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004333/0.5139, allocations: 2.159 MB / 0.651 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-05/0.5139, allocations: 19.56 kB / 0.6511 GB, free: 12.47 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/0.5139, allocations: 8 kB / 0.6511 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.775e-05/0.5139, allocations: 7.969 kB / 0.6511 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008946/0.5229, allocations: 4.673 MB / 0.6556 GB, free: 7.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.5229, allocations: 4 kB / 0.6556 GB, free: 7.746 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008372/0.5237, allocations: 174.7 kB / 0.6558 GB, free: 7.586 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001552/0.5253, allocations: 0.5282 MB / 0.6563 GB, free: 7.047 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001494/0.5254, allocations: 43.91 kB / 0.6564 GB, free: 7.004 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01345/0.5389, allocations: 12.55 MB / 0.6686 GB, free: 9.871 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.5389, allocations: 7.5 kB / 0.6686 GB, free: 9.867 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005631/0.5445, allocations: 3.118 MB / 0.6717 GB, free: 6.723 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/0.5457, allocations: 378.5 kB / 0.672 GB, free: 6.352 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004667/0.5462, allocations: 47.92 kB / 0.6721 GB, free: 6.305 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.5473, allocations: 63.95 kB / 0.6721 GB, free: 6.242 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004105/0.5477, allocations: 120.7 kB / 0.6723 GB, free: 6.129 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/0.5478, allocations: 43.98 kB / 0.6723 GB, free: 6.086 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002327/0.5501, allocations: 1.244 MB / 0.6735 GB, free: 4.852 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5501, allocations: 0 / 0.6735 GB, free: 4.852 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003629/0.5538, allocations: 0.6054 MB / 0.6741 GB, free: 4.246 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (rmsI[3].mean.x,rmsI[2].mean.x,rmsI[1].mean.x,cStart.v,cRun.v,quadraticLoadTorque.phi,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.stator.core.Phi.im,imc.stator.core.Phi.re,imc.stator.zeroInductor.i0,imc.inertiaRotor.w) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,rmsI[3].mean.y_last,rmsI[2].mean.y_last,rmsI[1].mean.y_last,idealOpener.control,idealCloser.control) * 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 (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006066/0.5598, allocations: 3.76 MB / 0.6778 GB, free: 476 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004092/0.5639, allocations: 2.274 MB / 0.68 GB, free: 14.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.5639, allocations: 1.875 kB / 0.68 GB, free: 14.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00294/0.5669, allocations: 1.711 MB / 0.6817 GB, free: 12.42 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003299/0.5702, allocations: 0.5705 MB / 0.6822 GB, free: 11.86 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03878/0.609, allocations: 20.83 MB / 0.7026 GB, free: 6.285 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002317/0.6113, allocations: 1.802 MB / 0.7043 GB, free: 4.449 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001479/0.6127, allocations: 429.6 kB / 0.7047 GB, free: 4.027 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001646/0.6144, allocations: 1.163 MB / 0.7059 GB, free: 2.863 MB / 494.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6144, allocations: 0 / 0.7059 GB, free: 2.863 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1219/0.7363, allocations: 60.03 MB / 0.7645 GB, free: 7.375 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.09/15.83, allocations: 112 / 0.7645 GB, free: 7.375 MB / 0.545 GB " [Timeout remaining time 644] (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/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.398824015050195] Failed to read output from testmodel.py, exit status != 0: 16.020876855938695 16.205984063 15.835983608 Calling exit ...