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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 103.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009349/0.0009349, allocations: 42.19 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.081/0.08195, allocations: 49.45 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008395/0.09037, allocations: 8.157 MB / 358.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003892/0.09429, allocations: 2.711 MB / 361 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004414/0.09475, allocations: 39.88 kB / 361.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.09604, allocations: 0.5979 MB / 361.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001133/0.09719, allocations: 0.6328 MB / 362.3 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004711/0.09767, allocations: 279.6 kB / 362.6 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00166/0.09934, allocations: 2.023 MB / 364.6 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001478/0.1008, allocations: 1.424 MB / 366 MB, free: 4.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001109/0.1019, allocations: 0.8837 MB / 366.9 MB, free: 3.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001102/0.1031, allocations: 1.062 MB / 368 MB, free: 2.367 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002627/0.1033, allocations: 228 kB / 368.2 MB, free: 2.145 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005218/0.1039, allocations: 315.8 kB / 368.5 MB, free: 1.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005374/0.1044, allocations: 0.635 MB / 369.2 MB, free: 1.199 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000867/0.1053, allocations: 1.031 MB / 370.2 MB, free: 168 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1411/0.2464, allocations: 2.959 MB / 373.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.2464, allocations: 1.453 kB / 373.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2464, allocations: 0 / 373.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.332e-05/0.2465, allocations: 0 / 373.1 MB, free: 13.83 MB / 302.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.003994/0.2505, allocations: 2.129 MB / 375.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.2505, allocations: 11.5 kB / 375.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003025/0.2508, allocations: 228.3 kB / 375.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006261/0.2515, allocations: 213.3 kB / 375.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001681/0.2532, allocations: 1.108 MB / 376.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.406e-05/0.2533, allocations: 112.7 kB / 376.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002132/0.2535, allocations: 150.4 kB / 377.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003107/0.2566, allocations: 1.961 MB / 379 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.529e-05/0.2567, allocations: 8.531 kB / 379 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/0.2568, allocations: 64.28 kB / 379.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-05/0.2569, allocations: 76.92 kB / 379.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002472/0.2594, allocations: 1.586 MB / 380.8 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008136/0.2675, allocations: 6.342 MB / 387.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.2688, allocations: 0.837 MB / 388 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008593/0.2697, allocations: 0.5805 MB / 388.5 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001903/0.2699, allocations: 119.9 kB / 388.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.2699, allocations: 41.62 kB / 388.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.465e-06/0.2699, allocations: 0 / 388.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01216/0.2821, allocations: 5.819 MB / 394.5 MB, free: 4.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/0.2821, allocations: 65.78 kB / 394.6 MB, free: 4.113 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/0.2835, allocations: 1.141 MB / 395.7 MB, free: 3.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.919e-05/0.2836, allocations: 41.61 kB / 395.8 MB, free: 3.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003584/0.2839, allocations: 0.7755 MB / 396.5 MB, free: 2.754 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.2841, allocations: 306.9 kB / 396.8 MB, free: 2.496 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002677/0.2844, allocations: 203.7 kB / 397 MB, free: 2.375 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.491e-05/0.2844, allocations: 354.4 kB / 397.4 MB, free: 2.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006497/0.2851, allocations: 0.5401 MB / 397.9 MB, free: 1.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007608/0.2859, allocations: 0.8774 MB / 398.8 MB, free: 1.062 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001405/0.2873, allocations: 1.525 MB / 400.3 MB, free: 44 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.2873, allocations: 7.5 kB / 400.3 MB, free: 40 kB / 302.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003239/0.2905, allocations: 2.045 MB / 402.4 MB, free: 14.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.2906, allocations: 12 kB / 402.4 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.2906, allocations: 12.25 kB / 402.4 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.292, allocations: 0.5527 MB / 402.9 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008182/0.2928, allocations: 246.5 kB / 403.2 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008034/0.3008, allocations: 8.655 MB / 411.8 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.3019, allocations: 63.94 kB / 411.9 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.707e-05/0.302, allocations: 55.92 kB / 412 MB, free: 4.309 MB / 318.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.000873/0.3029, allocations: 0.5186 MB / 412.5 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000215/0.3031, allocations: 126.5 kB / 412.6 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002929/0.3061, allocations: 1.767 MB / 414.4 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.3061, allocations: 8 kB / 414.4 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3061, allocations: 4 kB / 414.4 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.3061, allocations: 7.984 kB / 414.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005886/0.312, allocations: 3.744 MB / 418.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.312, allocations: 0 / 418.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005278/0.3125, allocations: 127.2 kB / 418.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001496/0.3141, allocations: 0.5986 MB / 418.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.828e-05/0.3141, allocations: 27.98 kB / 418.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007824/0.322, allocations: 7.702 MB / 426.6 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.322, allocations: 0 / 426.6 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003648/0.3256, allocations: 2.478 MB / 429.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006326/0.3263, allocations: 311.7 kB / 429.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/0.3265, allocations: 30.55 kB / 429.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000675/0.3272, allocations: 64.12 kB / 429.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.3273, allocations: 64.12 kB / 429.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.454e-05/0.3274, allocations: 31.98 kB / 429.6 MB, free: 2.234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001183/0.3286, allocations: 0.7854 MB / 430.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3286, allocations: 0 / 430.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001355/0.33, allocations: 376 kB / 430.7 MB, free: 1.074 MB / 334.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.003977/0.3339, allocations: 3.095 MB / 433.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003548/0.3375, allocations: 2.366 MB / 436.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3375, allocations: 0 / 436.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001947/0.3395, allocations: 1.3 MB / 437.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00164/0.3411, allocations: 365.5 kB / 437.8 MB, free: 9.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01862/0.3598, allocations: 14.66 MB / 452.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/0.3608, allocations: 1.46 MB / 453.9 MB, free: 8.949 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007867/0.3616, allocations: 271 kB / 454.2 MB, free: 8.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006717/0.3623, allocations: 0.5657 MB / 454.8 MB, free: 8.113 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3623, allocations: 4 kB / 454.8 MB, free: 8.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06457/0.4269, allocations: 34.38 MB / 489.2 MB, free: 6.156 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.14/10.57, allocations: 7.812 kB / 489.2 MB, free: 6.152 MB / 398.1 MB (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 --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)