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.000766/0.000766, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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 0.9197/0.9197, allocations: 177.1 MB / 199.4 MB, free: 5.945 MB / 186.7 MB " [Timeout remaining time 179] 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.001213/0.001213, allocations: 168.4 kB / 256 MB, free: 13.35 MB / 250.7 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.0218/0.0218, allocations: 6.667 MB / 319 MB, free: 26.76 MB / 266.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 445.4 MB, free: 37.62 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.837e-05/1.982e-05, allocations: 6.219 kB / 445.4 MB, free: 37.61 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.007467/0.007487, allocations: 12.48 MB / 457.9 MB, free: 25.07 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005038/0.01252, allocations: 4.493 MB / 462.4 MB, free: 20.56 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000893/0.01342, allocations: 99.38 kB / 462.5 MB, free: 20.46 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00134/0.01476, allocations: 1.001 MB / 463.5 MB, free: 19.45 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001656/0.01641, allocations: 1.354 MB / 464.8 MB, free: 18.09 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001128/0.01754, allocations: 0.9466 MB / 465.8 MB, free: 17.14 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002607/0.02015, allocations: 4.435 MB / 470.2 MB, free: 12.69 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001851/0.022, allocations: 1.722 MB / 471.9 MB, free: 10.9 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002619/0.02462, allocations: 2.889 MB / 474.8 MB, free: 8.004 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001433/0.02605, allocations: 1.757 MB / 476.6 MB, free: 6.242 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005504/0.0266, allocations: 0.5078 MB / 477.1 MB, free: 5.734 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007216/0.02732, allocations: 0.7183 MB / 477.8 MB, free: 5.016 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003932/0.02772, allocations: 1.122 MB / 478.9 MB, free: 3.891 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001049/0.02877, allocations: 1.466 MB / 480.4 MB, free: 2.422 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003625/0.03239, allocations: 6.817 MB / 487.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.03239, allocations: 0 / 487.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.0324, allocations: 0 / 487.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001218/0.03252, allocations: 0 / 487.2 MB, free: 11.59 MB / 346.7 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.007053/0.03957, allocations: 5.384 MB / 492.6 MB, free: 6.125 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.03962, allocations: 8.031 kB / 492.6 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004218/0.04004, allocations: 467.9 kB / 493.1 MB, free: 5.648 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002166/0.04221, allocations: 0.8261 MB / 493.9 MB, free: 4.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002898/0.04511, allocations: 2.408 MB / 496.3 MB, free: 2.359 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.04523, allocations: 246.9 kB / 496.5 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003241/0.04556, allocations: 328.3 kB / 496.9 MB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004765/0.05032, allocations: 4.477 MB / 0.4896 GB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.272e-05/0.05037, allocations: 7.953 kB / 0.4896 GB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002119/0.05059, allocations: 144 kB / 0.4897 GB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.782e-05/0.05068, allocations: 146.5 kB / 0.4899 GB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003923/0.05461, allocations: 3.594 MB / 0.4934 GB, free: 9.336 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01251/0.06712, allocations: 12.3 MB / 0.5054 GB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003109/0.07023, allocations: 2.675 MB / 0.508 GB, free: 10.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/0.07158, allocations: 1.285 MB / 0.5093 GB, free: 8.828 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003644/0.07522, allocations: 3.115 MB / 0.5123 GB, free: 5.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009818/0.0762, allocations: 1.101 MB / 0.5134 GB, free: 4.508 MB / 378.7 MB Notification: Performance of pre-optimization done (n=143): time 2.736e-06/0.07621, allocations: 0 / 0.5134 GB, free: 4.508 MB / 378.7 MB Notification: Performance of matching and sorting (n=146): time 0.006928/0.08314, allocations: 5.355 MB / 0.5186 GB, free: 15.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.08325, allocations: 226.9 kB / 0.5188 GB, free: 14.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002364/0.08561, allocations: 1.853 MB / 0.5206 GB, free: 12.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002209/0.08583, allocations: 57.7 kB / 0.5207 GB, free: 12.92 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00104/0.08688, allocations: 1.521 MB / 0.5222 GB, free: 11.39 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003778/0.08725, allocations: 0.5113 MB / 0.5227 GB, free: 10.88 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003885/0.08764, allocations: 347.4 kB / 0.523 GB, free: 10.53 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.224e-05/0.08772, allocations: 305.1 kB / 0.5233 GB, free: 10.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008252/0.08855, allocations: 0.6988 MB / 0.524 GB, free: 9.531 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001093/0.08964, allocations: 1.538 MB / 0.5255 GB, free: 7.668 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0018/0.09144, allocations: 2.13 MB / 0.5276 GB, free: 5.281 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.09145, allocations: 4 kB / 0.5276 GB, free: 5.277 MB / 394.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.002885/0.09434, allocations: 2.586 MB / 0.5301 GB, free: 2.668 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.09436, allocations: 14.66 kB / 0.5301 GB, free: 2.656 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.09438, allocations: 19.98 kB / 0.5301 GB, free: 2.637 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006254/0.09501, allocations: 376.2 kB / 0.5305 GB, free: 2.254 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007287/0.09574, allocations: 391.4 kB / 0.5309 GB, free: 1.871 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004809/0.1005, allocations: 7.927 MB / 0.5386 GB, free: 9.488 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.1016, allocations: 95.91 kB / 0.5387 GB, free: 9.395 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-05/0.1017, allocations: 80 kB / 0.5388 GB, free: 9.316 MB / 410.7 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.001446/0.1031, allocations: 1.04 MB / 0.5398 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002364/0.1034, allocations: 206.7 kB / 0.54 GB, free: 8.062 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002436/0.1058, allocations: 2.179 MB / 0.5421 GB, free: 5.855 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.1058, allocations: 16 kB / 0.5421 GB, free: 5.84 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.1058, allocations: 12 kB / 0.5421 GB, free: 5.828 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.1058, allocations: 3.984 kB / 0.5421 GB, free: 5.824 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005152/0.111, allocations: 4.668 MB / 0.5467 GB, free: 1.059 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.111, allocations: 7.984 kB / 0.5467 GB, free: 1.051 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004093/0.1114, allocations: 175.9 kB / 0.5469 GB, free: 0.8789 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000778/0.1122, allocations: 0.5164 MB / 0.5474 GB, free: 352 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.9e-05/0.1123, allocations: 47.97 kB / 0.5474 GB, free: 304 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007715/0.12, allocations: 12.53 MB / 0.5597 GB, free: 3.09 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.12, allocations: 7.969 kB / 0.5597 GB, free: 3.082 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1896/0.3096, allocations: 3.125 MB / 0.5627 GB, free: 97.31 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/0.3107, allocations: 368.6 kB / 0.5631 GB, free: 97.31 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002467/0.311, allocations: 44.09 kB / 0.5631 GB, free: 97.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006419/0.3116, allocations: 63.09 kB / 0.5632 GB, free: 97.31 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003958/0.312, allocations: 121.6 kB / 0.5633 GB, free: 97.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.3121, allocations: 43.3 kB / 0.5633 GB, free: 97.31 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001807/0.3139, allocations: 1.249 MB / 0.5645 GB, free: 97.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3139, allocations: 0 / 0.5645 GB, free: 97.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002178/0.3161, allocations: 0.6073 MB / 0.5651 GB, free: 97.2 MB / 426.7 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.003629/0.3197, allocations: 3.755 MB / 0.5688 GB, free: 96.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002666/0.3224, allocations: 2.285 MB / 0.571 GB, free: 95.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.3224, allocations: 0 / 0.571 GB, free: 95.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001741/0.3242, allocations: 1.694 MB / 0.5727 GB, free: 95.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002019/0.3262, allocations: 0.5695 MB / 0.5732 GB, free: 95.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02594/0.3521, allocations: 20.71 MB / 0.5935 GB, free: 82.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001316/0.3534, allocations: 1.807 MB / 0.5952 GB, free: 80.79 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00113/0.3546, allocations: 426.7 kB / 0.5956 GB, free: 80.49 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008148/0.3554, allocations: 1.165 MB / 0.5968 GB, free: 79.41 MB / 426.7 MB Notification: Performance of SimCode: time 1.943e-06/0.3554, allocations: 4 kB / 0.5968 GB, free: 79.41 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07696/0.4323, allocations: 59.83 MB / 0.6552 GB, free: 20.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.352/8.784, allocations: 0 / 0.6552 GB, free: 20.66 MB / 426.7 MB " [Timeout remaining time 651] (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: 11.246130260638893] Failed to read output from testmodel.py, exit status != 0: 8.894434451125562 8.901235091 8.867423706 Calling exit ...