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.001148/0.001148, allocations: 86.53 kB / 16.31 MB, free: 5.66 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.001258/0.001258, allocations: 182.8 kB / 17.21 MB, free: 5.578 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.432/1.432, allocations: 223.2 MB / 241.2 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002696/0.0002696, allocations: 9.969 kB / 300.9 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1093, allocations: 50.42 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.007192/0.1166, allocations: 7.207 MB / 358.5 MB, free: 4.375 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004508/0.1211, allocations: 2.545 MB / 361.1 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.1222, allocations: 39.81 kB / 361.1 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.1235, allocations: 0.4894 MB / 361.6 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001397/0.125, allocations: 0.5398 MB / 362.2 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000536/0.1255, allocations: 191.7 kB / 362.3 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002177/0.1277, allocations: 2.1 MB / 364.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001171/0.1289, allocations: 0.9597 MB / 365.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.1299, allocations: 0.6809 MB / 366.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009952/0.1309, allocations: 0.895 MB / 367 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001638/0.1311, allocations: 104 kB / 367.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003935/0.1315, allocations: 163.9 kB / 367.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000473/0.132, allocations: 0.4945 MB / 367.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003163/0.1323, allocations: 372.8 kB / 368.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002062/0.1344, allocations: 2.407 MB / 370.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1344, allocations: 0 / 370.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1344, allocations: 4 kB / 370.5 MB, free: 8.332 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.248e-05/0.1344, allocations: 0 / 370.5 MB, free: 8.332 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.003232/0.1377, allocations: 1.825 MB / 372.3 MB, free: 6.449 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.835e-05/0.1377, allocations: 8.031 kB / 372.3 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002781/0.138, allocations: 223.9 kB / 372.6 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005766/0.1386, allocations: 217.6 kB / 372.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001602/0.1402, allocations: 1.067 MB / 373.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.969e-05/0.1403, allocations: 115 kB / 374 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002152/0.1406, allocations: 167.8 kB / 374.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002978/0.1435, allocations: 1.943 MB / 376.1 MB, free: 2.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.142e-05/0.1436, allocations: 7.906 kB / 376.1 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/0.1437, allocations: 60 kB / 376.1 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.711e-05/0.1438, allocations: 82.91 kB / 376.2 MB, free: 2.473 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002385/0.1462, allocations: 1.573 MB / 377.8 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008811/0.155, allocations: 6.35 MB / 384.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.1563, allocations: 0.8389 MB / 385 MB, free: 9.465 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009228/0.1573, allocations: 0.5731 MB / 385.5 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002141/0.1575, allocations: 117.6 kB / 385.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.1575, allocations: 39.12 kB / 385.7 MB, free: 8.703 MB / 318.1 MB Notification: Performance of pre-optimization done (n=65): time 4.398e-06/0.1575, allocations: 4 kB / 385.7 MB, free: 8.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=85): time 0.01543/0.173, allocations: 5.894 MB / 391.6 MB, free: 2.668 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.847e-05/0.1731, allocations: 68.36 kB / 391.7 MB, free: 2.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00248/0.1756, allocations: 1.136 MB / 392.8 MB, free: 1.438 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001275/0.1757, allocations: 41.7 kB / 392.8 MB, free: 1.391 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008145/0.1766, allocations: 0.7747 MB / 393.6 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003615/0.1769, allocations: 295.7 kB / 393.9 MB, free: 320 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.472e-05/0.177, allocations: 24 kB / 393.9 MB, free: 296 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003349/0.1774, allocations: 345.9 kB / 394.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.1786, allocations: 0.5413 MB / 394.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.1802, allocations: 0.8757 MB / 395.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001587/0.1818, allocations: 0.69 MB / 396.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.376e-05/0.1818, allocations: 0 / 396.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.005663/0.1875, allocations: 2.039 MB / 398.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.114e-05/0.1875, allocations: 11.94 kB / 398.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.972e-05/0.1876, allocations: 12 kB / 398.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001941/0.1895, allocations: 0.5555 MB / 399 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.1907, allocations: 243.6 kB / 399.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/0.2025, allocations: 7.881 MB / 407.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.2041, allocations: 72.08 kB / 407.2 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002641/0.2044, allocations: 52 kB / 407.2 MB, free: 2.254 MB / 334.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 (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(4,87.5%) 8,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001768/0.2062, allocations: 0.5208 MB / 407.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005353/0.2067, allocations: 126.4 kB / 407.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004697/0.2115, allocations: 1.759 MB / 409.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/0.2115, allocations: 12 kB / 409.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.195e-05/0.2115, allocations: 4 kB / 409.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-05/0.2116, allocations: 8.078 kB / 409.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00803/0.2196, allocations: 3.73 MB / 413.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.2197, allocations: 11.92 kB / 413.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005422/0.2202, allocations: 123.8 kB / 413.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001642/0.2219, allocations: 0.5952 MB / 414.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.222, allocations: 27.98 kB / 414.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008162/0.2302, allocations: 7.068 MB / 421.2 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.2302, allocations: 4 kB / 421.2 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004038/0.2343, allocations: 2.467 MB / 423.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006988/0.235, allocations: 315.6 kB / 424 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003034/0.2353, allocations: 27.92 kB / 424 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007369/0.236, allocations: 56.03 kB / 424.1 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.2362, allocations: 68.44 kB / 424.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.411e-05/0.2363, allocations: 27.98 kB / 424.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.2102/0.4466, allocations: 0.776 MB / 424.9 MB, free: 63.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.42e-07/0.4466, allocations: 2.562 kB / 424.9 MB, free: 63.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002413/0.449, allocations: 381.1 kB / 425.3 MB, free: 63.16 MB / 350.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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,69.4%) 14,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004286/0.4533, allocations: 3.055 MB / 428.4 MB, free: 62.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003444/0.4568, allocations: 2.119 MB / 430.5 MB, free: 61.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.4568, allocations: 1.094 kB / 430.5 MB, free: 61.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002226/0.4591, allocations: 1.288 MB / 431.8 MB, free: 61.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/0.4609, allocations: 353.1 kB / 432.1 MB, free: 61.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01746/0.4784, allocations: 10.19 MB / 442.3 MB, free: 57.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009895/0.4794, allocations: 1.462 MB / 443.8 MB, free: 57.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009152/0.4804, allocations: 260.5 kB / 444 MB, free: 57.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005835/0.481, allocations: 0.5673 MB / 444.6 MB, free: 56.73 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.481, allocations: 3.938 kB / 444.6 MB, free: 56.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05679/0.5378, allocations: 32.49 MB / 477.1 MB, free: 27.7 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/0.538, allocations: 232 kB / 477.3 MB, free: 27.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.528/3.066, allocations: 4.062 kB / 477.3 MB, free: 27.46 MB / 350.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/linux/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)