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.001478/0.001478, allocations: 112.5 kB / 16.51 MB, free: 6.707 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.001649/0.001649, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.263/1.263, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009841/0.0009841, allocations: 46.38 kB / 300.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07864/0.07963, allocations: 49.45 MB / 349.5 MB, free: 4.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008172/0.08784, allocations: 8.137 MB / 357.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003769/0.09164, allocations: 2.676 MB / 360.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006802/0.09234, allocations: 39.81 kB / 360.4 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001387/0.09374, allocations: 0.544 MB / 360.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001463/0.09522, allocations: 0.575 MB / 361.5 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005004/0.09573, allocations: 255.7 kB / 361.7 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001916/0.09766, allocations: 2.347 MB / 364.1 MB, free: 6.027 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.09893, allocations: 1.163 MB / 365.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007423/0.09968, allocations: 0.7782 MB / 366 MB, free: 4.039 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009314/0.1006, allocations: 1.035 MB / 367.1 MB, free: 3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000206/0.1008, allocations: 147.9 kB / 367.2 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004496/0.1013, allocations: 243.8 kB / 367.4 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004664/0.1018, allocations: 0.549 MB / 368 MB, free: 2.066 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007725/0.1026, allocations: 0.9369 MB / 368.9 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1369/0.2394, allocations: 2.895 MB / 371.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.2395, allocations: 0 / 371.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.2395, allocations: 0.9688 kB / 371.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001244/0.2396, allocations: 0 / 371.8 MB, free: 14.71 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.005553/0.2452, allocations: 2.122 MB / 373.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.2453, allocations: 12.31 kB / 374 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005732/0.2458, allocations: 227.5 kB / 374.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008785/0.2467, allocations: 215.2 kB / 374.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00176/0.2485, allocations: 1.103 MB / 375.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.584e-05/0.2486, allocations: 112.5 kB / 375.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002377/0.2488, allocations: 152.9 kB / 375.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003187/0.252, allocations: 1.966 MB / 377.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.41e-05/0.2521, allocations: 9.922 kB / 377.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/0.2522, allocations: 60.5 kB / 377.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.398e-05/0.2523, allocations: 76.45 kB / 377.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002505/0.2548, allocations: 1.59 MB / 379.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007776/0.2626, allocations: 6.33 MB / 385.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.2638, allocations: 0.8388 MB / 386.6 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008736/0.2647, allocations: 0.5737 MB / 387.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001904/0.2649, allocations: 119.1 kB / 387.3 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.978e-05/0.2649, allocations: 47.11 kB / 387.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.134e-06/0.265, allocations: 0 / 387.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01183/0.2768, allocations: 5.821 MB / 393.2 MB, free: 5.594 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.416e-05/0.2768, allocations: 64.59 kB / 393.2 MB, free: 5.527 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.2782, allocations: 1.147 MB / 394.4 MB, free: 4.891 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.603e-05/0.2782, allocations: 37.11 kB / 394.4 MB, free: 4.852 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003318/0.2786, allocations: 0.7728 MB / 395.2 MB, free: 4.168 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.2787, allocations: 304.3 kB / 395.5 MB, free: 3.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002693/0.279, allocations: 205.3 kB / 395.7 MB, free: 3.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.118e-05/0.2791, allocations: 355.6 kB / 396 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006438/0.2797, allocations: 0.5424 MB / 396.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007322/0.2804, allocations: 0.8803 MB / 397.5 MB, free: 2.473 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.282, allocations: 1.525 MB / 399 MB, free: 1.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.282, allocations: 2.938 kB / 399 MB, free: 1.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.002867/0.2848, allocations: 2.054 MB / 401 MB, free: 15.72 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.2849, allocations: 8 kB / 401.1 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.2849, allocations: 12 kB / 401.1 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001443/0.2863, allocations: 0.5552 MB / 401.6 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008333/0.2872, allocations: 244.6 kB / 401.9 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007966/0.2952, allocations: 7.906 MB / 409.8 MB, free: 6.527 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008119/0.296, allocations: 71.78 kB / 409.8 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.519e-05/0.2961, allocations: 51.98 kB / 409.9 MB, free: 6.406 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.0007664/0.2969, allocations: 0.5196 MB / 410.4 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002002/0.2971, allocations: 118.6 kB / 410.5 MB, free: 5.773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003047/0.3001, allocations: 1.767 MB / 412.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3002, allocations: 8 kB / 412.3 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.3002, allocations: 8 kB / 412.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.3002, allocations: 7.984 kB / 412.3 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006085/0.3063, allocations: 3.738 MB / 416.1 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.3063, allocations: 4 kB / 416.1 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005269/0.3068, allocations: 125.9 kB / 416.2 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001602/0.3084, allocations: 0.5946 MB / 416.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.877e-05/0.3085, allocations: 23.98 kB / 416.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007577/0.3161, allocations: 7.083 MB / 423.9 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.3161, allocations: 6.625 kB / 423.9 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003666/0.3198, allocations: 2.485 MB / 426.4 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004902/0.3203, allocations: 303.7 kB / 426.7 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001708/0.3205, allocations: 20 kB / 426.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006432/0.3211, allocations: 60.02 kB / 426.7 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.3213, allocations: 67.22 kB / 426.8 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.035e-05/0.3214, allocations: 28 kB / 426.8 MB, free: 4.996 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001101/0.3225, allocations: 0.7854 MB / 427.6 MB, free: 4.203 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3225, allocations: 0 / 427.6 MB, free: 4.203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001277/0.3238, allocations: 387.9 kB / 428 MB, free: 3.824 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.004112/0.3279, allocations: 3.093 MB / 431.1 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003194/0.3311, allocations: 2.132 MB / 433.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3311, allocations: 0 / 433.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001996/0.3331, allocations: 1.298 MB / 434.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/0.3348, allocations: 350.8 kB / 434.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02349/0.3583, allocations: 15.27 MB / 450.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/0.3594, allocations: 1.456 MB / 451.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000864/0.3603, allocations: 267 kB / 451.9 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007329/0.361, allocations: 0.5657 MB / 452.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3611, allocations: 3.938 kB / 452.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05259/0.4137, allocations: 33.52 MB / 486 MB, free: 9.445 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000254/0.4139, allocations: 254.9 kB / 486.2 MB, free: 9.191 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.512/2.926, allocations: 6.562 kB / 486.2 MB, free: 9.188 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)