Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 225.6 MB / 252.5 MB, free: 13.07 MB / 206.1 MB " [Timeout remaining time 178] 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 47.92 kB / 370.5 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2922, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01074/0.303, allocations: 8.262 MB / 430.9 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005442/0.3084, allocations: 2.699 MB / 433.6 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001147/0.3096, allocations: 47.69 kB / 433.7 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001927/0.3115, allocations: 0.6487 MB / 434.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002022/0.3135, allocations: 0.6679 MB / 435 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006977/0.3142, allocations: 295.5 kB / 435.3 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002504/0.3167, allocations: 2.027 MB / 437.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001213/0.3179, allocations: 0.8315 MB / 438.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001205/0.3191, allocations: 0.9071 MB / 439 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001507/0.3207, allocations: 1.094 MB / 440.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003011/0.321, allocations: 228 kB / 440.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005759/0.3215, allocations: 323.8 kB / 440.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006485/0.3222, allocations: 0.6427 MB / 441.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00109/0.3233, allocations: 1.027 MB / 442.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003345/0.3266, allocations: 3.002 MB / 445.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.3266, allocations: 3.984 kB / 445.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3266, allocations: 0 / 445.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.927e-05/0.3267, allocations: 0 / 445.3 MB, free: 7.801 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004252/0.3309, allocations: 2.099 MB / 447.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.331, allocations: 15.97 kB / 447.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003097/0.3313, allocations: 232 kB / 447.7 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006055/0.3319, allocations: 219.7 kB / 447.9 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00205/0.3339, allocations: 1.078 MB / 449 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.786e-05/0.334, allocations: 111.4 kB / 449.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002524/0.3343, allocations: 155.9 kB / 449.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003156/0.3374, allocations: 1.955 MB / 451.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.685e-05/0.3375, allocations: 15.94 kB / 451.2 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.3376, allocations: 63.98 kB / 451.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-05/0.3377, allocations: 78.91 kB / 451.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002625/0.3403, allocations: 1.589 MB / 452.9 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009938/0.3503, allocations: 6.16 MB / 459.1 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.3516, allocations: 0.7409 MB / 459.8 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001/0.3526, allocations: 0.5421 MB / 460.4 MB, free: 8.398 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001934/0.3528, allocations: 40.62 kB / 460.4 MB, free: 8.355 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.3529, allocations: 39.22 kB / 460.4 MB, free: 8.309 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 3.036e-06/0.3529, allocations: 0 / 460.4 MB, free: 8.309 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01333/0.3662, allocations: 5.477 MB / 465.9 MB, free: 2.797 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.791e-05/0.3663, allocations: 64.41 kB / 466 MB, free: 2.719 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001773/0.3681, allocations: 1.14 MB / 467.1 MB, free: 1.562 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.794e-05/0.3681, allocations: 41.7 kB / 467.2 MB, free: 1.516 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006807/0.3688, allocations: 0.7924 MB / 468 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000292/0.3691, allocations: 313.3 kB / 468.3 MB, free: 416 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003501/0.3695, allocations: 214.8 kB / 468.5 MB, free: 192 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.3697, allocations: 349.9 kB / 468.8 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008657/0.3705, allocations: 0.5452 MB / 469.4 MB, free: 15.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001178/0.3717, allocations: 0.8796 MB / 470.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002229/0.3739, allocations: 1.527 MB / 471.8 MB, free: 12.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.3739, allocations: 4 kB / 471.8 MB, free: 12.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003718/0.3776, allocations: 2.036 MB / 473.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/0.3777, allocations: 12 kB / 473.8 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.146e-05/0.3777, allocations: 15.88 kB / 473.8 MB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001501/0.3792, allocations: 0.5515 MB / 474.4 MB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000849/0.38, allocations: 243.6 kB / 474.6 MB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009654/0.3897, allocations: 8.245 MB / 482.9 MB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.3908, allocations: 79.8 kB / 483 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001637/0.391, allocations: 44 kB / 483 MB, free: 0.8672 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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,1,100.0%), (4,8,87.5%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001066/0.392, allocations: 0.517 MB / 483.5 MB, free: 348 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000348/0.3924, allocations: 131.3 kB / 483.6 MB, free: 216 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003433/0.3958, allocations: 1.755 MB / 485.4 MB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.3958, allocations: 11.98 kB / 485.4 MB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.3958, allocations: 8 kB / 485.4 MB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.3959, allocations: 7.922 kB / 485.4 MB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006956/0.4028, allocations: 3.701 MB / 489.1 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.4028, allocations: 0 / 489.1 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005447/0.4034, allocations: 124.1 kB / 489.2 MB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001586/0.4049, allocations: 0.599 MB / 489.8 MB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.109e-05/0.405, allocations: 23.98 kB / 489.9 MB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009221/0.4142, allocations: 7.397 MB / 497.3 MB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.4142, allocations: 4 kB / 497.3 MB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004055/0.4183, allocations: 2.477 MB / 499.7 MB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000679/0.419, allocations: 239.2 kB / 500 MB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002155/0.4192, allocations: 27.92 kB / 0.4883 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006605/0.4199, allocations: 55.88 kB / 0.4883 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.42, allocations: 72.47 kB / 0.4884 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.198e-05/0.4201, allocations: 27.98 kB / 0.4884 GB, free: 15.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00123/0.4213, allocations: 0.7854 MB / 0.4892 GB, free: 14.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4213, allocations: 0 / 0.4892 GB, free: 14.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001315/0.4226, allocations: 372 kB / 0.4896 GB, free: 14.02 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (imc.inertiaRotor.w,imc.idq_sr[1],imc.idq_sr[2],imc.idq_rr[1],imc.idq_rr[2],loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(6,14,69.4%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004548/0.4272, allocations: 3.101 MB / 0.4926 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003439/0.4306, allocations: 1.929 MB / 0.4945 GB, free: 8.875 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4306, allocations: 0 / 0.4945 GB, free: 8.875 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00212/0.4327, allocations: 1.189 MB / 0.4956 GB, free: 7.648 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001663/0.4344, allocations: 379 kB / 0.496 GB, free: 7.281 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02175/0.4561, allocations: 13.67 MB / 0.5093 GB, free: 9.055 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001409/0.4576, allocations: 1.456 MB / 0.5108 GB, free: 7.566 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007745/0.4583, allocations: 271 kB / 0.511 GB, free: 7.297 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008123/0.4591, allocations: 0.5657 MB / 0.5116 GB, free: 6.73 MB / 430.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4591, allocations: 0 / 0.5116 GB, free: 6.73 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2752/0.7343, allocations: 36.18 MB / 0.5469 GB, free: 107.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.97/19.7, allocations: 1.531 kB / 0.5469 GB, free: 107.8 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking_fmu --startTime=0 --stopTime=25 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 22.223525238921866] Failed to read output from testmodel.py, exit status != 0: ['time', 'imc.idq_rr[1]', 'imc.idq_rr[2]', 'loadInertia.phi', 'loadInertia.w', 'imc.idq_sr[1]', 'imc.idq_sr[2]', 'imc.is[1]', 'imc.is[2]', 'tauElectrical', 'tauShaft', 'wMechanical'] 19.829691514838487 19.838733921 19.509933478 Calling exit ...