Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001061/0.001061, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001188/0.001188, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2343, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008555/0.2429, allocations: 8.222 MB / 417 MB, free: 9.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004498/0.2474, allocations: 2.742 MB / 419.7 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000839/0.2483, allocations: 39.88 kB / 419.8 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.2499, allocations: 0.6399 MB / 420.4 MB, free: 5.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001569/0.2515, allocations: 0.6718 MB / 421.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005755/0.2521, allocations: 287.6 kB / 421.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001958/0.254, allocations: 2.031 MB / 423.4 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001586/0.2556, allocations: 1.417 MB / 424.8 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001193/0.2568, allocations: 0.8993 MB / 425.7 MB, free: 476 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001249/0.2581, allocations: 1.07 MB / 426.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003014/0.2584, allocations: 228 kB / 427 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005584/0.259, allocations: 311.8 kB / 427.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006172/0.2596, allocations: 0.6389 MB / 427.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.2606, allocations: 1.034 MB / 429 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002903/0.2636, allocations: 3.009 MB / 432 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2636, allocations: 0 / 432 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2636, allocations: 0 / 432 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.334e-05/0.2636, allocations: 0 / 432 MB, free: 10.16 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.003893/0.2675, allocations: 2.182 MB / 434.2 MB, free: 7.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.2676, allocations: 15.91 kB / 434.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002774/0.2679, allocations: 228.1 kB / 434.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005802/0.2685, allocations: 227.6 kB / 434.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001905/0.2704, allocations: 1.146 MB / 435.8 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.111e-05/0.2705, allocations: 111.1 kB / 435.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002359/0.2707, allocations: 156 kB / 436 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003008/0.2737, allocations: 1.959 MB / 438 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.887e-05/0.2738, allocations: 11.95 kB / 438 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.2739, allocations: 56 kB / 438.1 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.894e-05/0.274, allocations: 78.91 kB / 438.1 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002334/0.2764, allocations: 1.585 MB / 439.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008618/0.285, allocations: 6.305 MB / 446 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.2863, allocations: 0.8347 MB / 446.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009025/0.2872, allocations: 0.5652 MB / 447.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001985/0.2874, allocations: 125.6 kB / 447.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.2875, allocations: 39.12 kB / 447.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.174e-06/0.2875, allocations: 0 / 447.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01258/0.3001, allocations: 5.863 MB / 453.4 MB, free: 4.113 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.3001, allocations: 64.41 kB / 453.5 MB, free: 4.039 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001522/0.3017, allocations: 1.152 MB / 454.7 MB, free: 2.871 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.121e-05/0.3018, allocations: 41.7 kB / 454.7 MB, free: 2.824 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000531/0.3023, allocations: 0.7925 MB / 455.5 MB, free: 2.023 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002368/0.3025, allocations: 317.3 kB / 455.8 MB, free: 1.711 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003044/0.3029, allocations: 206.9 kB / 456 MB, free: 1.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.303, allocations: 349.9 kB / 456.4 MB, free: 1.152 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007358/0.3037, allocations: 0.5452 MB / 456.9 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009392/0.3047, allocations: 0.8796 MB / 457.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001752/0.3064, allocations: 1.524 MB / 459.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.3065, allocations: 7.938 kB / 459.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003289/0.3098, allocations: 2.052 MB / 461.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/0.3098, allocations: 15.92 kB / 461.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.213e-05/0.3098, allocations: 12 kB / 461.4 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/0.3112, allocations: 0.5515 MB / 461.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008133/0.312, allocations: 239.6 kB / 462.2 MB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007851/0.3199, allocations: 8.656 MB / 470.8 MB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009793/0.3209, allocations: 75.92 kB / 470.9 MB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.075e-05/0.321, allocations: 44 kB / 470.9 MB, free: 1.656 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.0008648/0.3219, allocations: 0.5238 MB / 471.5 MB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002357/0.3221, allocations: 127.2 kB / 471.6 MB, free: 1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002861/0.325, allocations: 1.77 MB / 473.4 MB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.325, allocations: 8 kB / 473.4 MB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.325, allocations: 4 kB / 473.4 MB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.325, allocations: 3.984 kB / 473.4 MB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005803/0.3309, allocations: 3.741 MB / 477.1 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.3309, allocations: 4 kB / 477.1 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005199/0.3314, allocations: 132 kB / 477.3 MB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001469/0.3329, allocations: 0.5925 MB / 477.8 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.82e-05/0.333, allocations: 31.98 kB / 477.9 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00723/0.3402, allocations: 7.709 MB / 485.6 MB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3402, allocations: 4 kB / 485.6 MB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003476/0.3437, allocations: 2.484 MB / 488.1 MB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005992/0.3443, allocations: 312.3 kB / 488.4 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/0.3445, allocations: 31.92 kB / 488.4 MB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006424/0.3452, allocations: 51.94 kB / 488.5 MB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.3453, allocations: 72.75 kB / 488.5 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.658e-05/0.3454, allocations: 27.98 kB / 488.6 MB, free: 15.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009924/0.3464, allocations: 0.7895 MB / 489.3 MB, free: 14.63 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.353e-06/0.3464, allocations: 0 / 489.3 MB, free: 14.63 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001196/0.3476, allocations: 379.9 kB / 489.7 MB, free: 14.26 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.003751/0.3513, allocations: 3.12 MB / 492.8 MB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003007/0.3544, allocations: 2.138 MB / 495 MB, free: 8.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3544, allocations: 3.938 kB / 495 MB, free: 8.836 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001898/0.3563, allocations: 1.295 MB / 496.3 MB, free: 7.484 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00165/0.358, allocations: 382.8 kB / 496.7 MB, free: 7.121 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01786/0.3758, allocations: 13.69 MB / 0.4984 GB, free: 8.883 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.3769, allocations: 1.46 MB / 0.4998 GB, free: 7.395 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007236/0.3776, allocations: 263 kB / 0.5001 GB, free: 7.133 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006587/0.3783, allocations: 0.5657 MB / 0.5006 GB, free: 6.566 MB / 430.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3783, allocations: 0 / 0.5006 GB, free: 6.566 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06574/0.444, allocations: 35.12 MB / 0.5349 GB, free: 3.824 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.18/16.62, allocations: 4 kB / 0.5349 GB, free: 3.82 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.csv --start-time 0 --stop-time 25 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)