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.001853/0.001853, allocations: 122.2 kB / 18.5 MB, free: 4.562 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.002024/0.002024, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.472/1.472, allocations: 230.6 MB / 254.8 MB, free: 15.11 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 47.94 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1139, allocations: 53.33 MB / 427 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.2326/0.3466, allocations: 8.249 MB / 435.3 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004927/0.3515, allocations: 2.75 MB / 438 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001241/0.3528, allocations: 50.47 kB / 438.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.3548, allocations: 0.6396 MB / 438.7 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002189/0.357, allocations: 0.6805 MB / 439.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007639/0.3578, allocations: 284.5 kB / 439.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002703/0.3605, allocations: 2.043 MB / 441.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001425/0.3619, allocations: 1.03 MB / 442.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001709/0.3636, allocations: 0.917 MB / 443.7 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001636/0.3653, allocations: 1.092 MB / 444.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003454/0.3656, allocations: 227.2 kB / 445 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007645/0.3664, allocations: 325.7 kB / 445.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006412/0.367, allocations: 0.6304 MB / 445.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001007/0.368, allocations: 1.033 MB / 447 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003823/0.3719, allocations: 3.009 MB / 450 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3719, allocations: 1.156 kB / 450 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3719, allocations: 0 / 450 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.597e-05/0.3719, allocations: 0 / 450 MB, free: 0.5938 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.004762/0.3767, allocations: 2.188 MB / 452.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.3767, allocations: 10.19 kB / 452.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.687e-05/0.3768, allocations: 44 kB / 452.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003239/0.3771, allocations: 226.1 kB / 452.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007421/0.3779, allocations: 230 kB / 452.7 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002099/0.38, allocations: 1.135 MB / 453.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.609e-05/0.3801, allocations: 119.4 kB / 453.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000236/0.3803, allocations: 157.4 kB / 454.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003395/0.3837, allocations: 1.96 MB / 456 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.784e-05/0.3837, allocations: 10.3 kB / 456 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/0.3839, allocations: 63.22 kB / 456.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.535e-05/0.384, allocations: 78.59 kB / 456.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002831/0.3868, allocations: 1.581 MB / 457.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01075/0.3976, allocations: 6.292 MB / 464 MB, free: 7.594 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/0.399, allocations: 0.7985 MB / 464.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.4, allocations: 0.5403 MB / 465.4 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002416/0.4003, allocations: 112.9 kB / 465.5 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.575e-05/0.4003, allocations: 46.48 kB / 465.5 MB, free: 6.715 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.945e-06/0.4003, allocations: 0 / 465.5 MB, free: 6.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01458/0.4149, allocations: 5.85 MB / 471.4 MB, free: 3.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.061e-05/0.415, allocations: 60.66 kB / 471.4 MB, free: 3.348 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002036/0.417, allocations: 1.152 MB / 472.6 MB, free: 2.707 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.835e-05/0.4171, allocations: 41.83 kB / 472.6 MB, free: 2.664 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007001/0.4178, allocations: 0.7896 MB / 473.4 MB, free: 1.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003015/0.4181, allocations: 329.2 kB / 473.7 MB, free: 1.605 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003697/0.4184, allocations: 206.9 kB / 474 MB, free: 1.395 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.4186, allocations: 349.9 kB / 474.3 MB, free: 1.047 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008293/0.4195, allocations: 0.5452 MB / 474.8 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.4206, allocations: 0.8766 MB / 475.7 MB, free: 15.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002015/0.4226, allocations: 1.527 MB / 477.2 MB, free: 13.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.4226, allocations: 4 kB / 477.2 MB, free: 13.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003721/0.4263, allocations: 2.04 MB / 479.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.4263, allocations: 15.94 kB / 479.3 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.032e-05/0.4263, allocations: 12 kB / 479.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001511/0.4279, allocations: 0.5537 MB / 479.9 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008479/0.4287, allocations: 243.6 kB / 480.1 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009419/0.4381, allocations: 8.653 MB / 488.8 MB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001477/0.4396, allocations: 71.88 kB / 488.8 MB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/0.4397, allocations: 52 kB / 488.9 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.001241/0.441, allocations: 0.5207 MB / 489.4 MB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004158/0.4414, allocations: 131.3 kB / 489.5 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003296/0.4447, allocations: 1.759 MB / 491.3 MB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.4447, allocations: 11.94 kB / 491.3 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.4447, allocations: 7.938 kB / 491.3 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.4447, allocations: 4.594 kB / 491.3 MB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006843/0.4516, allocations: 3.73 MB / 495 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.4516, allocations: 0 / 495 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005301/0.4521, allocations: 127.8 kB / 495.2 MB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001604/0.4537, allocations: 0.5904 MB / 495.8 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-05/0.4538, allocations: 23.98 kB / 495.8 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008837/0.4626, allocations: 7.714 MB / 0.4917 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.4626, allocations: 0 / 0.4917 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004174/0.4668, allocations: 2.484 MB / 0.4941 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008119/0.4676, allocations: 316.2 kB / 0.4944 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001648/0.4678, allocations: 27.92 kB / 0.4944 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000671/0.4684, allocations: 55.94 kB / 0.4945 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.4686, allocations: 72.5 kB / 0.4946 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.548e-05/0.4687, allocations: 24.86 kB / 0.4946 GB, free: 15.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001225/0.4699, allocations: 0.7895 MB / 0.4954 GB, free: 14.59 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4699, allocations: 0 / 0.4954 GB, free: 14.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001444/0.4713, allocations: 375.9 kB / 0.4957 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.004482/0.4758, allocations: 3.101 MB / 0.4988 GB, free: 11.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003523/0.4793, allocations: 2.083 MB / 0.5008 GB, free: 8.887 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.4793, allocations: 0 / 0.5008 GB, free: 8.887 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002189/0.4815, allocations: 1.271 MB / 0.502 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.002065/0.4836, allocations: 379.2 kB / 0.5024 GB, free: 7.211 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02161/0.5052, allocations: 13.67 MB / 0.5157 GB, free: 8.996 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.5065, allocations: 1.464 MB / 0.5172 GB, free: 7.504 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008385/0.5073, allocations: 263 kB / 0.5174 GB, free: 7.242 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007574/0.5081, allocations: 0.5696 MB / 0.518 GB, free: 6.672 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5081, allocations: 0 / 0.518 GB, free: 6.672 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08124/0.5893, allocations: 35.43 MB / 0.5526 GB, free: 3.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.11/17.7, allocations: 22.53 kB / 0.5526 GB, free: 3.641 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.322409129992593] 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'] 17.85743769799592 17.880282235 17.5039887 Calling exit ...