Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002519/0.002524, allocations: 182.2 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001141, allocations: 98.61 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003928/0.000393, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3367, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier): time 0.01991/0.3567, allocations: 13.51 MB / 388.1 MB, free: 35.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01768/0.3744, allocations: 7.806 MB / 396 MB, free: 27.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003683/0.3781, allocations: 87.62 kB / 396 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004323/0.3825, allocations: 0.9366 MB / 397 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006894/0.3894, allocations: 1.476 MB / 398.5 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008004/0.3974, allocations: 1.754 MB / 400.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008185/0.4056, allocations: 3.398 MB / 403.6 MB, free: 19.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004119/0.4098, allocations: 2.252 MB / 405.9 MB, free: 17.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003072/0.4129, allocations: 1.51 MB / 407.4 MB, free: 16.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003659/0.4166, allocations: 1.739 MB / 409.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001202/0.4179, allocations: 232 kB / 409.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002639/0.4205, allocations: 0.5074 MB / 409.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001295/0.4219, allocations: 0.8369 MB / 410.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001589/0.4235, allocations: 0.855 MB / 411.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008511/0.432, allocations: 6.073 MB / 417.6 MB, free: 5.738 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.4321, allocations: 0 / 417.6 MB, free: 5.738 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.848e-06/0.4321, allocations: 0 / 417.6 MB, free: 5.738 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002262/0.4323, allocations: 3.938 kB / 417.6 MB, free: 5.734 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 958 * Number of variables: 958 Notification: Performance of Generate backend data structure: time 0.01592/0.4482, allocations: 4.429 MB / 422 MB, free: 1.234 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.4483, allocations: 8.031 kB / 422 MB, free: 1.227 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00158/0.4499, allocations: 0.5025 MB / 422.5 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008047/0.458, allocations: 0.9979 MB / 423.5 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008519/0.4665, allocations: 2.532 MB / 426.1 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004022/0.467, allocations: 279.4 kB / 426.3 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001342/0.4683, allocations: 371.8 kB / 426.7 MB, free: 12.49 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01576/0.4841, allocations: 4.666 MB / 431.4 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001355/0.4843, allocations: 4 kB / 431.4 MB, free: 7.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005636/0.4848, allocations: 148 kB / 431.5 MB, free: 7.605 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002372/0.4851, allocations: 155.3 kB / 431.7 MB, free: 7.453 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01325/0.4983, allocations: 3.983 MB / 435.7 MB, free: 3.465 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04209/0.5405, allocations: 16.01 MB / 451.7 MB, free: 3.031 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01335/0.5539, allocations: 7.871 MB / 459.5 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01437/0.5683, allocations: 4.368 MB / 463.9 MB, free: 5.773 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.104e-05/0.5684, allocations: 52.56 kB / 464 MB, free: 5.715 MB / 346.7 MB Notification: Performance of pre-optimization done (n=190): time 5.54e-06/0.5685, allocations: 0 / 464 MB, free: 5.715 MB / 346.7 MB Notification: Performance of matching and sorting (n=194): time 0.02894/0.5974, allocations: 7.428 MB / 471.4 MB, free: 14.1 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.5976, allocations: 176.2 kB / 471.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005846/0.6034, allocations: 2.217 MB / 473.8 MB, free: 11.65 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004224/0.6039, allocations: 61.7 kB / 473.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001824/0.6058, allocations: 1.548 MB / 475.4 MB, free: 10.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001185/0.607, allocations: 0.6585 MB / 476 MB, free: 9.352 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/0.6072, allocations: 44 kB / 476.1 MB, free: 9.309 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002996/0.6076, allocations: 403.5 kB / 476.5 MB, free: 8.906 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002889/0.6105, allocations: 0.8908 MB / 477.4 MB, free: 8.012 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003734/0.6142, allocations: 1.518 MB / 478.9 MB, free: 6.219 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003575/0.6179, allocations: 1.142 MB / 480 MB, free: 5.078 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-05/0.618, allocations: 11.94 kB / 480 MB, free: 5.066 MB / 362.7 MB Notification: Performance of matching and sorting (n=297) (initialization): time 0.009846/0.6278, allocations: 3.071 MB / 483.1 MB, free: 1.953 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003453/0.6313, allocations: 7.055 MB / 490.2 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.684e-05/0.6314, allocations: 20 kB / 490.2 MB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00205/0.6335, allocations: 467.8 kB / 490.6 MB, free: 9.855 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003991/0.6375, allocations: 0.4993 MB / 491.1 MB, free: 9.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01352/0.6511, allocations: 8.198 MB / 499.3 MB, free: 0.6172 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003082/0.6542, allocations: 95.86 kB / 499.4 MB, free: 0.5234 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004516/0.6547, allocations: 92 kB / 499.5 MB, free: 444 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.6547, allocations: 11.47 kB / 499.5 MB, free: 436 kB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008949/0.6637, allocations: 2.949 MB / 0.4907 GB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.66e-05/0.6638, allocations: 16 kB / 0.4907 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001722/0.6656, allocations: 464.3 kB / 0.4912 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003922/0.6695, allocations: 0.4914 MB / 0.4916 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01332/0.6829, allocations: 8.224 MB / 0.4997 GB, free: 3.703 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/0.6848, allocations: 95.86 kB / 0.4998 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002551/0.6851, allocations: 92 kB / 0.4999 GB, free: 3.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 7 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off,voltageController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 258 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.003363/0.6884, allocations: 1.17 MB / 0.501 GB, free: 2.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000819/0.6893, allocations: 256.9 kB / 0.5012 GB, free: 2.086 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2847/0.974, allocations: 2.858 MB / 0.504 GB, free: 117.6 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.421e-05/0.974, allocations: 15.78 kB / 0.5041 GB, free: 117.6 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.828e-05/0.9741, allocations: 3.938 kB / 0.5041 GB, free: 117.6 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.488e-05/0.9741, allocations: 13.64 kB / 0.5041 GB, free: 117.6 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0176/0.9917, allocations: 6.341 MB / 0.5103 GB, free: 115.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-05/0.9918, allocations: 2.125 kB / 0.5103 GB, free: 115.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002604/0.9944, allocations: 279 kB / 0.5105 GB, free: 115.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002811/0.9973, allocations: 0.657 MB / 0.5112 GB, free: 115.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003324/0.9976, allocations: 46.81 kB / 0.5112 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01785/1.015, allocations: 12.8 MB / 0.5237 GB, free: 105.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.016, allocations: 6.906 kB / 0.5237 GB, free: 105.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01048/1.026, allocations: 4.344 MB / 0.528 GB, free: 103 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001802/1.028, allocations: 0.5338 MB / 0.5285 GB, free: 102.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007444/1.029, allocations: 43.19 kB / 0.5285 GB, free: 102.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002388/1.031, allocations: 85.88 kB / 0.5286 GB, free: 102.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006389/1.032, allocations: 152.4 kB / 0.5288 GB, free: 102.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001778/1.032, allocations: 55.02 kB / 0.5288 GB, free: 102.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003543/1.035, allocations: 1.495 MB / 0.5303 GB, free: 101.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.593e-06/1.036, allocations: 0 / 0.5303 GB, free: 101.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006871/1.042, allocations: 1.289 MB / 0.5315 GB, free: 101.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 12 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,speed.phi,speed.w,voltageController.I.y,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01109/1.054, allocations: 5.639 MB / 0.537 GB, free: 96.07 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01084/1.064, allocations: 4.943 MB / 0.5419 GB, free: 91.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/1.064, allocations: 2.906 kB / 0.5419 GB, free: 91.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0044/1.069, allocations: 2.046 MB / 0.5439 GB, free: 88.92 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004743/1.074, allocations: 0.6425 MB / 0.5445 GB, free: 88.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02518/1.099, allocations: 22.36 MB / 0.5663 GB, free: 65.47 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002614/1.102, allocations: 2.547 MB / 0.5688 GB, free: 62.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002745/1.104, allocations: 1.409 MB / 0.5702 GB, free: 61.48 MB / 394.7 MB Notification: Performance of SimCode: time 1.633e-06/1.104, allocations: 0 / 0.5702 GB, free: 61.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.116/7.22, allocations: 157.5 MB / 0.724 GB, free: 91.31 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Rectifier_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Rectifier.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.pipe 2>&1)