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.0008487/0.0008487, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007736/0.0007736, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.895/0.895, allocations: 173.4 MB / 200.4 MB, free: 9.465 MB / 186.7 MB " [Timeout remaining time 179] 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 1.654e-06/1.654e-06, allocations: 0 / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.894e-05/2.059e-05, allocations: 6.219 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.006225/0.006246, allocations: 7.254 MB / 325.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003396/0.009642, allocations: 2.551 MB / 328.2 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000473/0.01012, allocations: 47.69 kB / 328.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.01127, allocations: 0.5978 MB / 328.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009179/0.01219, allocations: 0.6907 MB / 329.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003569/0.01255, allocations: 291.5 kB / 329.9 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001244/0.01379, allocations: 2.104 MB / 332 MB, free: 8.785 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009179/0.01471, allocations: 0.8001 MB / 332.8 MB, free: 7.938 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008937/0.0156, allocations: 1.314 MB / 334.1 MB, free: 6.621 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007448/0.01635, allocations: 0.9079 MB / 335 MB, free: 5.711 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001705/0.01652, allocations: 228 kB / 335.2 MB, free: 5.488 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003218/0.01684, allocations: 319.8 kB / 335.5 MB, free: 5.176 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004099/0.01725, allocations: 0.6505 MB / 336.2 MB, free: 4.523 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004409/0.01769, allocations: 0.7211 MB / 336.9 MB, free: 3.801 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.01954, allocations: 3.026 MB / 339.9 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.01954, allocations: 3.984 kB / 339.9 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.01954, allocations: 0 / 339.9 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.01956, allocations: 0 / 339.9 MB, free: 0.7578 MB / 298.7 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.002105/0.02166, allocations: 2.078 MB / 342 MB, free: 14.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.02171, allocations: 12.86 kB / 342 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001934/0.0219, allocations: 236 kB / 342.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000338/0.02224, allocations: 223.7 kB / 342.5 MB, free: 14.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001147/0.02338, allocations: 1.069 MB / 343.5 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.215e-05/0.02344, allocations: 111.4 kB / 343.6 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.02358, allocations: 156.3 kB / 343.8 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001939/0.02552, allocations: 2.069 MB / 345.9 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.122e-05/0.02555, allocations: 0 / 345.9 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-05/0.02565, allocations: 67.98 kB / 345.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.886e-05/0.0257, allocations: 74.92 kB / 346 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.02742, allocations: 1.589 MB / 347.6 MB, free: 8.926 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005894/0.03332, allocations: 5.676 MB / 353.3 MB, free: 3.039 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.03468, allocations: 0.7366 MB / 354 MB, free: 2.293 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008774/0.03556, allocations: 0.5343 MB / 354.5 MB, free: 1.754 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002015/0.03576, allocations: 44.62 kB / 354.6 MB, free: 1.707 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.03579, allocations: 39.22 kB / 354.6 MB, free: 1.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=65): time 2.795e-06/0.0358, allocations: 0 / 354.6 MB, free: 1.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=85): time 0.01076/0.04656, allocations: 5.474 MB / 360.1 MB, free: 12.15 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.0466, allocations: 60.41 kB / 360.2 MB, free: 12.07 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001591/0.04819, allocations: 1.164 MB / 361.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.567e-05/0.04824, allocations: 41.7 kB / 361.4 MB, free: 10.85 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003511/0.04859, allocations: 0.7847 MB / 362.1 MB, free: 10.05 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001507/0.04874, allocations: 325.3 kB / 362.5 MB, free: 9.734 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002018/0.04894, allocations: 202.9 kB / 362.7 MB, free: 9.527 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.99e-05/0.04903, allocations: 345.9 kB / 363 MB, free: 9.184 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005085/0.04954, allocations: 0.5491 MB / 363.6 MB, free: 8.637 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006357/0.05018, allocations: 0.8798 MB / 364.4 MB, free: 7.605 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.0514, allocations: 1.527 MB / 366 MB, free: 5.934 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.05141, allocations: 4 kB / 366 MB, free: 5.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.002336/0.05374, allocations: 2.048 MB / 368 MB, free: 3.852 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.05376, allocations: 8 kB / 368 MB, free: 3.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.05378, allocations: 12 kB / 368 MB, free: 3.832 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008057/0.05458, allocations: 0.5516 MB / 368.6 MB, free: 3.262 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004504/0.05503, allocations: 243.6 kB / 368.8 MB, free: 3.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005414/0.06045, allocations: 8.197 MB / 377 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004919/0.06094, allocations: 67.89 kB / 377.1 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.359e-05/0.061, allocations: 56.14 kB / 377.1 MB, free: 10.25 MB / 346.7 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.0006038/0.06161, allocations: 0.5052 MB / 377.6 MB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.06176, allocations: 135.1 kB / 377.8 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00208/0.06384, allocations: 1.755 MB / 379.5 MB, free: 7.824 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.06385, allocations: 11.94 kB / 379.5 MB, free: 7.812 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.06386, allocations: 4 kB / 379.5 MB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.06387, allocations: 3.984 kB / 379.5 MB, free: 7.805 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003952/0.06782, allocations: 3.526 MB / 383.1 MB, free: 4.199 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.06782, allocations: 4 kB / 383.1 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/0.06811, allocations: 123.8 kB / 383.2 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008463/0.06895, allocations: 0.5849 MB / 383.8 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-05/0.069, allocations: 23.98 kB / 383.8 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004966/0.07397, allocations: 7.341 MB / 391.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.07397, allocations: 0 / 391.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002285/0.07626, allocations: 2.473 MB / 393.6 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003472/0.0766, allocations: 239.2 kB / 393.9 MB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.803e-05/0.07669, allocations: 20 kB / 393.9 MB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003325/0.07702, allocations: 51.94 kB / 393.9 MB, free: 8.945 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.07714, allocations: 76.39 kB / 394 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.833e-05/0.07718, allocations: 31.98 kB / 394 MB, free: 8.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007126/0.0779, allocations: 0.7815 MB / 394.8 MB, free: 8.051 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0779, allocations: 4.094 kB / 394.8 MB, free: 8.047 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001051/0.07895, allocations: 379.9 kB / 395.2 MB, free: 7.676 MB / 362.7 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.002677/0.08162, allocations: 3.109 MB / 398.3 MB, free: 4.508 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001923/0.08355, allocations: 1.925 MB / 400.2 MB, free: 2.523 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.08355, allocations: 0 / 400.2 MB, free: 2.523 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001094/0.08464, allocations: 1.192 MB / 401.4 MB, free: 1.293 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009249/0.08557, allocations: 369.7 kB / 401.8 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/0.1006, allocations: 13.59 MB / 415.4 MB, free: 2.785 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006573/0.1012, allocations: 0.8826 MB / 416.2 MB, free: 1.863 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006062/0.1018, allocations: 259.1 kB / 416.5 MB, free: 1.605 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004833/0.1023, allocations: 0.5628 MB / 417.1 MB, free: 1.043 MB / 378.7 MB Notification: Performance of SimCode: time 7.02e-07/0.1023, allocations: 0 / 417.1 MB, free: 1.043 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1911/0.2935, allocations: 37.88 MB / 454.9 MB, free: 120.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.155/8.448, allocations: 11.19 kB / 455 MB, free: 120.7 MB / 410.7 MB " [Timeout remaining time 651] (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: 10.229500294663012] 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'] 8.552853101864457 8.564089487 8.543248816 Calling exit ...