Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.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.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Rectifier",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.001016/0.001016, allocations: 92.41 kB / 16.3 MB, free: 5.996 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.0009991/0.0009992, allocations: 184 kB / 17.2 MB, free: 5.91 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.448/1.448, allocations: 223.2 MB / 241.1 MB, free: 5.363 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002916/0.0002917, allocations: 7.875 kB / 300.8 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1147, allocations: 50.44 MB / 351.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier): time 0.01083/0.1256, allocations: 9.709 MB / 361 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01188/0.1375, allocations: 6.291 MB / 367.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001873/0.1395, allocations: 51.75 kB / 367.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002117/0.1416, allocations: 0.6881 MB / 368 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00331/0.1449, allocations: 0.8685 MB / 368.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004004/0.1489, allocations: 1.325 MB / 370.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004169/0.1531, allocations: 2.22 MB / 372.4 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001916/0.155, allocations: 1.423 MB / 373.8 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001579/0.1566, allocations: 1.059 MB / 374.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001517/0.1582, allocations: 1.237 MB / 376.1 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002927/0.1585, allocations: 152 kB / 376.3 MB, free: 2.445 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000769/0.1592, allocations: 331.7 kB / 376.6 MB, free: 2.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006156/0.1599, allocations: 0.697 MB / 377.3 MB, free: 1.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005354/0.1604, allocations: 0.5782 MB / 377.9 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003081/0.1635, allocations: 3.705 MB / 381.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1635, allocations: 0 / 381.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1635, allocations: 0 / 381.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001055/0.1636, allocations: 0 / 381.6 MB, free: 13.12 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 617 * Number of variables: 617 Notification: Performance of Generate backend data structure: time 0.005603/0.1693, allocations: 2.95 MB / 384.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.1693, allocations: 8.031 kB / 384.5 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004575/0.1698, allocations: 345.7 kB / 384.9 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001249/0.171, allocations: 428 kB / 385.3 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002898/0.1739, allocations: 1.656 MB / 386.9 MB, free: 7.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/0.1741, allocations: 180.8 kB / 387.1 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000324/0.1744, allocations: 243.9 kB / 387.4 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0049/0.1793, allocations: 3.018 MB / 390.4 MB, free: 4.062 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.623e-05/0.1794, allocations: 11.94 kB / 390.4 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002188/0.1796, allocations: 96 kB / 390.5 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001104/0.1797, allocations: 104.6 kB / 390.6 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00429/0.184, allocations: 2.52 MB / 393.1 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01634/0.2004, allocations: 10.29 MB / 403.4 MB, free: 6.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003059/0.2035, allocations: 2.718 MB / 406.1 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000257/0.2038, allocations: 122.4 kB / 406.2 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.2038, allocations: 55.88 kB / 406.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of pre-optimization done (n=149): time 3.958e-06/0.2038, allocations: 0 / 406.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=166): time 0.01598/0.2198, allocations: 8.173 MB / 414.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.341e-05/0.22, allocations: 183.5 kB / 414.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002456/0.2224, allocations: 1.834 MB / 416.5 MB, free: 9.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001509/0.2226, allocations: 57.69 kB / 416.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007203/0.2233, allocations: 1.153 MB / 417.7 MB, free: 7.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004039/0.2237, allocations: 0.5505 MB / 418.2 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.817e-05/0.2238, allocations: 44 kB / 418.3 MB, free: 7.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.224, allocations: 381.9 kB / 418.6 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.2252, allocations: 0.8628 MB / 419.5 MB, free: 6.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.2267, allocations: 1.311 MB / 420.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.2281, allocations: 1.056 MB / 421.9 MB, free: 3.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.2281, allocations: 4 kB / 421.9 MB, free: 3.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.004882/0.233, allocations: 3.109 MB / 425 MB, free: 404 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.1869/0.42, allocations: 4.986 MB / 430 MB, free: 57.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.016e-05/0.4201, allocations: 16.44 kB / 430 MB, free: 57.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00189/0.422, allocations: 0.7666 MB / 430.8 MB, free: 57.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.4234, allocations: 368.3 kB / 431.1 MB, free: 57.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01212/0.4356, allocations: 11.87 MB / 443 MB, free: 50.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/0.4375, allocations: 112.2 kB / 443.1 MB, free: 50.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002558/0.4378, allocations: 72.72 kB / 443.2 MB, free: 50.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.4378, allocations: 5.938 kB / 443.2 MB, free: 50.67 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005064/0.4429, allocations: 2.886 MB / 446.1 MB, free: 50.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.556e-05/0.4429, allocations: 13.81 kB / 446.1 MB, free: 50.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001673/0.4446, allocations: 0.7687 MB / 446.8 MB, free: 50.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/0.446, allocations: 368.4 kB / 447.2 MB, free: 50.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01015/0.4561, allocations: 11.87 MB / 459.1 MB, free: 41.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/0.4579, allocations: 97.84 kB / 459.2 MB, free: 41.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/0.458, allocations: 69.47 kB / 459.2 MB, free: 41.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (194): * Single equations (assignments): 186 * 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: 5 * 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: 2 {(3,100.0%) 16,(1,100.0%) 3} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.001415/0.4595, allocations: 0.8022 MB / 460 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004144/0.4599, allocations: 215.2 kB / 460.2 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005345/0.4652, allocations: 2.834 MB / 463.1 MB, free: 39.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.4653, allocations: 14.97 kB / 463.1 MB, free: 39.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.374e-05/0.4653, allocations: 11.86 kB / 463.1 MB, free: 39.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.361e-05/0.4653, allocations: 7.969 kB / 463.1 MB, free: 39.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01397/0.4793, allocations: 5.663 MB / 468.8 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.4794, allocations: 0 / 468.8 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001599/0.481, allocations: 243.6 kB / 469 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003076/0.4841, allocations: 0.8094 MB / 469.8 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002155/0.4843, allocations: 39.98 kB / 469.9 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01664/0.501, allocations: 13.36 MB / 483.2 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/0.501, allocations: 4 kB / 483.2 MB, free: 19.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008964/0.51, allocations: 4.251 MB / 487.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001848/0.5119, allocations: 482.3 kB / 487.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005592/0.5125, allocations: 47.92 kB / 488 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001754/0.5143, allocations: 95.91 kB / 488.1 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004241/0.5147, allocations: 137 kB / 488.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/0.5148, allocations: 47.98 kB / 488.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002395/0.5173, allocations: 1.254 MB / 489.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5173, allocations: 0 / 489.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.004984/0.5223, allocations: 1.072 MB / 490.6 MB, free: 11.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],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 (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): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 16,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.005822/0.5281, allocations: 5.822 MB / 496.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007128/0.5353, allocations: 5.245 MB / 0.4899 GB, free: 104 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/0.5353, allocations: 4 kB / 0.4899 GB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004014/0.5393, allocations: 2.069 MB / 0.4919 GB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00414/0.5435, allocations: 0.5335 MB / 0.4924 GB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02334/0.5669, allocations: 16.21 MB / 0.5083 GB, free: 12.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002339/0.5693, allocations: 2.026 MB / 0.5103 GB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002548/0.5719, allocations: 0.5064 MB / 0.5107 GB, free: 10.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001626/0.5736, allocations: 0.9913 MB / 0.5117 GB, free: 9.227 MB / 382.1 MB Notification: Performance of SimCode: time 2.295e-06/0.5736, allocations: 0 / 0.5117 GB, free: 9.227 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1199/0.6935, allocations: 58.86 MB / 0.5692 GB, free: 14.96 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000391/0.6939, allocations: 248.7 kB / 0.5694 GB, free: 14.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.424/4.118, allocations: 0 / 0.5694 GB, free: 14.71 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Rectifier_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe 2>&1)