Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.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.00142/0.00142, allocations: 124.5 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] 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.001527/0.001527, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.478/1.478, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_1_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_1_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.001725/0.001725, allocations: 47.92 kB / 373 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1177, allocations: 53.32 MB / 426.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.2375/0.3552, allocations: 8.261 MB / 434.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005067/0.3603, allocations: 2.75 MB / 437.3 MB, free: 5.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001179/0.3614, allocations: 54.84 kB / 437.4 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001941/0.3634, allocations: 0.6402 MB / 438 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002246/0.3656, allocations: 0.6687 MB / 438.7 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007349/0.3664, allocations: 287 kB / 439 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002661/0.369, allocations: 2.047 MB / 441 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001326/0.3703, allocations: 1.026 MB / 442 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001765/0.3721, allocations: 0.9175 MB / 443 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001959/0.3741, allocations: 1.099 MB / 444.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004429/0.3745, allocations: 227.5 kB / 444.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008595/0.3754, allocations: 318.7 kB / 444.6 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006874/0.3761, allocations: 0.6337 MB / 445.2 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001242/0.3773, allocations: 1.036 MB / 446.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003995/0.3813, allocations: 3.003 MB / 449.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3813, allocations: 1.828 kB / 449.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3813, allocations: 0 / 449.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.673e-05/0.3814, allocations: 1.031 kB / 449.3 MB, free: 0.5508 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.005534/0.3869, allocations: 2.184 MB / 451.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.387, allocations: 9.656 kB / 451.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003913/0.3874, allocations: 229.6 kB / 451.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000756/0.3881, allocations: 226 kB / 451.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00223/0.3904, allocations: 1.146 MB / 453.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.3905, allocations: 111.5 kB / 453.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002837/0.3908, allocations: 166.8 kB / 453.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003665/0.3944, allocations: 1.956 MB / 455.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.081e-05/0.3945, allocations: 10.78 kB / 455.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001582/0.3946, allocations: 61.53 kB / 455.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.96e-05/0.3947, allocations: 74.27 kB / 455.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002857/0.3976, allocations: 1.591 MB / 457 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01097/0.4086, allocations: 6.281 MB / 463.3 MB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.41, allocations: 0.8013 MB / 464.1 MB, free: 7.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009996/0.411, allocations: 0.5446 MB / 464.6 MB, free: 6.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002238/0.4113, allocations: 113.6 kB / 464.8 MB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/0.4113, allocations: 38.84 kB / 464.8 MB, free: 6.676 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.535e-06/0.4113, allocations: 0 / 464.8 MB, free: 6.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01444/0.4257, allocations: 5.851 MB / 470.6 MB, free: 3.371 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.4258, allocations: 64.94 kB / 470.7 MB, free: 3.305 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/0.4276, allocations: 1.148 MB / 471.9 MB, free: 2.668 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001246/0.4277, allocations: 41.8 kB / 471.9 MB, free: 2.625 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006728/0.4284, allocations: 0.7931 MB / 472.7 MB, free: 1.922 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003429/0.4287, allocations: 324.3 kB / 473 MB, free: 1.605 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000369/0.4291, allocations: 206.9 kB / 473.2 MB, free: 1.395 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002448/0.4294, allocations: 353.9 kB / 473.6 MB, free: 1.043 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008542/0.4302, allocations: 0.5413 MB / 474.1 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001174/0.4314, allocations: 0.8841 MB / 475 MB, free: 15.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002098/0.4335, allocations: 1.524 MB / 476.5 MB, free: 13.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.4335, allocations: 3.938 kB / 476.5 MB, free: 13.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003895/0.4374, allocations: 2.048 MB / 478.6 MB, free: 11.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.4374, allocations: 8 kB / 478.6 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.251e-05/0.4374, allocations: 15.94 kB / 478.6 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/0.439, allocations: 0.5485 MB / 479.1 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008961/0.4399, allocations: 246.9 kB / 479.4 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009797/0.4497, allocations: 8.64 MB / 488 MB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001296/0.451, allocations: 79.81 kB / 488.1 MB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.4511, allocations: 48 kB / 488.1 MB, free: 1.57 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.001047/0.4521, allocations: 0.5243 MB / 488.7 MB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002869/0.4524, allocations: 127.2 kB / 488.8 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003316/0.4557, allocations: 1.756 MB / 490.5 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.4558, allocations: 11.94 kB / 490.5 MB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.4558, allocations: 8 kB / 490.6 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.4558, allocations: 3.984 kB / 490.6 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007286/0.4631, allocations: 3.727 MB / 494.3 MB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.4631, allocations: 4 kB / 494.3 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005662/0.4636, allocations: 128 kB / 494.4 MB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001685/0.4653, allocations: 0.5866 MB / 495 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.041e-05/0.4654, allocations: 27.98 kB / 495 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009391/0.4748, allocations: 7.717 MB / 0.491 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.4748, allocations: 4 kB / 0.491 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004397/0.4792, allocations: 2.481 MB / 0.4934 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009574/0.4802, allocations: 316.3 kB / 0.4937 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004312/0.4806, allocations: 27.94 kB / 0.4937 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009813/0.4816, allocations: 51.92 kB / 0.4938 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002255/0.4818, allocations: 76.38 kB / 0.4938 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.083e-05/0.4819, allocations: 28 kB / 0.4939 GB, free: 15.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00173/0.4836, allocations: 0.7934 MB / 0.4946 GB, free: 14.59 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4836, allocations: 0 / 0.4946 GB, free: 14.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002001/0.4856, allocations: 376 kB / 0.495 GB, free: 14.22 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.005143/0.4907, allocations: 3.107 MB / 0.498 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003866/0.4946, allocations: 2.072 MB / 0.5001 GB, free: 8.887 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.4946, allocations: 3.938 kB / 0.5001 GB, free: 8.883 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002357/0.497, allocations: 1.267 MB / 0.5013 GB, free: 7.559 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002624/0.4996, allocations: 391.4 kB / 0.5017 GB, free: 7.199 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02664/0.5262, allocations: 13.66 MB / 0.515 GB, free: 9 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001747/0.528, allocations: 1.464 MB / 0.5164 GB, free: 7.508 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009497/0.5289, allocations: 263 kB / 0.5167 GB, free: 7.246 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009555/0.5299, allocations: 0.5657 MB / 0.5172 GB, free: 6.68 MB / 430.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5299, allocations: 0 / 0.5172 GB, free: 6.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09082/0.6207, allocations: 35.4 MB / 0.5518 GB, free: 3.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.44/18.06, allocations: 4 kB / 0.5518 GB, free: 3.676 MB / 462.1 MB " [Timeout remaining time 642] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking_fmu --startTime=0 --stopTime=25 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.604875351069495] 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'] 18.15948218293488 18.175936787 17.791324422 Calling exit ...